Help regarding net-snmp new mib operations

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
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.