1834594 Members
4276 Online
110069 Solutions
New Discussion

Re: Network info

 
SOLVED
Go to solution
Richard Brak_2
Occasional Advisor

Network info

Is there a command used in HP 9000's using ver. 9 and 10 that will display all the network associated information such as IP address, gateway address, hostname etc.?
4 REPLIES 4
Helen French
Honored Contributor
Solution

Re: Network info

Try these commands:

# netstat -ins
# lanscan
# ifconfig lan0 (replace lan0 with lan1, lan2 etc).

Btw, HP-UX 9.X and 10.X are very old and no more supported. Try loading 11.X
Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: Network info

To add, you can check all network configuration information in this file:

# cat /etc/rc.config.d/netconf

Also, 'hostname' command will give you the hostname. I would prefer you go through this Guide for all basic admin commands:

http://www.docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
Life is a promise, fulfill it!
RNY
Respected Contributor

Re: Network info

Hello,

1-To see the hostname,type :
hostname or
uname -a for full description about the system.

2To see the lan card installed ,execute:
lanscan ,and you will have this output:
0/0/0/0 0x001083F505D0 0 UP lan0 ...
so then to see the IP,execute :
ifconfig [name of lan card],in our example is
ifconfig lan0

This command will display for you th IP and subnet.

For statistics on network card ,try netstat and see the manual page for this command for all options.

Regards
Richard Brak_2
Occasional Advisor

Re: Network info

Thanks, points are on the way. BTW, I am not an experienced UNIX SYS Admin, as you can tell. We have these workstations in some of the equipment I'm responsible for. We are required at times to configure network files and replace hard disks, so I am building a spreadsheet with all configurable information for these tasks. Thanks again.