Agent_not initialized

by 
 on 27-Mar-2009 05:56 AM.
  in  OEMs & Developers 
hi,i want to make a standard agent and after compiling the mib when sending a get the mib return not initialized so is that rong or wat?
and wat to do to get the System default value like for OID System "SysName"
and "SysDesc" help please and thx.
  • No status

Re: Agent_not initialized

by 
 on 30-Mar-2009 12:04 PM
Hi,
Thank you for your interest in our product.

Normally agent will be having default implementation for standard mibs.Agent will respond with the default values for the standard mib oid's .
If you want to change the values for SysName and sysDesc please add the following piece of code after the SnmpAgentInitializer.initializeV1V2ComplianceTables(hdlr); method call in the main file of the generated agent(AdventNetSnmpAgent.java)

try{
com.adventnet.snmp.snmp2.agent.SystemGroupInstrument sgi =super.getSystemGroupListener();
sgi.setSysName("give the name");
sgi.setSysDescr("This is test description set to agent");

}
catch(Exception ae){
System.out.println("Exception in registering sysGroup "+ae.getMessage());
}


In the same manner you can set required values for different nodes.

Refer the below link for instrumenting the code.
http://www.adventnet.com/products/javaagent/help/snmp_agent/snmp/j_snmp_instrumentation.html#overview.


For more information please refer the java docs present in the below link

http://www.adventnet.com/products/javaagent/help/snmp_agent/javadocs/index.html

Hope this helps,please get back to us for further clarifications.

Thanks & Regards,
G.Meenakshi.
Post Actions
Statistics
  • 1
     Replies
  • 326
     Views
  • 0
     Followers
Tags for the post
No tags available for this topic.
© 2009 Corp. All rights reserved. Trademarks | Privacy Policy | Site Map | Contact Us | Careers

Edit Link Delete Link

Edit Link Delete Link

LoadingImage