
There are multiple methods can be use to find out the IP address on HP-UX operating system environment. You can just get the number by using one the followings-
• ifconfig lanX
# ifconfig lanX lanX: flags=1843<UP,BROADCAST,RUNNING,MULTICAST,CKO> inet 10.0.0.10 netmask ffffff00 broadcast 10.0.0.255
•netstat -in
# netstat -in IPv4: Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll lan0 1500 10.0.0.1 10.0.0.10 247351 0 996442 0 0 lo0 4136 127.0.0.0 127.0.0.1 116312 0 116312 0 0 IPv6: Name Mtu Address/Prefix Ipkts Opkts lan1* 1500 none 0 0 lo0 4136 ::1/128 4729 4729
• /etc/hosts
# cat /etc/hosts # # The form for each entry is: # <internet address> <official hostname> <aliases> # # For example: # 192.1.2.34 hpfcrm loghost # # See the hosts(4) manual page for more information. # Note: The entries cannot be preceded by a space. # The format described in this file is the correct format. # The original Berkeley manual page contains an error in # the format description. # 10.0.0.10 itsiti itsiti.com
• ping <hostname>
# ping itsiti PING itsiti: 64 byte packets 64 bytes from 10.0.0.10: icmp_seq=0. time=0. ms 64 bytes from 10.0.0.10: icmp_seq=1. time=0. ms 64 bytes from 10.0.0.10: icmp_seq=2. time=0. ms
Note:
10.0.0.10 is the IP address.