Help with mib2c

This is a discussion on Help with mib2c within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0764476913== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-05-2007
Salai, Sivakkani Thirunavukkarasu
 
Posts: n/a
Default Help with mib2c

This is a multi-part message in MIME format.

--===============0764476913==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C7EFDE.196FE788"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7EFDE.196FE788
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=20

Hi All,

I get the following error when I run mib2c program: (I issued the
command as: "mib2c WMAN-DEV-MIB")

=20

"Cannot find module (=3D+WMAN-DEV-MIB) : At line 0 in (none)" .

=20

This error message is followed with "You didn't give mib2c a valid
OID to start with ....."

=20

I am thinking that the mib2c program couldn't find the location of
my mibs file. Are there any option to specify the mib2c about the
location of the mib file?

=20

Following are the steps I performed before running mib2c program:

1) I copied the mibs (WMAN-DEV-MIB.txt) file into
$HOME/.snmp/mibs/xxx directory.

2) I edited the $HOME/.snmp/snmp.conf file and included mibs mibs
+WMAN-DEV-MIB

=20

I think that I am missing more steps. It appears that the mib2c
couldn't find the MIB file at all.=20

=20

I try to run the snmptranslate for the same MIB file, it is able to
translate the object that I pass while running the command. But with
snmptranslate I explicitly specify the mibs file name whereas with mib2c
I couldn't find such option.

=20

Please provide me with more tips to solve my issue.

=20

Regards,

Salai.

=20

=20

=20


------_=_NextPart_001_01C7EFDE.196FE788
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:891190815;
mso-list-type:hybrid;
mso-list-template-ids:-153293132 453689462 67698713 67698715 67698703 =
67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.35in;
text-indent:-.25in;}
@list l0:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>Hi =
All,<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp;&nbsp; I =
get the
following error when I run mib2c program: (</span><span =
style=3D'color:#1F497D'>I
issued the command as</span><span style=3D'color:#1F497D'>: “mib2c =
WMAN-DEV-MIB”)<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp;&nbsp; =
“Cannot find
module (=3D+WMAN-DEV-MIB) : At line 0 in (none)” </span><span =
style=3D'color:#1F497D'>.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp; This =
error message is</span><span
style=3D'color:#1F497D'> followed with “You didn’t give =
mib2c a valid OID to
start with …..”<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp;&nbsp; I =
am thinking
that the mib2c program couldn’t find the location of my mibs file. =
Are there
any option to specify the mib2c about the location of the mib =
file?<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp;&nbsp; =
Following are
the steps I performed before running mib2c =
program:<o:p></o:p></span></p>

<p class=3DMsoListParagraph =
style=3D'margin-left:.35in;text-indent:-.25in;
mso-list:l0 level1 lfo2'><![if !supportLists]><span =
style=3D'color:#1F497D'><span
style=3D'mso-list:Ignore'>1)<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style=3D'color:#1F497D'>I copied =
the mibs
(WMAN-DEV-MIB.txt) file into $HOME/.snmp/mibs/xxx =
directory.<o:p></o:p></span></p>

<p class=3DMsoListParagraph =
style=3D'margin-left:.35in;text-indent:-.25in;
mso-list:l0 level1 lfo2'><![if !supportLists]><span =
style=3D'color:#1F497D'><span
style=3D'mso-list:Ignore'>2)<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style=3D'color:#1F497D'>I edited =
the
$HOME/.snmp/snmp.conf file and included mibs mibs =
+WMAN-DEV-MIB<o:p></o:p></span></p>

<p class=3DMsoListParagraph style=3D'margin-left:.35in'><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp; I think =
that I am
missing more steps. It appears that the mib2c couldn’t find the =
MIB file at
all. <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>I try to</span><span
style=3D'color:#1F497D'> run the snmptranslate</span><span =
style=3D'color:#1F497D'>
for the same MIB file</span><span style=3D'color:#1F497D'>, it is able =
to
translate the object that I pass while running the command. But with
snmptranslate I explicitly specify the mibs file name whereas with mib2c =
I
couldn’t find such option.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp;&nbsp; =
Please
provide me with more tips to solve my issue.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp; =
Regards,<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>&nbsp;&nbsp; =
Salai.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

------_=_NextPart_001_01C7EFDE.196FE788--


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--===============0764476913==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0764476913==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 06:03 AM.


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