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

This is a discussion on RE: How to add mib file in net-snmp to perform SET operation. within the SNMP Users forums, part of the Networking and Network Related category; > From: rajesh [mailto:rajeshkumar.r@imimobile.com] > Sent: Wednesday, May 28, 2008 6:15 AM > How to ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-28-2008
Mike Ayers
 
Posts: n/a
Default RE: How to add mib file in net-snmp to perform SET operation.


> From: rajesh [mailto:rajeshkumar.r@imimobile.com]
> 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
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

Reply With Quote
  #2 (permalink)  
Old 05-29-2008
rajesh
 
Posts: n/a
Default Re: How to add mib file in net-snmp to perform SET operation.

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" <mike_ayers@tvworks.com>
To: "rajesh" <rajeshkumar.r@imimobile.com>;
<net-snmp-users@lists.sourceforge.net>
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:rajeshkumar.r@imimobile.com]
>> 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
> 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
>




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

Reply With Quote
  #3 (permalink)  
Old 06-02-2008
Dave Shield
 
Posts: n/a
Default Re: How to add mib file in net-snmp to perform SET operation.

2008/5/29 rajesh <rajeshkumar.r@imimobile.com>:
> I added below line
> if (should_init("nstAgentModuleObject")) init_nstAgentModuleObject();
> in **mib_module_inits.h** file,


That should be done automatically, when you configure the
agent to add your new MIB.

How *exactly* did you try to add your MIB to the agent?


> but when I am executing snmpget , it is crashing .


What is crashing? The agent or snmpget?
Where exactly is it crashing?

See http://www.net-snmp.org/wiki/index.php/Debugger
for some simple instructions on how to find this out.

Dave

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

Reply With Quote
  #4 (permalink)  
Old 06-02-2008
Dave Shield
 
Posts: n/a
Default Re: How to add mib file in net-snmp to perform SET operation.

2008/6/2 rajesh <rajeshkumar.r@imimobile.com>:
> I performed following Steps .
>
> 1 ) copy the agent/mibgroup/nstAgentModuleObject.h and
> agent/mibgroup/nstAgentModuleObject.c .


but not

configure --with-mib-modules=nstAgentModuleObject

?

> 2 ) compile the net snmp lib file .


> Please tell me what steps i need to follow .


See above

Dave

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

Reply With Quote
  #5 (permalink)  
Old 06-02-2008
Dave Shield
 
Posts: n/a
Default Re: How to add mib file in net-snmp to perform SET operation.

2008/6/2 rajesh <rajeshkumar.r@imimobile.com>:
> configure --with-mib-modules=nstAgentModuleObject
>
> How should I follow above steps . I am using Windows XP .


Then read the file README.win32

Dave

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

Reply With Quote
  #6 (permalink)  
Old 06-02-2008
Dave Shield
 
Posts: n/a
Default Re: How to add mib file in net-snmp to perform SET operation.

2008/6/2 rajesh <rajeshkumar.r@imimobile.com>:
> How can I enable writing log file in to a file .
> Basically I want all the messages written "DEBUGMSGTL()" into file .


See "man snmpcmd"
In particular, the section headed "LOGGING OPTIONS"

Dave

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

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 02:25 AM.


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