Juniper Netscreen ssg description

Peter Stessel <[email protected]> Fri, 13 Jul 2012 17:18:33 +0200
Newsgroups gmane.network.mrtg.devel
Message-ID <CAJBeD-r9=k3y_cHqpaa-NjVvxVrMzgFD2iYjNL-YYUcHWSnx0A@mail.gmail.com>
--===============0613364245==
Content-Type: multipart/alternative; boundary=f46d042e00f7eabaeb04c4b7978c

--f46d042e00f7eabaeb04c4b7978c
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I'm Peter and work at a small hospital in Belgium.
i'm new to this list but don't have much programming experience in Perl.
I use mrtg to monitor the bandwith usage of 2 Juniper Netscreen routers
(models ssg140 and ssg5)
When i run the cfgmaker with --ifdescr=descr or ifAlias option, I never
seem to get what is set as description of the interface since Juniper sets
this in a different OID named nsIfDescr at 1.3.6.1.4.1.3224.9.1.1.22.

Could someone point me in a direction where to change the source of
cfgmaker (using version 2.16.2 currently) to add support for this oid? So
far I've located the if block at line 168 to determine if it's a Cisco or
other device. I would try to add a similar statement for Juniper too and
add the oid to the definition of the snmpmapObjID's variables at line 1544.

Could anyone point out what else to change in the code? Or would it be too
hard to start working on, never having programmed in Perl before?

Thanks in advance for the assistance,


Peter Stessel

--f46d042e00f7eabaeb04c4b7978c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<div><br></div><div>I&#39;m Peter and work at a small hospital in Belgiu=
m.</div><div>i&#39;m new to this list but don&#39;t have much programming e=
xperience in Perl.</div><div>I use mrtg to monitor the bandwith usage of 2 =
Juniper Netscreen routers (models ssg140 and ssg5)</div>
<div>When i run the cfgmaker with --ifdescr=3Ddescr or ifAlias option, I ne=
ver seem to get what is set as description of the interface since Juniper s=
ets this in a different OID named=A0nsIfDescr at 1.3.6.1.4.1.3224.9.1.1.22.=
</div>
<div><br></div><div>Could someone point me in a direction where to change t=
he source of cfgmaker (using version 2.16.2 currently) to add support for t=
his oid? So far I&#39;ve located the if block at line 168 to determine if i=
t&#39;s a=A0Cisco or other device. I would try to add a similar statement f=
or Juniper too and add the oid to the definition of the snmpmapObjID&#39;s =
variables at line 1544.</div>
<div><br></div><div>Could anyone point out what else to change in the code?=
 Or would it be too hard to start working on, never having programmed in Pe=
rl before?=A0</div><div><br></div><div>Thanks in advance for the assistance=
,</div>
<div><br></div><div><br></div><div>Peter Stessel</div><div><br></div>

--f46d042e00f7eabaeb04c4b7978c--


--===============0613364245==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
mrtg-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg-developers

--===============0613364245==--