How to determine the IP address of a Solaris system [closed] How to determine the IP address of a Solaris system [closed] unix unix

How to determine the IP address of a Solaris system [closed]


If you're a normal user (i.e., not 'root') ifconfig isn't in your path, but it's the command you want.

More specifically: /usr/sbin/ifconfig -a


/usr/sbin/ifconfig -a | awk 'BEGIN { count=0; } { if ( $1 ~ /inet/ ) { count++; if( count==2 ) { print $2; } } }'

This will list down the exact ip address for the machine


The following worked pretty well for me:

ping -s my_host_name