Hey guys,
I want to make a script that monitors individual blades in our H-Series bladecenter via SNMP. What I want to do is put in the bb-hosts file blade:# where # would indicate the blade slot number that would be used on snmpget against the bladecenter to get the information on that blade. Any ideas on how I could go about this?
Jason Chambers I.T. Helpdesk Associate [cid:image001.jpg at 01C7F08A.8AF7FED0] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0> - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
Just to clarify, I need to know a way to parse out the # part of blade:# from bb-hosts.
I don't know if there is a scripting mailing list for hobbit exclusively, and my scripting abilities is very basic, so any help would be awesome! :)
Jason Chambers I.T. Helpdesk Associate [cid:image002.jpg at 01C7F08C.8A2819C0] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0> - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
From: Jason Chambers [mailto:Jason.Chambers at geosoft.com] Sent: September-06-07 1:34 PM To: 'hobbit at hswn.dk' Subject: [hobbit] scripting help
Hey guys,
I want to make a script that monitors individual blades in our H-Series bladecenter via SNMP. What I want to do is put in the bb-hosts file blade:# where # would indicate the blade slot number that would be used on snmpget against the bladecenter to get the information on that blade. Any ideas on how I could go about this?
Jason Chambers I.T. Helpdesk Associate [cid:image003.jpg at 01C7F08C.8A2819C0] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0> - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
Have you looked at using devmon to monitor the bladecenter instead of querying each blade individually? That's what I'm doing. I have the regualr hobbit client installed on each blade and devmon querying the bladecenter management module via snmp. It works really well. I have data for blower fan speeds, temperatures, event log, LED status, and power domains from every bladecenter within Hobbit, and use NCV to create graphs of that data where it makes sense to do so.
Tom
I've got tons of bladecenters and I'm Jason Chambers wrote:
Just to clarify, I need to know a way to parse out the # part of blade:# from bb-hosts.
I don't know if there is a scripting mailing list for hobbit exclusively, and my scripting abilities is very basic, so any help would be awesome! :)
Jason Chambers I.T. Helpdesk Associate [cid:image002.jpg at 01C7F08C.8A2819C0] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0>
- Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
From: Jason Chambers [mailto:Jason.Chambers at geosoft.com] Sent: September-06-07 1:34 PM To: 'hobbit at hswn.dk' Subject: [hobbit] scripting help
Hey guys,
I want to make a script that monitors individual blades in our H-Series bladecenter via SNMP. What I want to do is put in the bb-hosts file blade:# where # would indicate the blade slot number that would be used on snmpget against the bladecenter to get the information on that blade. Any ideas on how I could go about this?
Jason Chambers I.T. Helpdesk Associate [cid:image003.jpg at 01C7F08C.8A2819C0] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0>
- Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
-- Tom Georgoulias Sr. Systems Engineer McClatchy Interactive tomg at mcclatchyinteractive.com
Thanks for the details guys, but I'm designing a script to monitor individual blades in the bladecenter, rather than the bladecenter chassis.
So I need to configure a script to specify the port the server is plugged into the blade chassis, and then I just realized, I need to specify the hostname/ip of the blade center it's wired to so I can do a proper snmp.
So something like blades:4:bladecenter1.host.com in the bb-hosts file?
Please note that our blade center holds 14 blades.
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
Jason Chambers wrote:
Thanks for the details guys, but I'm designing a script to monitor individual blades in the bladecenter, rather than the bladecenter chassis.
No problem, just a suggestion. If you just want to monitor each blade individually and you aren't interested in what the management module has to say, why don't you just add a line for each blade in bb-hosts and monitor/snmp query each host as if it were a standalone server?
Tom Georgoulias Sr. Systems Engineer McClatchy Interactive tomg at mcclatchyinteractive.com
Because you need to run the snmp query against the blade server, and specify the port number the blade is on. Or else you'll pull all of the 14 blades data.
For the record, I am doing the blade center chassis in my own little way, but it will be still nice to note individual settings for the blades itself.
Here's what I got for my script of the blade center
CPU Temperature: 38.00 Centigrade Ambient Temperature: 21.00 Centigrade +5 Volts: +4.81 Volts +3.3 Volts: +3.26 Volts +12 Volts: +11.78 Volts -5 Volts: -4.92 Volts +2.5 Volts: +2.47 Volts +1.8 Volts: +1.76 Volts
green Blade Center Health: Good - No critical or warning events green Blade Communication: Blades are communicating with the Management Module! green Blowers: Blowers are functioning OK! green Switch Module: Switch Module OK green Power Domains: Power Domains OK! Using 4 Power Modules. green Internal Ethernet: Ethernet Switch Test Passed! green Primary Bus: Primary Bus Test Passed!
Power Domains: 1 - Power domain status is good. 1 - Power domain status is good.
Power Domain 1: Total: 3520W Reserved: 1223W Used: 1223W Remaining: 2297W
Power Domain 2: Total: 3520W Reserved: 270W Used: 270W Remaining: 3250W
Blowers: Blower 1 Speed: 38% of maximum Blower 2 Speed: 38% of maximum
I rewrote the script I found on deadcat
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
Jason Chambers wrote:
Thanks for the details guys, but I'm designing a script to monitor individual blades in the bladecenter, rather than the bladecenter chassis.
So if you want to monitor individual blades can you not install the hobbit client on the OS that resides on the blades? There are unix and windows clients for hobbit.......
Just an idea....
Cheers
Iain
So I need to configure a script to specify the port the server is plugged into the blade chassis, and then I just realized, I need to specify the hostname/ip of the blade center it's wired to so I can do a proper snmp.
So something like blades:4:bladecenter1.host.com in the bb-hosts file?
Please note that our blade center holds 14 blades.
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hi Iain,
I really don't want to install an smnp client on each windows machine, which may or may not affect the performance of a mission critical servers, to do the polling of data, when I can actually get the hobbit server to fire a script.
Also, what or how I am executing this script is not the question I am placing here. I'm just wondering how I can read parameters after the test name in bb-hosts (my planned version of blades:(blade port number):(ip address)) that is very similar to the setup of how Henrik has badtest:x:x:x
Cheers,
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
-----Original Message----- From: Iain M Conochie [mailto:iain at shihad.org] Sent: September-06-07 6:01 PM To: hobbit at hswn.dk Subject: Re: [hobbit] scripting help
Jason Chambers wrote:
Thanks for the details guys, but I'm designing a script to monitor individual blades in the bladecenter, rather than the bladecenter chassis.
So if you want to monitor individual blades can you not install the hobbit client on the OS that resides on the blades? There are unix and windows clients for hobbit.......
Just an idea....
Cheers
Iain
So I need to configure a script to specify the port the server is plugged into the blade chassis, and then I just realized, I need to specify the hostname/ip of the blade center it's wired to so I can do a proper snmp.
So something like blades:4:bladecenter1.host.com in the bb-hosts file?
Please note that our blade center holds 14 blades.
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Jason Chambers wrote:
Hi Iain,
I really don't want to install an smnp client on each windows machine, which may or may not affect the performance of a mission critical servers, to do the polling of data, when I can actually get the hobbit server to fire a script.
I was meaning the hobbit client, which has very little overhead. This is not an snmp client.
Also, what or how I am executing this script is not the question I am placing here. I'm just wondering how I can read parameters after the test name in bb-hosts (my planned version of blades:(blade port number):(ip address)) that is very similar to the setup of how Henrik has badtest:x:x:x
Having not much experience of blade centers, I would go with those who have experience, like tom's post in reply to your question. As you wish to monitor individual blades, what are your reservations to installing the client?
Iain
Cheers,
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
-----Original Message----- From: Iain M Conochie [mailto:iain at shihad.org] Sent: September-06-07 6:01 PM To: hobbit at hswn.dk Subject: Re: [hobbit] scripting help
Jason Chambers wrote:
Thanks for the details guys, but I'm designing a script to monitor individual blades in the bladecenter, rather than the bladecenter chassis.
So if you want to monitor individual blades can you not install the hobbit client on the OS that resides on the blades? There are unix and windows clients for hobbit.......
Just an idea....
Cheers
Iain
So I need to configure a script to specify the port the server is plugged into the blade chassis, and then I just realized, I need to specify the hostname/ip of the blade center it's wired to so I can do a proper snmp.
So something like blades:4:bladecenter1.host.com in the bb-hosts file?
Please note that our blade center holds 14 blades.
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Friday 07 September 2007 14:35:54 Jason Chambers wrote:
Hi Iain,
I really don't want to install an smnp client on each windows machine, which may or may not affect the performance of a mission critical servers, to do the polling of data, when I can actually get the hobbit server to fire a script.
Also, what or how I am executing this script is not the question I am placing here. I'm just wondering how I can read parameters after the test name in bb-hosts (my planned version of blades:(blade port number):(ip address)) that is very similar to the setup of how Henrik has badtest:x:x:x
Did you even look at the example script I sent? Did you reply saying what it didn't do that you need?
Or, are you looking for someone to teach you how to read and write scripts (in which case I think you're looking in the wrong place).
Can you point to me where devmon is? I'm looking to create a script to put in other details with serial numbers, model, blade size, blade voltage/temp, etc for the individual blades.
Jason Chambers I.T. Helpdesk Associate Geosoft Inc. 85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
-----Original Message----- From: Tom Georgoulias [mailto:tomg at mcclatchyinteractive.com] Sent: September-06-07 2:12 PM To: hobbit at hswn.dk Subject: Re: [hobbit] scripting help
Have you looked at using devmon to monitor the bladecenter instead of querying each blade individually? That's what I'm doing. I have the regualr hobbit client installed on each blade and devmon querying the bladecenter management module via snmp. It works really well. I have data for blower fan speeds, temperatures, event log, LED status, and power domains from every bladecenter within Hobbit, and use NCV to create graphs of that data where it makes sense to do so.
Tom
I've got tons of bladecenters and I'm Jason Chambers wrote:
Just to clarify, I need to know a way to parse out the # part of blade:# from bb-hosts.
I don't know if there is a scripting mailing list for hobbit exclusively, and my scripting abilities is very basic, so any help would be awesome! :)
Jason Chambers I.T. Helpdesk Associate [cid:image002.jpg at 01C7F08C.8A2819C0] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0>
- Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
From: Jason Chambers [mailto:Jason.Chambers at geosoft.com] Sent: September-06-07 1:34 PM To: 'hobbit at hswn.dk' Subject: [hobbit] scripting help
Hey guys,
I want to make a script that monitors individual blades in our H-Series bladecenter via SNMP. What I want to do is put in the bb-hosts file blade:# where # would indicate the blade slot number that would be used on snmpget against the bladecenter to get the information on that blade. Any ideas on how I could go about this?
Jason Chambers I.T. Helpdesk Associate [cid:image003.jpg at 01C7F08C.8A2819C0] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0>
- Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
-- Tom Georgoulias Sr. Systems Engineer McClatchy Interactive tomg at mcclatchyinteractive.com
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Thursday 06 September 2007 21:59:02 Jason Chambers wrote:
Can you point to me where devmon is?
http://www.google.com/search?q=devmon&btnI ?
You may want to read this thread in the devmon archives ... http://sourceforge.net/mailarchive/forum.php?thread_name=4602B595.8060002%40...
On Fri, 7 Sep 2007, Buchan Milne wrote:
On Thursday 06 September 2007 21:59:02 Jason Chambers wrote:
Can you point to me where devmon is?
or here ...
http://en.wikibooks.org/wiki/System_Monitoring_with_Hobbit/Other_Docs/HOWTO#...
Cheers,
Martin
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
On Thursday 06 September 2007, Jason Chambers wrote:
Just to clarify, I need to know a way to parse out the # part of blade:# from bb-hosts.
I don't know if there is a scripting mailing list for hobbit exclusively, and my scripting abilities is very basic, so any help would be awesome! :) There is only one mailing list, this one.
bbhostshow will dump the bb-hosts file. You can use perl or shell to parse the lines you need. I prefer perl to parse text. Somethine like:
./bbhostshow | perl -e 'while (<STDIN>) { if ( $_ =~ /blade:(.+) / ) { print "BLADE: $1\n\n" ; } } '
I love perl :)
Stef
On Thursday 06 September 2007 20:36:52 Stef Coene wrote:
On Thursday 06 September 2007, Jason Chambers wrote:
Just to clarify, I need to know a way to parse out the # part of blade:# from bb-hosts.
I don't know if there is a scripting mailing list for hobbit exclusively, and my scripting abilities is very basic, so any help would be awesome! :)
There is only one mailing list, this one.
bbhostshow will dump the bb-hosts file. You can use perl or shell to parse the lines you need. I prefer perl to parse text. Somethine like:
./bbhostshow | perl -e 'while (<STDIN>) { if ( $_ =~ /blade:(.+) / ) { print "BLADE: $1\n\n" ; } } '
While I couldn't use devmon, I used something like this:
I would rather tag the entries with a new tag, and use bbhostgrep
#!/bin/bash
if [ -z "$BBHOME" ] then echo "BBHOME not set" >&2 exit 1 fi
TESTNAME="radperf" SNMPPORT="161" SNMPCOMM="xxx"
$BBHOME/bin/bbhostgrep $TESTNAME|while read IP NAME JUNK TESTS
do
DATA=snmpget -v1 -c $SNMPCOMM $NAME:$SNMPPORT 1.3.6.1.2.1.67.1.1.1.1.5 1.3.6.1.2.1.67.1.1.1.1.6 1.3.6.1.2.1.67.1.1.1.1.7 1.3.6.1.2.1.67.1.1.1.1.8 1.3.6.1.2.1.67.1.1.1.1.9| sed -e 's/SNMPv2-SMI::mib-2.67.1.1.1.1.//g;s/= INTEGER//g;s/^5/requests/;s/^6/invalid/;s/^7/dupes/;s/^8/accepts/;s/^9/rejects/'
$BBHOME/bin/bb $BBDISP "status ${NAME//./,}.${TESTNAME} green date
$DATA
"
done
Regards, Buchan
hi buchan iam new to hobbit can u in following points
where to put custom script at client side where to put custom script at server side where can i get custom script has any one implemented for hp-ux 11.23
Buchan Milne <bgmilne at staff.telkomsa.net> wrote: On Thursday 06 September 2007 20:36:52 Stef Coene wrote:
On Thursday 06 September 2007, Jason Chambers wrote:
Just to clarify, I need to know a way to parse out the # part of blade:# from bb-hosts.
I don't know if there is a scripting mailing list for hobbit exclusively, and my scripting abilities is very basic, so any help would be awesome! :)
There is only one mailing list, this one.
bbhostshow will dump the bb-hosts file. You can use perl or shell to parse the lines you need. I prefer perl to parse text. Somethine like:
./bbhostshow | perl -e 'while () { if ( $_ =~ /blade:(.+) / ) { print "BLADE: $1\n\n" ; } } '
While I couldn't use devmon, I used something like this:
I would rather tag the entries with a new tag, and use bbhostgrep
#!/bin/bash
if [ -z "$BBHOME" ] then echo "BBHOME not set" >&2 exit 1 fi
TESTNAME="radperf" SNMPPORT="161" SNMPCOMM="xxx"
$BBHOME/bin/bbhostgrep $TESTNAME|while read IP NAME JUNK TESTS
do
DATA=snmpget -v1 -c $SNMPCOMM $NAME:$SNMPPORT 1.3.6.1.2.1.67.1.1.1.1.5 1.3.6.1.2.1.67.1.1.1.1.6 1.3.6.1.2.1.67.1.1.1.1.7 1.3.6.1.2.1.67.1.1.1.1.8 1.3.6.1.2.1.67.1.1.1.1.9| sed -e 's/SNMPv2-SMI::mib-2.67.1.1.1.1.//g;s/= INTEGER//g;s/^5/requests/;s/^6/invalid/;s/^7/dupes/;s/^8/accepts/;s/^9/rejects/'
$BBHOME/bin/bb $BBDISP "status ${NAME//./,}.${TESTNAME} green date
$DATA
"
done
Regards, Buchan
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
On Thursday 06 September 2007 19:33:43 Jason Chambers wrote:
Hey guys,
I want to make a script that monitors individual blades in our H-Series bladecenter via SNMP. What I want to do is put in the bb-hosts file blade:# where # would indicate the blade slot number that would be used on snmpget against the bladecenter to get the information on that blade. Any ideas on how I could go about this?
If I remember correctly, someone posted bladecenter templates for devmon (which is made for use with Hobbit/BB). You may want to avoid re-inventing the wheel here ...
participants (7)
-
bgmilne@staff.telkomsa.net
-
iain@shihad.org
-
Jason.Chambers@geosoft.com
-
martin.flemming@desy.de
-
stef.coene@docum.org
-
tomg@mcclatchyinteractive.com
-
zeebala@yahoo.com