ipaddress in HP-UX

Hi,

How can I figure out the IP address of my node in HP-UX?

Here is uname -a:

/throra10 >uname -a
HP-UX finprod B.11.23 U ia64 3832216299 unlimited-user license

This is to launch Xterminal.

Thanks.

ifconfig interface

example: ifconfig eth0

Thanks for the response. How do I find out the interface of my client machine? I want to be able to launch Oracle install on this machine. I think that if xclock works I should be ok.

I am new to HP-UX. Thanks.

Try
nslookup finprod

Your system could have multiple LAN cards. Type 'lanscan' to see all LAN devices configured for your system. HP LAN interface names usually look like: lan0, lan1, lan2, etc. Type 'ifconfig lan0' for that interface's ip address.

A different option would be nslookup. If you're logged into the box then you must know its hostname. Type 'nslookup <hostname>' to see what the box thinks its ip address is. It is possible that this may give you the wrong information if DNS sees the ip as different than its hosts file but in most cases it should work. Try logging in to that specific ip to verify that it is indeed the correct one.

getip `hostname`

To figure out the ip addresses , open the file /etc/hosts.It should have the ip address of your host.

$ nslookup ondemand02
Server: ondemand02.
Address: 10.131.3.149

Name: ondemand02.
Address: 10.131.3.149

$