Chapter6SNMPConīæguration
5.SetthetypesofTrapandInformmessagesthatareallowedtobesent.
CommandFunction
ZXR10(config)#snmp-serverenableinform
[<notification-type>]
Enablestheagenttosendnotiīæcations
andsetsthetypesofnotiīæcationsto
besent.
Thenotiīæcationtypescanbeallorone
ofthebgp,ospf,rmon,snmp,stalarm
andvpntypes.
ZXR10(config)#snmp-serverenableTrap
[<notification-type>]
EnablestheagenttosendTrap
messagesandsetsthetypesofTrap
messagestobesent.
TheTrapmessagetypescanbeall
oroneofthebgp,ospf,rmon,snmp,
stalarmandvpntypes.
6.SettheTrapdestinationhost.
CommandFunction
ZXR10(config)#snmp-serverhost[vrf
<vrf-name>]<ip-address>{Trap|inform}version{1|2c|3
{auth|noauth|priv}}<community-name/user>[udp-port
<udp-port>][<Trap-type>]
Conīæguresthedestinationforreceiving
SNMPnotiīæcations.Thesnmp-server
hostcommandneedstobeused
togetherwiththesnmp-serverenable
command.
vrf<vrf-name>:VRFname,range:1ā31characters.
<ip-address>:deīænestheIPaddressofahost.IPv4andIPv6aresupported.
Trap|inform:speciīæessendingTrapmessagesornotiīæcationstoahost.
version1|2c|3:theSNMPversion(v1,v2c,orv3).
auth:Thepacketstobesentareauthenticatedbutnotencrypted.
noauth:Thepacketstobesentarenotauthenticatedorencrypted.
priv:Thepacketstobesentareauthenticatedandencrypted.
<community-name/user-name>:communitynamestringofSNMPv1/v2orSNMPv3user
name,range:1ā32characters.
udp-port<udp-port>:numberoftheUDPportforsendingTraporinformmessages,
range:1ā65535.
<Trap-type>:TraporInformtype.TheTraptypecanbealloroneofthebgp,ospf,
rmon,snmp,stalarmandvpntypes.
7.Enablethesystemlogfunction.
6-3
SJ-20140504150128-007|2014-05-10(R1.0)ZTEProprietaryandConīædential