- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trying to reach printers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:22 PM
тАО07-01-2010 01:22 PM
i need to verify if the printers are reachables or not.
i am using ping command.
I know that many of them are not reachables.. but i need to create the evidence.
when i ping them, it takes a long long long tiime ... who can i do to let the ping command know "if you can not reach the printer after 10 seconds, please break and follow the next one" ??? (i am using a shell using for ...)
what other command can i use to test if the printer is reachable or not?
please let me know.
thanks in advance.
Manuales :)
thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:43 PM
тАО07-01-2010 01:43 PM
SolutionConsider the following:
# ping -n 3 printer1
will transmit 3 packets to printer 1 and exit.
# pint -n 5 -t 5 printer2
will time out after 5 seconds or 5 packets have been transmitted. The use of '-t' requires the use of '-n'.
See 'man ping' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:44 PM
тАО07-01-2010 01:44 PM
Re: Trying to reach printers
>>
>>will time out after 5 seconds or 5 packets
>>have been transmitted. The use of '-t'
>>requires the use of '-n'.
I screwed up above. The '-t' should actually be '-m'. The '-t' option is different.
The above should actually read:
# pint -n 5 -m 5 printer2
will time out after 5 seconds or 5 packets have been transmitted. The use of '-m' requires the use of '-n'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:52 PM
тАО07-01-2010 01:52 PM
Re: Trying to reach printers
okok i am kidding .. you mean p├Г┬нng command ..ok ok let me try.
thanks for your support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:52 PM
тАО07-01-2010 01:52 PM
Re: Trying to reach printers
ping is good.
you can also telnet to the printer port
(hp print server port : 9100 e.g.)
telnet
you should then be presented with a menu and one of the item should show you the status of the printer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:54 PM
тАО07-01-2010 01:54 PM
Re: Trying to reach printers
>>okok i am kidding .. you mean p├Г ├В┬нng command
>>..ok ok let me try.
You are correct, I did mean ping.
Although a pint of an adult libation would be nice about now......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:56 PM
тАО07-01-2010 01:56 PM
Re: Trying to reach printers
$ for a in `cat sidnsnoping.txt `
> do
> /etc/ping -n 2 -t 2 $a
> echo "==="
> done
output:
Usage: ping [-oprv] [-f address-family] [-i address] [-I interval] [-t ttl] hos
t [-n count [-m timeout]]
ping [-oprv] [-f address-family] [-i address] [-I interval] [-t ttl] hos
t packet-size [[-n] count [-m timeout]]
the file sidnsnoping.txt exists correctly ..
what is wrong here?
please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:59 PM
тАО07-01-2010 01:59 PM
Re: Trying to reach printers
ping -n 2 -m 2 $a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 02:00 PM
тАО07-01-2010 02:00 PM
Re: Trying to reach printers
ping -n 5 -m 2
will send 5 ping packets, and will wait up to 2 seconds for each ping reply. The total wait time should then be 10 seconds in the worst case (i.e. when the printer is completely not reachable).
If the printer is configured as a "remote" printer to HP-UX, it uses the traditional Unix LPR print protocol. In this case, you can use any tool that can connect to the TCP port 515 on the printer and verify that it works. This test can be done manually using the telnet command targeted to the port 515:
telnet
If the printer is configured as a "network" printer to HP-UX, it is a printer equipped with a HP JetDirect adapter or equivalent functionality. In this case, the port number to test is usually 9100:
telnet
(The redirection of input from /dev/null prevents the telnet command from waiting forever for input if the test is successful and a connection is actually established.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 02:51 PM
тАО07-01-2010 02:51 PM
Re: Trying to reach printers
for a in `cat sidnsnoping.txt `
do
/etc/ping -n 2 -m 2 $a
echo "==="
done