Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Determining if a printer is up and running.

Posted on 2003-03-24
8
Medium Priority
?
570 Views
Last Modified: 2013-12-27
Hi:

   I 've noticed that when I execute the lpstat command I get a list of printers.  Even when the listed printer is turn off it is still listed when I ran the lpstat command.
 

   How can I determine if a printer is up and running.  Somebody mention something about the mac address of the printer broadcasting itself.

       
0
Comment
Question by:nutless
8 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 8200693
pluto # > lpstat -a
lexmark accepting requests since Fri Feb 28 13:58:25 MET 2003


pluto # > /usr/ucb/lpc
lpc> status
lexmark:
        queueing is enabled
        printing is enabled
        no entries
pluto_lex:
        queueing is enabled
        printing is enabled
        no entries
lpc> help
Commands may be abbreviated.  Commands are:

abort   enable  disable help    restart status  topq    ?
clean   exit    down    quit    start   stop    up
lpc> exit
pluto # > 
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8201682
Depends on how the printer is connected.

If it's a directly attached network printer you should get a response from ping if it's powered on. Things get trickier if you are spooling to it via another print server (NT or Netware for instance).

If it has a jetdirect card, you can telnet to it and query it's status directly - (including things such as offline, out of paper etc.) You might be able to script this using expect.

SD
0
 

Author Comment

by:nutless
ID: 8204189
Situation is that I created a created bunch of printers using the lpadmin command but the problem is that these printers really does n't exist.

When I use the lpc 's status command it shows that the printer are enable when actually they are not.

I know that printers broadcast their MAC address, how can I intercept these broadcasts.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Expert Comment

by:austinwmatthews
ID: 8226416
Run a snoop in the console and then ping the printer from another terminal.

If the printer is up and running it will respond.

You should see the MAC, if:
   -the printer is not already in your system's ARP table
   -your system doesn't know the dest MAC of the printer

my .02
0
 

Expert Comment

by:austinwmatthews
ID: 8226491
oh yeah, you can run a 'arp -a' to see if the MAC is already in you're arp table associated with it's IP address.

good luck ...
0
 

Expert Comment

by:SuryaGE
ID: 8293709
1) Lpstat -a
2) Lpstat -pprintqueue name
3) If connected to network then telnet the printer ( ipaddress) enter / and status
0
 
LVL 18

Expert Comment

by:liddler
ID: 10476779
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ  No refund

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0
 

Accepted Solution

by:
amp072397 earned 0 total points
ID: 10522882
PAQed - no points refunded (of 20)

amp
Community Support Moderator amp~at~experts-exchange.com
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question