Re: MIB for Dummies

Simon Chamlian <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJTs9V=xAMTRtMnko=uTRhDv1A-Kk_L143bN36khWCQUDC0RVA@mail.gmail.com>
I tried the following

schamlian@ubuntu:/usr/local/share/snmp/mibs$ env MIBS="+MPBC-RMH-MIB" mib2c
-c ../mib2c.mfd.conf  mpbcRMH-AlarmTable
Defaults for mpbcRMH-AlarmTable...
Warning: something's wrong at /usr/local/bin/mib2c line 828, <GEN2> line 65.
/usr/local/share/snmp/mib2c-data/mfd-top.m2c:65 [@         perleval my $rc
= mkdir(defaults,0775); return $rc != 1 @
]
writing to -
There are no defaults for 0. Would you like to

  1) Accept hard-coded defaults
  2) Set defaults now [DEFAULT]

Select your choice : 1
ERROR: failed to open defaults/table-0.m2d
  at /usr/local/share/snmp/mib2c-data/m2c_table_save_defaults.m2i:11


Simon



On Wed, Dec 14, 2011 at 5:57 PM, Dave Shield <[email protected]>wrote:

> On 14 December 2011 19:17, Simon Chamlian <[email protected]>
> wrote:
> > Now I cannot create the C file.
> >
> > $ mib2c -c ../mib2c.mdf.conf  MPBC-RMH-MIB
> >
> > You didn't give mib2c a valid OID to start with.
>
> You need to give the name of a MIB *object*
> rather than the MIB as a whole.
>
> Try giving the name of one of the MIB tables,
> or a group of scalar objects.
>
> Dave
>

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.