Re: how to fetch values from MY-MIB

Pushpa Thimmaiah <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAASqVJUSCedbh3v-C9M20ZMaJjDW_ZOmn2M50eEE7JA=7RSbhg@mail.gmail.com>
Hi Deepak,

You need to  update/recompile your snmpagent code with MY-MIB module

Ref: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module
http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Dynamically_Loadable_Object

Following may be steps for reference not exact
1. Use tool 'mib2c' and generate template for MY-MIB. It will create .h and
.c file
suppose if you have module myMibModule inside MY-MIB then myMibModule.c and
myMibModule.h files will be generated
[Its developer's work come here i.e remove placeholders and modify .c .h
files]
2. Place those .h .c file go net-snmp-xxx/agent/mibgroup. Create new
myMib.h file and add following line
config_require(myMibModule)
3. Add following lines in mib_module_includes.h
#include "mibgroup/myMib.h"
4. Reconfigure net-snmp
 append MY-MIB in --with-mib-modules=mibII MY-MIB
5. Recompile i.e make and make install
6. Use resultant snmp libraries and snmp binaries
Now remote nms can query MY-MIB values


Thanks,
Pushpa.T

On Tue, Aug 16, 2016 at 10:37 AM, deepak.sachan <[email protected]>
wrote:

>
>
> I have developed new mib file MY-MIB and successfully add it to my snmp
> package and run snmptranslate successfully (local host).
> How my agent give values from MY-MIB when i run snmpget from local/remote
> snmp manager.
>
>   Deepak
>
>
> The contents of this Email communication are confidential to the
> addressee. If you
> are not the intended recipient you may not disclose or distribute this
> communication
> in any form should immediately contact the sender. The information,
> images, documents
> and views expressed in this Email are personal to the Sender and do not
> expressly or
> implicitly represent official positions of DRDO and no authority exists on
> behalf of
> DRDO to make any agreements, or other binding commitment by means of Email.
>
>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> 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
>
>

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

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