Solaris
My Solaris cook book.
13 May 2009
Port number to PID
Print out all the PIDs and associated ports.
ps -ef | awk '!/PID/{print $2}' | xargs pfiles 2>/
dev
/null |
awk
-F":" '$1~/^[0-9]/{
XPID
=$1;
XCMD
=$2};
/port/{print
XPID
, " ",
XCMD
, " : \n\t",$0}'
04 May 2009
Zones: Change IP address
To change an IP address of an zone.
zonecfg:z> select net address=[old IP]
zonecfg:z:net> set address=[new IP]
zonecfg:z:net> end
zonecfg:z> commit
Reference:
Sun Forums
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)