179
[Sysname] snmp-agent mib-view included test system
[Sysname] snmp-agent community write simple wr-sys-acc mib-view test
Related commands
display
snmp-agent
community
snmp-agent
mib-view
snmp-agent community-map
Use
snmp-agent community-map
to map an SNMP community to an SNMP context.
Use
undo snmp-agent community-map
to delete the mapping between an SNMP community and
an SNMP context.
Syntax
snmp-agent community-map
community-name
context
context-name
undo snmp-agent community-map
community-name
context
context-name
Default
No mapping between an SNMP community and an SNMP context exists on the device.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
community-name
: Specifies an SNMP community, a case-sensitive string of 1 to 32 characters.
context-name
: Specifies an SNMP context, a case-sensitive string of 1 to 32 characters.
Usage guidelines
This command enables a module on an agent to obtain the context mapped to a community name
when an NMS accesses the agent by using SNMPv1 or SNMPv2c.
You can configure a maximum of 10 community-context mappings on the device.
Examples
# Map SNMP community
private
to SNMP context
trillcontext
.
<Sysname> system-view
[Sysname] snmp-agent community-map private context ospfcontext
Related commands
display snmp-agent community
snmp-agent context
Use
snmp-agent context
to create an SNMP context.
Use
undo snmp-agent context
to delete an SNMP context.
Syntax
snmp-agent context
context-name
Содержание FlexNetwork 7500 Series
Страница 238: ...229 Sysname ...
Страница 420: ...411 Related commands packet capture ...
Страница 430: ...421 U url 78 username 79 user role 249 V version 80 vpn instance 81 W Websites 415 X xml 227 ...