- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ping command
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
Forums
Discussions
Discussions
Discussions
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
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
09-20-2007 01:02 AM
09-20-2007 01:02 AM
Ping command
what is the port used for that?
how can i review that?
how is related netstat -a with ping command?
please let me know.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 01:15 AM
09-20-2007 01:15 AM
Re: Ping command
The 'ping' command resides in '/usr/sbin' which is standardly in the user's default PATH.
Ping operates at the network layer of the OSI model so there is no port involved.
http://en.wikipedia.org/wiki/OSI_layer
The 'netstat' command returns information much higher up in the layers.
Genearally you do not encourage normal users to use 'ping'. It can be disruptive to a network and has been exploited in DOS (Denial of Service) attacks.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 01:19 AM
09-20-2007 01:19 AM
Re: Ping command
> Hi, how can i know if command ping is
> available for everybody?
$ ls -l /usr/sbin/ping | awk '{print $1}'
-r-sr-xr-x
By default, any user can execute the ping command. However, most users will need to provide the absolute path to the command, as '/usr/sbin' is not in a typical user's PATH.
> what is the port used for that?
'ping' sends ICMP echo request packets, which function at the network, not transport, OSI layer. Hence, there is no notion of a "port".
> how is related netstat -a with ping command?
Invocations of 'ping' will not appear.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 01:34 AM
09-20-2007 01:34 AM
Re: Ping command
"ping" command normally is available for everybody.
If you don't want you can change the permission:
chmod 770 /usr/sbin/ping
Best regards
Ernesto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 02:04 AM
09-20-2007 02:04 AM
Re: Ping command
Any one can use this , either with /usr/sbin/ping or /etc/ping .
Rgds / james