O'Reilly logo

Network Management, MIBs and MPLS: Principles, Design and Implementation by Stephen B. Morris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix E. JDMK Sample Program Source Code

This appendix provides a listing of the JDMK sample program source code.

synchronousManager.Java

The following is a listing of the Java program:

 import javax.management.snmp.SnmpDefinitions; import javax.management.snmp.SnmpOid; import javax.management.snmp.SnmpVarBindList; import javax.management.snmp.manager.SnmpPeer; import javax.management.snmp.manager.SnmpParameters; import javax.management.snmp.manager.SnmpRequest; import javax.management.snmp.manager.SnmpSession; //import javax.management.snmp.manager.SnmpEventReportDispatcher; import com.sun.jdmk.Trace; import com.sun.jdmk.snmp.SnmpOidTableSupport; /** * To use the SNMP agent provided as part of JDMK, use port 8085. */ public class SynchronousManager ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required