<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>FW: [mrtg] MIB query (re HP/Nortel Blade switches )...</title>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-GB link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I would expect (hope) that the OID 1.3.6.1.4.1.11.2.3.7.11.33.4.2.1.1.2.2.1.15.(instance)
is the description for interface index (instance). <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In this case, it would be relatively easy
to write some code for an interface template to cfgmaker to grab this OID (if
available) and use it as first preference.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I will try and modify the routers2
template posted in the library on <a href="http://www.steveshipway.org/forum/">http://www.steveshipway.org/forum/</a>
to achieve this, should be simple.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If you don’t use routers2 then the coding
will need to be a bit more complex <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Untested attempt: hp-device.tp<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
padding:1.0pt 4.0pt 1.0pt 4.0pt'>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>my($hpdescr)="";<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span lang=EN-NZ style='font-size:10.0pt;font-family:"Courier New"'>my($hpoid)
= oid_pick($router_connect,$v3opt,"</span></font><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>1.3.6.1.4.1.11.2.3.7.11.33.4.2.1.1.2.2.1.15.$ifindex</span></font><font
size=2 face="Courier New"><span lang=EN-NZ style='font-size:10.0pt;font-family:
"Courier New"'>");<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span lang=EN-NZ style='font-size:10.0pt;font-family:"Courier New"'>$hpdescr
= snmpget($router_connect,$v3opt,$hpoid) if($hpoid);<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span lang=EN-NZ style='font-size:10.0pt;font-family:"Courier New"'>$hpdescr
= $if_description if(!$hpdescr); # in case nothing found</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>$target_lines
= $default_target_directive."\n"<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> ."Title[$target_name]:
Traffic analysis for $hpdescr -- $sysname\n"<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> ."SetEnv[$target_name]:
MRTG_INT_IP=\"$if_ip\" MRTG_INT_DESCR=\"$if_snmp_name\"\n"<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> .$default_maxbytes_directive."\n"<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> .$default_pagetop_directive."\n"<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> .$default_directory_directive."\n"<o:p></o:p></span></font></p>
<p class=MsoNormal style='border:none;padding:0cm'><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> ."routers.cgi*ShortDesc[$target_name]:
$hpdescr\n";<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Not having an HP switch I can’t really
test it properly of course. This is an interface template, hook in using --if-template
and use cfgmaker from MRTG 2.16 or better (else the $v3opt needs to be removed).
You might like to change the MRTG_INT_DESCR or Title format. See the cfgmaker
documentation or the MRTG book for more details on which variables are
available for use.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Please let me know if it works, and I’ll
add it to the library.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Steve<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
</div>
<p><b><font size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
mrtg-bounces@lists.oetiker.ch [mailto:mrtg-bounces@lists.oetiker.ch] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Hazell Derek<br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>I finally found out the OID (see below) for the
missing port descriptions from the HP GbE2c blade switches from the support
group for the blade switch (</span></font><a
href="http://www.bladeconnect.com/modules.php?name=Forums&file=viewtopic&t=168"><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>http://www.bladeconnect.com/modules.php?name=Forums&file=viewtopic&t=168</span></font></a><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>). However I am still not sure how to integrate the description
data into the target config file. (I think I was unable to see these OIDs /
descriptions earlier because snmpwalk was not running to completion when run
against the blade switch and instead was getting an error, and that
therefore cfgmaker likewise gets an error when running against this
target … and that that is why the output config file for the target is empty of
descriptions …).</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>So my question is, is it possible for cfgmaker to get the
description data below and build that data into the mrtg config file (without
writing a fancy script that will somehow insert the desctiption data into the
config file for the target.)</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>…</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>$ snmpwalk -v 1 -c public bs11.bm.syd
1.3.6.1.4.1.11.2.3.7.11.33.4.2.1.1.2.2.1.15</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>SNMPv2-SMI::enterprises.11.2.3.7.11.33.4.2.1.1.2.2.1.15.1 =
STRING: " description abc "</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>SNMPv2-SMI::enterprises.11.2.3.7.11.33.4.2.1.1.2.2.1.15.2 =
STRING: " description def "</span></font><o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>