How to display only a section of clientlog ?

T.J. Yang tj_yang at hotmail.com
Thu Oct 19 14:26:40 CEST 2006


as you can see the intent of showing only prtconf has failed in following 
command.

bash-3.00$ bb 127.0.0.1 "clientlog test.test.com  section=prtconf" |egrep 
'^\[.*'
[date]
[uname]
[uptime]
[who]
[df]
[mount]
[prtconf]
[memory]
[swap]
[ifconfig]
[route]
[netstat]
[ports]
[ifstat]
[ps]
[vmstat]
[iostatcpu]
[iostatdisk]
[msgs:/var/adm/messages]
[logfile:/var/adm/messages]
[clientversion]
[clock]
bash-3.00$ bb -v
Unknown option -v
Hobbit version 4.2.0
Usage: bb [--debug] [--proxy=http://ip.of.the.proxy:port/] RECIPIENT DATA
  RECIPIENT: IP-address, hostname or URL
  DATA: Message to send, or "-" to read from stdin

_________________________________________________________________
Add a Yahoo! contact to Windows Live Messenger for a chance to win a free 
trip! 
http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline




More information about the Xymon mailing list