Re: How to add mib file in net-snmp to perform SET operation.

"rajesh" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Mike ,

below is enabled in snmpd.conf .
rwcommunity public 10.0.2.105 .

But I am finding no difference in the output .

I added below line
if (should_init("nstAgentModuleObject")) init_nstAgentModuleObject();
in **mib_module_inits.h**  file , but when I am executing snmpget , it is 
crashing .

what other things  i need to do .

Plz suggest .

Thanks and Regards
Rajesh Kumar
Sr. Software Engineer
R & D - Network Group
ImiMobile Pvt Ltd
+91 40 23555945 - 235
+91 99084 00027
www.imimobile.com


----- Original Message ----- 
From: "Mike Ayers" <[email protected]>
To: "rajesh" <[email protected]>; 
<[email protected]>
Sent: Thursday, May 29, 2008 1:16 AM
Subject: RE: How to add mib file in net-snmp to perform SET operation.


>
>> From: rajesh [mailto:[email protected]]
>> Sent: Wednesday, May 28, 2008 6:15 AM
>
>> How to enable the logs and where the logs are written .
>
> Consult the "LOGGING OPTIONS" section of the snmpcmd(1) manpage for a 
> complete explanation.
>
>> I have added nstAgentModuleObject_c.c in Agent directory .
>> Compiled the Library. Also Added the mib file in usr folder.
>>
>> still when I am querying for snmpget i m getting
>> snmpget -v 1 -c public 10.0.2.105
>> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
>>
>> response
>> ---------
>> Error in packet
>> Reason: (noSuchName) There is no such variable name in this MIB.
>> Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
>>
>> Plz suggest how to debug .
>
> The above is a start.  Most likely you'll want to add:
>
> rwcommunity public
>
> to the snmpd.conf file, which will enable full MIB access - this is of 
> course a config for testing only.
>
>
> HTH,
>
> Mike
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.