[AGENT++] Help required
Vijay Kumar
vjkumar2003 at gmail.com
Fri Jan 29 09:50:10 CET 2010
Hi,
Please use the below syntax: -
You've told that the master agent and sub agent run on different machines.
You are sending the snmp get request to localhost rather specify the exact
listen IP and port of your snmp master agent.
Make sure you specify the source MIB file name(in this case MWSG-MIB. This
should be in your current directory from where you will execute the snmp
get/set) in the request file
For ex:-
*snmpget -v2c -c public -mMWSG-MIB -M.:/usr/local/share/snmp/mibs/
10.1.0.205:8000 1.3.6.1.4.1.7751.2.4.1.30.4.1
*
*Note*: -
If you still get the below mentioned error, then it means the object is not
created. That means you need to explicitly use snmp set command on the OID
1.3.6.1.4.1.4976.6.1.1 and then follow it up with the snmpget as you
mentioned below.
On Fri, Jan 29, 2010 at 1:20 PM, Nimish Bhargava
<nimish.bhargava at gmail.com>wrote:
> Hi
>
> I am new to snmp and agentX protocol
>
> I have installed SNMP++, AGENT++ and AGENTX++ on CentOS 5.2 and facing some
> problem in running the example sub agent.
> My master agent is net-snmp agentX.
> My master agent and subagent are running on different servers.
>
> As per the init() function of subagent.cpp, subagent registers a
> MibStaticTable and few leaf nodes.
> Using the master agent (snmpget) I am able to query the values of leaf
> nodes, however when I try the same for the table, I get the following
> response.
>
> snmpget -v 2c -c public localhost 1.3.6.1.4.1.4976.6.1.1
> SNMPv2-SMI::enterprises.4976.6.1.1 = No Such Object available on this agent
> at this OID
>
> Can anyone tell me how to get the table values through master agent.
>
> Regards
> Nimish
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
>
More information about the AGENTPP
mailing list