XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
66
1. Enable or disable SNMP Agent server function
Command
Explanation
Global Mode
snmp-server enabled
no snmp-server enabled
Enable the SNMP Age
nt function on the
switch; the no command disables the SNMP
Agent function on the switch.
2. Configure SNMP community string
Command
Explanation
Global Mode
snmp-server community {ro | rw} {0 |
7} <string> [access {<num-std>|<nam
e>}] [ipv6-access {<ipv6-num-std>|<ipv6-
name>}] [read <read-view-name>] [write
<write-view-name>]
no snmp-server community <string> [ac
cess {<num-std>|<name>}] [ipv6-access
{<ipv6-num-std>|<ipv6-name>}]
Configure the community string for the switch;
the no
command deletes the configured
community string.
3. Configure IP address of SNMP management station
Command
Explanation
Global Mode
snmp-server securityip { <ipv4-address>
| <ipv6-address> }
no snmp-server securityip { <ipv4-addre
ss> | <ipv6-address> }
Configure IPv4/IPv6 security address which is
allowed to access the switch on the NMS; the
no command deletes the configured security
address.
snmp-server securityip enable
snmp-server securityip disable
Enable or disable secure IP address check
function on the NMS.
4. Configure engine ID
Command
Explanation
Global Mode
snmp-server engineid <engine-string>
no snmp-server engineid
Configure the local engine ID on the switch.
This command is used for SNMP v3.
5. Configure user
Command
Explanation
Global Mode