Chapter6Management
CommandFunction
zte(cfg-snmp)#setgroup<string>v3{auth|noauth|priv}[read
<string>[write<string>[notify<string>]]]
SetsanSNMPV3groupname
andthegroupsecuritylevel.
zte(cfg-snmp)#setuser<string><string>v3[md5-auth<string>|
sha-auth<string>[des56-priv<string>]]
SetsanSNMPV3username,
authenticationmodeand
password.
zte(cfg-snmp)#settrapmacnotification{port<1-51>|
trunk<1-15>}{enable|disable}
Enablesordisablesthetrap
functionofMACchange
noticationonaspecicport
ortrunk.
zte(cfg-snmp)#settrapmacnotification{history-size<1-256>|
interval<1-3600>}
Setsthethresholdofthenumber
andintervalofMACchange
notications.
zte(cfg-snmp)#clearhost<A.B.C.D>{trap|inform}<string>Clearsahostconguration.
zte(cfg-snmp)#clearcommunity<string>Clearsacommunityname.
zte(cfg-snmp)#clearview<string>Clearsaview.
zte(cfg-snmp)#cleargroup<string>v3{auth|noauth|priv}Clearsagroup.
zte(cfg-snmp)#clearuser<string>v3Clearsauser.
zte(cfg-snmp)#clearengineIDClearsanSNMPengineidentier
andrecoverstothedefaultvalue.
showsnmp(allcongurationmodes)DisplaysallSNMPconguration
information.
showsnmp{community|engineID|group|host|trap|user|
view}(allcongurationmodes)
DisplayseachelementofSNMP
V1,V2CandV3.
SNMPCongurationInstance1
lCongurationDescription
AssumethattheIPaddressofthenetworkmanagementserveris10.40.92.105,
theswitchhasalayer-3portwiththeIPaddressof10.40.92.200,andtheswitchis
managedthroughthenetworkmanagementserver.
Createacommunitynamed“zte”withtheread/writepermissionandaviewnamed
“vvv”,andthenassociatethecommunity“zte”withtheview“vvv”.SettheIPaddress
ofthecomputerreceivingtrapsto10.40.92.105,andthecommunityto“zte”.
TheDUTdeviceisdirectlyconnectedtonetworkmanagementserver.
lCongurationProcedure
zte(cfg)#configrouter
zte(cfg-router)#setipport0ipaddress10.40.92.200255.255.255.0
zte(cfg-router)#setipport0vlan2
zte(cfg-router)#setipport0enable
6-15
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential