I performed the operation
export MIBDIRS=/usr/share/snmp/mibs
Then I performed the following steps
1. I started the snmp demon using the command
snmpd -c /root/snmpd.conf
2. I started the example-demon on a terminal
./example-demon
It showed the message 'example-demon is up and running'
3. Then in another terminal I performed the snmpget operation.
It displayed the following error.
Error in packet
Reason: (gen Error) A general failure occurred
Failed Object : NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
4. The example-demon also stopped showing an error
./example-demon: relocation error: /usr/lib/libnetsnmpagent.so.5 : undefined symbol : 'hosts_ctl'
Can any one suggest what can be the reason. Can any one help me in executing the agent and running the sample commands as shown in the tutorial located at
http://www.net-snmp.org/tutorial-5/toolkit/index.html
Thanks and Regards, Rana.
----- Original Message ----- From: "Sasikumar Bodathula" <[EMAIL PROTECTED]>
To: "Rana" <[EMAIL PROTECTED]>
Sent: Friday, August 27, 2004 11:20 PM
Subject: Re: Problems in creating AgentX subagent
Hi, I also faced similar problem, I think this can help you .
export MIBDIRS=/usr/share/snmp/mibs:~/net-snmp-5.1/mibs
the first path is the default path , second is the path where the NET-SNMP-TUTORIAL-MIB.txt is stored.
On Sun, 2004-08-29 at 00:10, Rana wrote:Hi,
As mentioned I went to the site
http://www.net-snmp.org/tutorial-5/toolkit/index.html
and followed all the instructions as mentioned in the tutorial. For details
I am specifying the steps followed by me.
1. I downloaded all the files present at the 'toolkit' page.
2. I have put the NET-SNMP-TUTORIAL-MIB file in
/usr/local/share/snmp/mibs and net-snmp-5.1/mibs folder
3. Then I performed export MIBS=ALL
4. I performed the make operation as instructed. It went through
perfectly without any errors.
5. I have added the line 'master agentx' in snmpd.conf file.
6. Then I have executed './snmpd -c /root/snmpd.conf '
7. Then I executed './example-demon' on a terminal which displayed the
message 'example-demon is up and running and connected to master agent'.
8. But when I performed snmpget using 'snmpget -c public -v 2c localhost
.1.3.6.1.4.1.8072.2.4.1.1.2.0' it is not working.
It is showing a message
'NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 = No Such Object available
on this agent at this OID'
I couldn't find out the reason. Can anybody help me out but
mentioning what are the missed out steps to followed or what else to be
performed to make it work on Red Hat Linux AS(kernel 2.4.21-4.EL) which is
having net-snmp-5.0.8 installed.
Thanks in advance. Regards, Rana.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ 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