R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

170
Default
No SNMP context is configured on the device.
Views
System view
Predefined use roles
network-admin
Parameters
context-name: Specifies an SNMP context, a case-sensitive string of 1 to 32 characters.
Usage guidelines
An NMS and an SNMP agent can communicate with each other if the following conditions exist:
No SNMP context is configured on the NMS and the SNMP agent.
The NMS and the SNMP agent use the same SNMP context.
Otherwise, a timeout message appears, indicating a communication failure between the NMS and
SNMP agent.
You can create a maximum of 20 SNMP contexts.
Examples
# Create SNMP context trillcontext.
<Sysname> system-view
[Sysname] snmp-agent context trillcontext
Related commands
display snmp-agent context
snmp-agent group
Use snmp-agent group to create an SNMP group and specify its access right.
Use undo snmp-agent group to delete an SNMP group.
Syntax
SNMPv1 and SNMP v2c:
snmp-agent group { v1 | v2c } group-name [ read-view view-name ] [ write-view view-name ]
[ notify-view view-name ] [ acl acl-number | acl ipv6 ipv6-acl-number ] *
undo snmp-agent group { v1 | v2c } group-name
SNMPv3:
In non-FIPS mode:
snmp-agent group v3 group-name [ authentication | privacy ] [ read-view read-view ] [ write-view
write-view ] [ notify-view notify-view ] [ acl acl-number | acl ipv6 ipv6-acl-number ] *
undo snmp-agent group v3 group-name [ authentication | privacy ]
In FIPS mode:
snmp-agent group v3 group-name { authentication | pr
ivacy } [ read-view read-view ] [ write-view
write-view ] [ notify-view notify-view ] [ acl acl-number | acl ipv6 ipv6-acl-number ] *