[mrtg] FW: MIB query (re HP/Nortel Blade switches )...

Hazell Derek dhazell at aap.com.au
Wed Feb 18 00:13:18 CET 2009


Hi

I tried running cfgmaker with the --ifdesc=name --ifref=name switches
and with the nortel template file altered to include both oids in the
oid_pick but the config file output for the ports was still commented

 

The MIBs for the GbE2c are available here 
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=
en&cc=us&prodNameId=3352726&prodTypeId=3709945&prodSeriesId=3352717&swLa
ng=13&taskId=135&swEnvOID=181 under Management Utilities for Windows.

 

Using the MIBs available in the above link - how can we check if
$ifindex is the correct OID suffix or not.

 

rgds

Derek Hazell | System Administrator

  <http://www.aap.com.au/> 

Australian Associated Press 
L5 3 Rider Boulevard Rhodes Waterside, Rhodes, NSW, 2138

T +61 0293228910 | F +61 0293228086 | E dhazell at aap.com.au

 

________________________________

From: Mersberger, Robert [mailto:robert.mersberger at goldenliving.com] 
Sent: Wednesday, 18 February 2009 9:49 AM
To: 'Steve Shipway'; Hazell Derek; mrtg at lists.oetiker.ch
Subject: RE: [mrtg] FW: MIB query (re HP/Nortel Blade switches )...

 

Maybe you can help with this?  I have save the template as
nortel_gbe2.tp  And tried to run it with cfgmaker but get and error.  I
have only used one template before so am not sure of what I am doing
except for trial and error.  I don't have much time to spend on this
specific task.

Here is what I have and what I am getting

 

[root at mrtg mrtg]# /usr/bin/cfgmaker --if-template=nortel_gbe2.tp
--global 'WorkDir: /usr/local/rrd_data' --global 'LogFormat: rrdtool'
--global 'routers.cgi*Options[_]: scaled' --global 'Options[_]:
bits,growright' --ifdesc=alias --snmp-options=:::::2 --output
/etc/mrtg/blswr7e5at.cfg da1sy at blswr7e5a.beverlycorp.com
Evaluation of the contents in the file 

 

nortel_gbe2.tp
gave the error 

 

"Undefined subroutine &SNMPv1_Session::getaddrinfo called at
/usr/bin/../lib64/mrtg2/SNMP_Session.pm line 650, <IF_TEMPLATE> line 23.
"

 

Exiting cfgmaker

 

 

Thanks for your help, maybe working together we can get this to work.

 

 

 

________________________________

From: mrtg-bounces at lists.oetiker.ch
[mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Steve Shipway
Sent: Tuesday, February 17, 2009 2:54 PM
To: 'dhazell at aap.com.au'; 'mrtg at lists.oetiker.ch'
Subject: Re: [mrtg] FW: MIB query (re HP/Nortel Blade switches )...

Might be able to use both OIDs in the oid_pick in case either works:

 

my($hpoid) =
oid_pick($router_connect,$v3opt,"1.3.6.1.4.1.11.2.3.7.11.33.4.2.1.1.2.2.
1.15.$ifindex",

      "1.3.6.1.4.1.11.2.3.7.11.33.1.2.1.1.2.2.1.15.$ifindex");

 

Its possible as well that the HP MIB doesn't use $ifindex as the suffix
but some other index of their own, which would be a nuisance.

 

As someone else suggested, using --ifref=name --ifdesc=name as options
is also a good idea; my rough script just grabbed the default identifier
to use if it can't find an HP one.

 

Steve

 

________________________________

From: mrtg-bounces at lists.oetiker.ch
[mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Mersberger, Robert
Sent: Wednesday, 18 February 2009 05:02
To: 'Sean Cheesman'; mrtg at lists.oetiker.ch
Subject: Re: [mrtg] FW: MIB query (re HP/Nortel Blade switches )...

 

Try changing the OID in the template to
.1.3.6.1.4.1.11.2.3.7.11.33.1.2.1.1.2.2.1.15.$ifindex. 

sample of output.

 

I have the same switched and when I do an snmpwalk to this oid I get the
following. 

[root at mrtg ~]# snmpwalk -v 2c -c da1sy blswr7e5a
.1.3.6.1.4.1.11.2.3.7.11.33.1.2.1.1.2.2.1.15   
SNMPv2-SMI::enterprises.11.2.3.7.11.33.1.2.1.1.2.2.1.15.1 = STRING:
"Blade Server 751"
SNMPv2-SMI::enterprises.11.2.3.7.11.33.1.2.1.1.2.2.1.15.2 = STRING:
"Downlink2"

 

 

Hope this helps. I have not looked at the template yet but will look as
it as time permits.

 

 

Please consider the environment before printing this e-mail. 

CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email')
are intended 
only for the confidential use of the recipient(s) named above. If the
reader of this 
message is not the intended recipient named above or an agent
responsible for 
delivering it to the intended recipient named above, you have received
this Email in error. 
Please notify the sender immediately and permanently delete this Email
and any copies thereof.

Please consider the environment before printing this e-mail. 

CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email')
are intended 
only for the confidential use of the recipient(s) named above. If the
reader of this 
message is not the intended recipient named above or an agent
responsible for 
delivering it to the intended recipient named above, you have received
this Email in error. 
Please notify the sender immediately and permanently delete this Email
and any copies thereof.


**********************************************************************
This email is intended for the use of the addressee only. If you receive this email in error, please delete it immediately. This email may contain information which is confidential and/or legally privileged. You must not use or disclose the contents of this email, or add the sender's email address to any database, list or mailing list unless you are expressly authorised to do so.

The statements or views expressed in this email are those of the individual sender and are not those of Australian Associated Press Pty Ltd (AAP). These statements are not binding on AAP, except where the sender expressly and with authority, states them to be.

AAP is unable to review the contents of all the email on its system. To the extent permitted by law, AAP disclaims all liability for any loss or damage caused by the contents of this email. 

www.aap.com.au
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20090218/d1ee8624/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1561 bytes
Desc: image001.gif
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20090218/d1ee8624/attachment-0001.gif 


More information about the mrtg mailing list