Useful Castor Commands
wassh
Executes commands on multiple hosts. Example:
wassh -l root tpsrv[001-005] 'tpmaint -start'
sms
Used to retrieve or to set the state of a machine. Example:
sms get tpsrv001
or:
sms set maintenance 'hardware tests' tpsrv001
or:
sms clear maintenance 'hardware tests finished' tpsrv001
dstat
Shows the CPU/disk/network usage. Example:
$ dstat
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
3 1 97 0 0 0| 963k 1185k| 0 0 | 0 0 |1922 7793
0 0 100 0 0 0| 0 2376k| 13k 10k| 0 0 |1116 4553
0 0 100 0 0 0| 0 2048k| 17k 9.8k| 0 0 |1119 4926
0 0 100 0 0 0| 0 2488k| 27k 22k| 0 0 |1350 5395
0 0 100 0 0 0| 0 2048k|7558B 4463B| 0 0 |1068 5181
nmon
htop
iperf
--
DanieleFrancescoKruse - 23-Nov-2011