Hi bhushan,
Thanks for the response.
My issue:
---------
1) I followed the procedure given in below mentioned link:
http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/mib_module/index.html
I created snmpd.conf file by following this below mentioned link:
http://net-snmp.sourceforge.net/tutorial/tutorial-5/demon/snmpd.html
After all the setup, configuration, compilation, ... I ran the snmpd process.
And then executed the snmpget operation command.. Then I am getting "No Such Instance currently exists at this OID" (For my newly added mib)
2) So I created subagent by using the steps in below mentioned link:
http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/index.html
Once I am trying to run this newly created subagent, then it is giving the error "Error: Failed to connect to the agentx master agent: Unknown host (/var/agentx/master) (Connection refused)"
I think so, now you understood my problem..
Kindly let me know, If I am missing anything..
Expecting an encouragement response from you.
Thanks and Regards,
Vijaya
-----Original Message-----
From: bhushan [mailto:[email protected]]
Sent: Thu 1/18/2007 5:16 PM
To: Vijaya Lakshmi D (WT01 - IP-Multimedia Carrier & Ent Networks)
Subject: Re: Help regarding net-snmp sub agent error -- adding new mib
I am not clear what problem u r facing ?
but hav u configured u r main agent i.e. snmpd ?
for agentx support by setting parameter in snmpd.conf
bcoz this is required for communication betw subagent & main agent
Regards
Bhushan
On 1/18/07, [email protected] <[email protected]> wrote:
>
>
> Forgot the subject..
>
> -----Original Message-----
> From: Vijaya Lakshmi D (WT01 - IP-Multimedia Carrier & Ent Networks)
> Sent: Thu 1/18/2007 11:04 AM
> To: [email protected]
> Subject:
>
>
> Hi All,
>
> I am developing SNMP agent using Net-SNMP. I started with mib2c to
> create c code for my MIB and i try to configure snmp.conf file to take
> my agent implementation. After configuring i queried OID for the MIB
> variable which i had implemented using snmpget, i am getting "No Such
> Object available on this agent at this OID".
>
> Also when I run subagent, I am getting "Error: Failed to connect to the
> agentx master agent: Unknown host (/var/agentx/master) (No such file or
> directory)" error.
>
> Below are the steps which I have followed.
> 1) I placed my MIB under /usr/local/share/snmp/mibs/SIP-COMMON-MIB.txt
> 2) Got net-snmp-5.1.4 tarball and untared it.
> 3)Created subagent using net-snmp-5.1.4/agent/mibgroup $mib2c ....
> SIP-COMMON-MIB::sipCommonStatusCode
> $net-snmp-config --compile-subagent mysubagent sipCommonStatusCode.c
> 4) ./configure --with-mib-modules="sipCommonStatusCode"
> 5) make
> 6) make install
> 7) Then created snmpd.conf using 'snmpconf -r none -g basic_setup'
> followed as per
> http://net-snmp.sourceforge.net/tutorial/tutorial-5/demon/snmpd.html
> 8) copied snmpd.conf to "/usr/local/share/snmp/snmpd.conf"
> 9) started snmpd using "/usr/local/sbin/snmpd -d -r -U -p
> /tmp/snmp-test-1-20322/snmpd.pid -Lf /tmp/snmp-test-1-20322/snmpd.log -C
> -c /tmp/snmp-test-1-20322/snmpd.conf udp:8863"
> 10)Tried starting subagent "$./mysubagent". I am getting below error
> Error: Failed to connect to the agentx master agent: Unknown host
> (/var/agentx/master) (No such file or directory)
> 11) Also if i run
> $snmpget -On -d -c testcommunity -v 2c udp:localhost:8863
> .1.3.6.1.2.1.0.1.5.0 I am getting ".1.3.6.1.2.1.0.1.5.3.1.2 = No Such
> Object/instance
> available on this agent at this OID"
> 12) But if I try any system installed MIB $snmpget -On -d -c
> testcommunity -v 2c udp:localhost:8863 .1.3.6.1.2.1.1.3.0 I am getting
> the below output.
> .1.3.6.1.2.1.1.3.0 = Timeticks: (789780) 2:11:37.80
>
> Please specify how i can merge my mib with Net-snmp. Any help on this is
> really appreciable.
>
> Expecting an encouragement response from you.
>
> Thanks in Advance.
>
> Regards,
> Vijaya
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> 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
>
>
>
--
bhushan. E . Sonawane
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.