Tuesday, February 9, 2010

Solaris:How can I use the Solaris ?Explorer? program to collect information on my zone(s)

Explorer 5.0 can be run on Solaris 10 in a global zone. It can be used to collect information on containers (non-global zones) with the -w option.

Solaris: How do I modify the network configuration of a running zone?

global# ifconfig bge0 addif  192.168.200.2 zone myzone
global# ifconfig bge0 removeif 192.168.200.2

Or remove and add again interface via zonecfg -z myzone

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...