Commands and shell

SNMP
snmptable -m All -M {dirOrMibs} -v {version} -c public {ip}  {PowerNet-MIB::sPDUOutletControlTable}

snmpwalk -m All -M {dirOrMibs} -v {version} -c public {ip}  {.oid}

Get process ids of something
ps au | grep apache | awk '{print $2}'

loop
until ls; do echo; done

SOLARIS
update time using ntp server:

pfexec ntpdate ntp1.prominic.net update time date -s "2 OCT 2006 18:00:00"