« Back
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.
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
Corp