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 ...

Get Network Management, MIBs and MPLS: Principles, Design and Implementation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.