![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| ||||||||||||
Users can also be managed through USM MIB access. SNMP Manager Configuration ExamplesThis section contains three examples of SNMP configurations. The NMA implements the Notification MIB module specified by the Internet Engineering Task Force in RFC 2573, which is accessible from http://www.ietf.org/rfc/rfc2573.txt. By default the NMA authorizes localhost to access its MIB using SNMPv1 or SNMPv2 on port 8085. SNMP traps are sent using the mechanism described in the RFC 2573. Traps are sent by default to localhost on port 8086 using SNMPv2 parameters, as defined in the default RFC 2573 configuration files:
The RFC 2573 configuration files can be manually edited. Alternately, use the com.sun.jdmk.snmp.rfc2573.manager.SnmpV3AppliMibRegistration class, found in the rfc2573mgr.jar file. Use this class to dynamically register or unregister SNMP managers at runtime. Example 4-3 is a code snippet that uses this class to register a trap target on trap port trapPort of the host localHost. Traps are received using SNMPv3 parameters. Example 4-3 Using the SnmpV3AppliMibRegistration API
SNMPv2 Configuration ExampleIn this configuration the NMA MIB is accessed using SNMPv2 on port number 8085. The SNMP manager is authorized to access the MIB located on host 10.8.1.253. Traps are sent to the manager on port 8086 using SNMPv2, using the Notification MIB described in RFC 2573. Example 4-4, Example 4-5, Example 4-6, Example 4-7, and Example 4-8 list the entries in the NMA configuration files that support this SNMP configuration. Example 4-4 Example Entries in nma.properties for SNMPv2
Example 4-5 Example Entries in nma.acl for SNMPv2
Example 4-6 Example Entry in nma.targets.txt for SNMPv2
Example 4-7 Example Entry in nma.params.txt for SNMPv2
Example 4-8 Example Entry in nma.notifs.txt for SNMPv2
SNMPv2 and SNMPv3 Hybrid Configuration ExampleIn this configuration the NMA is located at the CGTP address 10.8.3.18. The NMA MIB can be accessed through SNMPv2 and SNMPv3 using port number 8085. The manager that authorizes access to the MIB in SNMPv2 is located on host 10.8.1.253. The user defaultUser is authorized to access the MIB through SNMPv3 using the security parameters described in the nma.security file. Traps are sent to the manager on port 8086 using SNMPv2 and on port 8095 using SNMPv3. The notification MIB described in the RFC 2573 is used. Example 4-9, Example 4-10, Example 4-11, Example 4-12, Example 4-13, Example 4-14, Example 4-15, and Example 4-16 list the entries in the NMA configuration files that support this SNMP configuration. Example 4-9 Example Entries in nma.properties for Hybrid Configuration
Example 4-10 Example Entries in nma.security for Hybrid Configuration
Example 4-11 Example Entries in nma.acl for Hybrid Configuration
Example 4-12 Example Entries in nma.uacl for Hybrid Configuration
Example 4-13 Example Entries in nma.targets.txt for Hybrid Configuration
Example 4-14 Example Entries in nma.params.txt for Hybrid Configuration
| ||||||||||||
| ||||||||||||
![]() |