175
Parameters
context-name: Specifies an SNMP context, a case-sensitive string of 1 to 32 characters.
Usage guidelines
For an NMS and an SNMP agent to communicate, configure the same SNMP context for them or do
not configure a context for the NMS.
You can create a maximum of 20 SNMP contexts.
Examples
# Create SNMP context trillcontext.
<Sysname> system-view
[Sysname] snmp-agent context testcontext
Related commands
display snmp-agent context
snmp-agent group
Use snmp-agent group to create an SNMP group.
Use undo snmp-agent group to delete an SNMP group.
Syntax
SNMPv1 and SNMPv2c:
snmp-agent group { v1 | v2c } group-name [ read-view view-name ] [ write-view view-name ]
[ notify-view view-name ] [ acl { ipv4-acl-number | name ipv4-acl-name } | acl ipv6
{ ipv6-acl-number | name ipv6-acl-name } ] *
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 { ipv4-acl-number | name ipv4-acl-name } |
acl ipv6 { ipv6-acl-number | name ipv6-acl-name } ] *
undo snmp-agent group v3 group-name [ authentication | priv
acy ]
In FIPS mode:
snmp-a
gent group v3 group-name { authentication | privacy } [ read-view read-view ]
[ write-view write-view ] [ notify-view notify-view ] [ acl { ipv4-acl-number | name ipv4-acl-name } |
acl ipv6 { ipv6-acl-number | name ipv6-acl-name } ] *
undo snmp-agent group v3 group-name { authentication | privacy }
Default
No SNMP groups exist.
Views
System view
Predefined use roles
network-admin
Parameters
v1: Specifies SNMPv1.