RE: mib2c

This is a discussion on RE: mib2c within the SNMP Coders forums, part of the Networking and Network Related category; Hi Amit, I don't this mib2c can give the range of enums. But snmptranslate does = that. If you try &...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-09-2006
 
Posts: n/a
Default RE: mib2c

Hi Amit,

I don't this mib2c can give the range of enums. But snmptranslate does =
that. If you try "snmptranslate -Tp", it will give you mib tree with all =
the enum range, like

+-- -R-- EnumVal ifType(3)
| Textual Convention: IANAifType
| Values: other(1), regular1822(2),=20

Refer net-snmp-5.2.1/apps/snmptranslate.c to know, how to get the =
range.

Regards,
Kanda


-----Original Message-----
From: amit limaye [mailto:amitlimaye@gmx.co.uk]=20
Sent: Wednesday, March 08, 2006 10:09 PM
To: Kanda Samy (WT01 - Broadband Networks)
Cc: hardaker@users.sourceforge.net; =
net-snmp-coders@lists.sourceforge.net
Subject: Re: mib2c

hey samy,
thanks for tht.=20
Also just one more thing i have been trying to access enums defined in =
the
MIB how can i access them.=20
The mib2c man page gives a mechanism to check if a enum is defined to
nothing to access the range of values in the enum=20
Is there a way to do it=20

-SIGTERM
amit

> --- Urspr=FCngliche Nachricht ---
> Von: <kanda.samy@wipro.com>
> An: <amitlimaye@gmx.co.uk>
> Kopie: <hardaker@users.sourceforge.net>,
> <net-snmp-coders@lists.sourceforge.net>
> Betreff: Re: mib2c
> Datum: Wed, 8 Mar 2006 09:51:33 +0530
>=20
>=20
> Hi amit,
>=20
> You can get the same from mib2c.
>=20
> Put the following lines into mib2c.sample-header.conf
>=20
> #-*-
> ################################################## ####################
> ## Do the .h file
> ################################################## ####################
> @open ${name}.h@
> @foreach $i scalar@
> #define $i $i.objectID
> @end@
> @foreach $i table@
> @foreach $c column@
> #define $c $c.objectID
> @end@
> @end@
>=20
> and run "mib2c -c mib2c.sample-header.conf system".
>=20
> Regards,
> Kanda
>=20
> --__--__--
>=20
> Message: 11
> Date: Tue, 7 Mar 2006 20:33:31 +0100 (MET)
> From: "amit limaye" <amitlimaye@gmx.co.uk>
> To: Wes Hardaker <hardaker@users.sourceforge.net>
> Cc: net-snmp-coders@lists.sourceforge.net
> Subject: Re: mib2c
>=20
> wes i eventually got it work
> my SMI had some line termination errors which was causing it not to =

find
> some nodes thus throwing the errors
> i set the debug level in snmp.conf and found out tht problem =

downloaded
> a
> new set MIB and everything works now.
>=20
> But now i m facing one more problem
> I want to generate a list OIDs from the MIB in a C Header file format
> some like
> #define SysDescr ".1.2.3.4.9. "
> and the likes
> Is mib2c capable of this or am i using the wrong tool ?
>=20
>=20
> -SIGTERM
> amit
>=20
>=20
>=20
>=20
>=20
>=20
> The information contained in this electronic message and any =

attachments
> to this message are intended for the exclusive use of the addressee(s) =

and
> may contain proprietary, confidential or privileged information. If =

you
are
> not the intended recipient, you should not disseminate, distribute or =

copy
> this e-mail. Please notify the sender immediately and destroy all =

copies
of
> this message and any attachments.
>=20
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of =

viruses.
The
> company accepts no liability for any damage caused by any virus

transmitted
> by this email.
>=20
> www.wipro.com


--=20
"Feel free" mit GMX FreeMail!
Monat f=FCr Monat 10 FreeSMS inklusive! http://www.gmx.net


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:05 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0