Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Command to get the IP addresses

SOLVED
Go to solution
Michelle_61
Frequent Advisor

Command to get the IP addresses

Hi All,

What OS command can print out all the 'up' IP addresses on the HP system?

Your response will be very helpful to me!
6 REPLIES
Solution

Re: Command to get the IP addresses

netstat -in is the one
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: Command to get the IP addresses

Hi Michelle:

# netstat -i
# ifconfig

Regards!

...JRF...
Michelle_61
Frequent Advisor

Re: Command to get the IP addresses

Thanks for both replies. Those are very helpful!

Just want to confirm, 'netstat' displays statistics for network interfaces and protocols. Is it possible that it misses some IP address because there is no network traffic on it though it is up on the system?
Patrick Wallek
Honored Contributor

Re: Command to get the IP addresses

netstat should display all interface even if there is not any traffic.
James R. Ferguson
Acclaimed Contributor

Re: Command to get the IP addresses

Hi (again) Michelle:

Using 'netstat -i' shows only the interfaces that have been configured with an IP address or the plumb option using the 'ifconfig' command.

Regards!

...JRF...
Michelle_61
Frequent Advisor

Re: Command to get the IP addresses

Thanks (again) :).

I only care about the IP addresses, not the network interfaces. SO I think 'netstat -in' is exactly what I need.