Operating System - HP-UX
1834862 Members
2898 Online
110070 Solutions
New Discussion

Re: commands question (user has bad username)

 
Hi..I'm a Newbie. help
Occasional Contributor

commands question (user has bad username)

Hi all.,
Plz let me know the command to display the ip address of my system.. in case of 'lanscan' how to grep the ip address alone
Also the command to view the subnet mask address,semaphore segments,no of shared memory
Thanks in advance
Rammu
5 REPLIES 5
freddy_21
Respected Contributor

Re: commands question (user has bad username)

Hello Rammu

1. from lanscan i think you cant see the ip address.
you can see the mac addrees/station adress, hardware path and the interface name ( like lan0, lan1)

If you want to see the ip adress please run command ipconfig < interface_name>


2. kmtune, will show all about kernel parameter.

3. To see your segment please run command
ifconfig ( number of lan) ex: ifconfig lan0
pegasus:/etc/opt/omni/cell>ifconfig lan0
flags=843
inet 16.178.0.103 netmask fffff800 broadcast 16.178.7.255

or you can check
# more /etc/rc.config.d/netconf


thanks
Freddy
Chan 007
Honored Contributor

Re: commands question (user has bad username)

Hi Ram,

1. netstat -nr (will provide you details) or use ping `hostname`

to get IP alone

ping `hostname`

2. to know your IP address (cat /etc/rc.config.d/netconf)

3. Kernal info, use kmtune.

Chan




melvyn burnard
Honored Contributor

Re: commands question (user has bad username)

I would like to suggest you modify your profile to change your user name to something better than:
Hi..I'm a Newbie. help me in finding a document


My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Jim Keeble
Trusted Contributor

Re: commands question (user has bad username)

netstat -in will show all of the IP's that are in use.
rammu
Occasional Contributor

Re: commands question (user has bad username)

Thamks a lot gents.. ur posts really helped me a lot
Rammu