Specifications

Configuring SNMP
6-8 Configuring SNMP
Configuring a Notification Target
AnotificationtargetisaremotedevicetowhichMSSsendsSNMPnotifications.Youcan
configuretheMSSSNMPenginetosendconfirmednotifications(informs)orunconfirmed
notifications(traps).SomeofthecommandoptionsdifferdependingontheSNMPversionand
thetypeofnotificationyouspecify.Youcanconfigureup
to10notificationtargets.
Toconfigureanotificationtargetfor informsfromSNMPv3,usethefollowingcommand:
set snmp notify target target-num ip-addr[:udp-port-number]
usm inform user username
snmp-engine-id {ip | hex hex-string}
[profile profile-name]
[security {unsecured | authenticated | encrypted}]
[retries num]
[timeout num]
Toconfigureanotificationtargetfor trapsfromSNMPv3,usethefollowingcommand:
set snmp notify target target-num ip-addr[:udp-port-number]
usm trap user username
[profile profile-name]
[security {unsecured | authenticated | encrypted}]
Toconfigureanotificationtargetfor informsfromSNMPv2c,usethefollowingcommand:
set snmp notify target target-num ip-addr[:udp-port-number]
v2c community-string inform
[profile profile-name]
[retries num]
[timeout num]
Toconfigureanotificationtargetfor trapsfromSNMPv2c,usethe f ollowingcommand:
set snmp notify target target-num ip-addr[:udp-port-number]
v2c community-string trap
[profile profile-name]
Toconfigureanotificationtargetfor trapsfromSNMPv1,usethefollowingcommand:
set snmp notify target target-num ip-addr[:udp-port-number]
v1 community-string
[profile profile-name]
Toclearanotificationtarget,usethefollowingcommand:
clearsnmpnotifytarget targetnum
ThetargetnumisanIDforthetarget.ThisIDislocaltotheRASanddoesnotneedtocorrespond
toavalueonthe targetitself.Youcanspecifyanumberfrom1to
10.
Theipaddr[:udpportnumber]istheIPaddressoftheserver.YoualsocanspecifytheUDPport
numbertosendnotificationsto.Thedefaultis162.
Usev1,v2c,orusmtospecifytheSNMPve rsion.
TheinformortrapoptionspecifieswhethertheMSS
SNMPengineexpectsthetargetto
acknowledgenotificationssenttothetargetbytheRAS.Useinformifyouwant
acknowledgements.Usetrapifyoudonotwantacknowledgements.Theinformoptionis
applicabletoSNMPversionv2corusmonly.
TheusernameisaUSMusername,andisapplicableonly
whentheSNMPversionisusm.Ifthe
userwillsendinformsratherthantraps,youalsomustspecifythesnmpengineidofthetarget.