Re: mib2c -c mib2c.mfd.conf

Simon Chamlian <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJTs9V=YDPZyhB-TZXUXjw0yBi9XWXaVzopBwmNiGrtu=L+3hA@mail.gmail.com>
I also tried:

----------------------------------------------------------------------------------------------------------------

[root@M54418TWR snmp]# snmpd -a -c snmpd.conf,snmp.conf -d -Lf log.txt -r



[root@M54418TWR snmp]# cat log.txt

/usr/share/snmp/snmpd.conf: line 37: Warning: Unknown token: proc.

/usr/share/snmp/snmpd.conf: line 53: Warning: Unknown token: master.

snmpd.conf: line 37: Warning: Unknown token: proc.

snmpd.conf: line 53: Warning: Unknown token: master.

snmp.conf: line 26: Warning: Unknown token: mibdirs.

snmp.conf: line 44: Warning: Unknown token: defaultport.

snmp.conf: line 50: Warning: Unknown token: defversion.

snmp.conf: line 56: Warning: Unknown token: defsecurityname.

snmp.conf: line 62: Warning: Unknown token: defauthtype.

snmp.conf: line 69: Warning: Unknown token: defauthpassphrase.

Error opening specified endpoint "161"

Server Exiting with code 1


----------------------------------------------------------------------------------------------------------------

Basically, the snmpd does not recognize the tokens in snmpd.conf, which was
created using snmpconf.


Simon



On Mon, Oct 31, 2011 at 2:51 PM, Simon Chamlian <[email protected]>wrote:

> Hi,
>
> I have an embedded board running Linux/net-snmp (TWR54418 from Freescale).
>
> I am trying to get the agent going on the eval board and create an
> application in C, to connect to the agent and return a value to a get/set
> command from a mib bowser running on PC.
>
> After reading several tutorials, I came accross, "MIB for Dummies". It
> suggests to create the C code from the MIB I have.
>
> But when I run it, I get the following error:
>
> [root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf
>
> ERROR: You don't have the SNMP perl module installed.  Please obtain
> this by getting the latest source release of the net-snmp toolkit from
> http://www.net-snmp.org/download/ .  Once you download the source and
> unpack it, the perl module is contained in the perl/SNMP directory.
> See the README file there for instructions.
>
> [root@M54418TWR snmp]#
>
>
> I checked the downloads and I don't see any SNMP perl module?
>
> Note that Perl is installed on the eval board since snmpconf (perl script)
> works fine.
>
> Any hints will be greatly appreciated to help me out:
> 1) To launch the SNMP agent daemon
> 2) When a Get/Set/Get(Walk)/GetTable  issued from a MIB browser from a PC,
> I get to a C application to return actual data.
>
> Thanks,
> Simon
>
>
>
>

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
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.