- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ping command - error 1 and error 2
Operating System - HP-UX
1757756
Members
2177
Online
108863
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-02-2010 11:14 AM
тАО07-02-2010 11:14 AM
Ping command - error 1 and error 2
After running this script:
ls -lrt /var/spool/lp/request | awk '{ print $NF }' | sort > sidnsnoping.txt
rm printers_unreachables.txt >>/dev/null
rm printers_reachables.txt 2>>/dev/null
for PRN in $(cat sidnsnoping.txt)
do
echo $PRN
/usr/sbin/ping $PRN -n 2 -m 2
RTN=$?
if [[ $RTN -ne 0 ]]
then
echo "$PRN = error $RTN" >> printers_unreachables.txt
else
echo "$PRN = value $RTN" >> printers_reachables.txt
done
when i open the file of the printers unreachable there are these errors:
error 1
error 2
what does those errors means?
are there other errors which can appear?
please let me know.
ls -lrt /var/spool/lp/request | awk '{ print $NF }' | sort > sidnsnoping.txt
rm printers_unreachables.txt >>/dev/null
rm printers_reachables.txt 2>>/dev/null
for PRN in $(cat sidnsnoping.txt)
do
echo $PRN
/usr/sbin/ping $PRN -n 2 -m 2
RTN=$?
if [[ $RTN -ne 0 ]]
then
echo "$PRN = error $RTN" >> printers_unreachables.txt
else
echo "$PRN = value $RTN" >> printers_reachables.txt
done
when i open the file of the printers unreachable there are these errors:
error 1
error 2
what does those errors means?
are there other errors which can appear?
please let me know.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2010 01:22 PM
тАО07-02-2010 01:22 PM
Re: Ping command - error 1 and error 2
man ping:
0 On success.
1 On failure such as unknown host, illegal packet size, etc.
2 On a unreachable host or network.
1) probably it can't resolve the name
2) routing problem
0 On success.
1 On failure such as unknown host, illegal packet size, etc.
2 On a unreachable host or network.
1) probably it can't resolve the name
2) routing problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2010 04:31 PM
тАО07-02-2010 04:31 PM
Re: Ping command - error 1 and error 2
thanks a lot
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP