How to display only a section of clientlog ?
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...
On Thu, Oct 19, 2006 at 07:26:40AM -0500, T.J. Yang wrote:
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"
Remove the extra space before the "section=prtconf".
Or apply this patch, run "make; make install" and restart Hobbit.
Henrik
On 10/19/06, T.J. Yang <tj_yang at hotmail.com> wrote:
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
You have one too many space infront of the `section'
try like this (copy n paste)
bb 127.0.0.1 "clientlog test.test.com section=prtconf"
'^\[.*'
[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...
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
Thomas, Tom:
My bb-hosts *does* have group-compress.....
group-compress Linux Servers 10.12.10.73 emix64s0.unx.sas.com # NAME:"EMIX64S03 - Hobbit Server" bbd http://emix64s03.unx.sas.com/ 10.12.10.74 emix64s04.unx.sas.com # NAME:EMIX64S04
On the client, clientlaunch.sh looks like so... <snip> [client] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log INTERVAL 5m <snip>
And hobbitclient.sh has "uptime" defined, but, not "netstat"
<snip>
The following defines a bunch of commands that BB extensions expect to be present.
Hobbit does not use them, but they are provided here so if you use BB extension
scripts, then they will hopefully run without having to do a lot of tweaking.
UPTIME="/usr/bin/uptime" <snip>
A colleague tells me it's my imagination that NETSTAT and UPTIME were reported for Linux, as looking at the demo server, these columns do not appear.
Thx
Re: [hobbit] Hobbit Mon 4.2 on RHEL
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Hobbit Mon 4.2 on RHEL
- From: Tom Georgoulias <tomg (at) mcclatchyinteractive.com>
- Date: Fri, 16 Feb 2007 07:48:51 -0500
- Organization: McClatchy Interactive
- References: <C3BBBDFBE6D92C4EAA62BBE9793DECCF01D4D5C0 at MERCMBX07.na.sas.com <http://www.hswn.dk/hobbiton/2007/02/msg00260.html> >
- User-agent: Thunderbird 1.5.0.9 (X11/20070212)
Gary Ciampa wrote:
The problem is that somehow I've deleted my "uptime" and "netstat"
columns from the two linux systems and can't seem to get the columns
back? I have page defined which contains two groups, linux and
windows, here are column headers...I've played around with bb and
bbgen w/out success.... I believe at some point I did a "bb drop" for
the netstat and uptime to clear up errors....but, can't seem to get
the columns back.
Neither of those two columns are hobbit generated columns, they come from BB or other add on scripts. Check the clientlaunch.cfg file on your clients and make sure you have entries for both of the scripts that generate those columns.
Tom
Tom Georgoulias Systems Engineer McClatchy Interactive tomg (at) mcclatchyinteractive.com
On a stock Hobbit 4.2* installation,
- uptime is reported under 'CPU' column, while test/alert can be done with 'UP' in hobbit-client.cfg
- netstat is reported in the client data, while graphs under trend (more available than default selection under 'trend') . test can be done using PORT etc.
On 2/21/07, Gary Ciampa <Gary.Ciampa at sas.com> wrote:
Thomas, Tom:
My bb-hosts *does* have group-compress.....
group-compress Linux Servers 10.12.10.73 emix64s0.unx.sas.com # NAME:"EMIX64S03 - Hobbit Server" bbd http://emix64s03.unx.sas.com/ 10.12.10.74 emix64s04.unx.sas.com # NAME:EMIX64S04
On the client, clientlaunch.sh looks like so... <snip> [client] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log INTERVAL 5m <snip>
And hobbitclient.sh has "uptime" defined, but, not "netstat"
<snip>
The following defines a bunch of commands that BB extensions expect to
be present.
Hobbit does not use them, but they are provided here so if you use BB
extension
scripts, then they will hopefully run without having to do a lot of
tweaking. UPTIME="/usr/bin/uptime" <snip>
A colleague tells me it's my imagination that NETSTAT and UPTIME were reported for Linux, as looking at the demo server, these columns do not appear.
Thx
Re: [hobbit] Hobbit Mon 4.2 on RHEL
- *To*: hobbit (at) hswn.dk- *Subject*: Re: [hobbit] Hobbit Mon 4.2 on RHEL
- *From*: Tom Georgoulias <tomg (at) mcclatchyinteractive.com>
- *Date*: Fri, 16 Feb 2007 07:48:51 -0500
- *Organization*: McClatchy Interactive
- *References*: <C3BBBDFBE6D92C4EAA62BBE9793DECCF01D4D5C0 at MERCMBX07.na.sas.com <http://www.hswn.dk/hobbiton/2007/02/msg00260.html>>
- *User-agent*: Thunderbird 1.5.0.9 (X11/20070212)
Gary Ciampa wrote:
The problem is that somehow I've deleted my "uptime" and "netstat" columns from the two linux systems and can't seem to get the columns
back? I have page defined which contains two groups, linux and windows, here are column headers...I've played around with bb and bbgen w/out success.... I believe at some point I did a "bb drop" for
the netstat and uptime to clear up errors....but, can't seem to get the columns back.
Neither of those two columns are hobbit generated columns, they come from BB or other add on scripts. Check the clientlaunch.cfg file on your clients and make sure you have entries for both of the scripts that generate those columns.
Tom
Tom Georgoulias Systems Engineer McClatchy Interactive tomg (at) mcclatchyinteractive.com
Very funny..... <GGGGGGGGGGGGGGGGGGGGGGGGGGGGG>
Yes he is!!!!!!!!!
-----Original Message----- From: Galen Johnson [mailto:gjohnson at trantor.org] Sent: Thursday, February 22, 2007 4:35 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Hobbit Mon 4.2 on RHEL
Gary Ciampa wrote: <snip>
A colleague tells me it's my imagination that NETSTAT and UPTIME were reported for Linux, as looking at the demo server, these columns do not appear.
Thx
--
This colleague sounds pretty sharp :-)...
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (6)
-
Gary.Ciampa@sas.com
-
gjohnson@trantor.org
-
henrik@hswn.dk
-
jjj863@gmail.com
-
tj_yang@hotmail.com
-
vadud3@gmail.com