Re: how to change in Agent code for new mib.

devel tech <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAFcNWF88Zgy+9aZ-LeP=c2qqR8uR7RE93uoSg4d94phy2dmjxg@mail.gmail.com>
thanks for reply.. i followed same steps but  i need to work on
2. Fill in code in GET and SET case in the C file.

i got error on in GET and sET code ,, and i have not grip on working of
Agent, :(



On Thu, Aug 25, 2011 at 8:08 PM, jatinder goswami <
[email protected]> wrote:

> Hi,
>
> 1. Compile your MIB using *mib2c *tool. This will generate template C file
> and H file for your module.
> 2. Fill in code in GET and SET case in the C file.
> 3. Copy C and header file into *agent/mibgroup *directory.
> 4. Reconfigure net-snmp with option *"--with-mib-modules=<New_MIB_Node>.*
> 5. Now *"make*" net-snmp again and run *snmpd*. It will have your MIB
> module included.
>
> -Jatinder
>
> You need to reconfigure net-snmp with "--with-mib-modules=<New_MIB_Node>
>
> On Thu, Aug 25, 2011 at 10:57 AM, devel tech <[email protected]>wrote:
>
>>
>>
>> help plz  on this issue.
>>
>> Thanks
>>
>>
>> On Thu, Aug 25, 2011 at 12:07 AM, devel tech <[email protected]>wrote:
>>
>>>
>>>
>>> Hi list!
>>>
>>> i am new in net-snmp development, i need help about a problem. I have a
>>> MIB (I used existing MIB of net-snmp and change few objects of it and save
>>> it by name test-MIB.txt at /usr/local/share/snmp/mibs path).. now i want to
>>> load it so that net-snmp agent use my test mib to response for GET queries.
>>>
>>> 1. I followed tutorial but no success, i tried it several time .
>>> 2. what change required at Agent end and where in Agent code of net-snmp
>>> 3. if i have private MIB(under private branch) then what steps required
>>> for the same task.
>>>
>>>
>>> plz guide me and sorry if i could not explain it properly .
>>>
>>> Thanks and Regards
>>>
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> EMC VNX: the world's simplest storage, starting under $10K
>> The only unified storage solution that offers unified management
>> Up to 160% more powerful than alternatives and 25% more efficient.
>> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
>> _______________________________________________
>> 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
>>
>>
>

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev

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