Friday, April 6, 2012

Solaris: Zone capped memory

Add a memory cap.


zonecfg:zoneA> add capped-memory
Set the memory cap.


zonecfg:zoneA:capped-memory> set physical=50m
Set the swap memory cap.


zonecfg:zoneA:capped-memory> set swap=100m
Set the locked memory cap.


zonecfg:zoneA:capped-memory> set locked=30m
End the memory cap specification.


zonecfg:zoneA:capped-memory> end

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...