Process Memory usage.
psidno=19230
prstat -s rss 1 1 |grep $psidno > /tmp/jav.txt
mems=`prstat -s rss 1 1 | grep $psidno |awk '{print $4}' | sed '$s/.$//'`
if [ $mems -gt 1024 ]; then
mailx -s " Process Memory usage status :" thamurali@yahoo.co.in < /tmp/jav.txt
fi
-----------------------------------------------
Above script will send a mail if a particular PID using morethan 1gb of memory.
Note : untested.
Check the HBA WWNs using luxadm command...
# luxadm -e port < -- check the link status.
Found path to 3 HBA ports
/devices/pci@8,600000/SUNW,qlc@4/fp@0,0:devctl CONNECTED
/devices/pci@8,700000/lpfc@2/fp@0,0:devctl CONNECTED
/devices/pci@8,700000/fibre-channel@3/fp@0,0:devctl CONNECTED
root: / >
# luxadm -e dump_map /devices/pci@8,700000/lpfc@2/fp@0,0:devctl <----------------- Use the HBA path here
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 140001 0 5005076300c3a73d 5005076300c0a73d 0x1f (Unknown Type)
1 14000b 0 5005076300cba73d 5005076300c0a73d 0x1f (Unknown Type)
2 14000c 0 5005076300cfa73d 5005076300c0a73d 0x1f (Unknown Type)
3 14000d 0 5005076300c7a73d 5005076300c0a73d 0x1f (Unknown Type)
4 a5e662 0 5005076300c79565 5005076300c09565 0x0 (Disk device)
5 a5e663 0 5005076300c39565 5005076300c09565 0x0 (Disk device)
6 20024 0 10000000c9430869 20000000c9430869 0x1f (Unknown Type,Host Bus Adapter) < --------------------- WWN in Green
root : >
#