Specifications

Configuring SNMP
6-4 Configuring SNMP
•Tospecifyakey,usetheauthkeyhexstringoption.Typea16bytehexadecimalstringfor
MD5ora20bytehexadecimalstringforSHA.
TheencrypttypeoptionspecifiestheencryptiontypeusedforSNMPtraffic.Youcanspecifyone
ofthefollowing:
none—Noencryptionisused.
Thisisthedefault.
des—DataEncryptionStandard(DES)encryptionisused.
3des—TripleDESencryptionisused.
aes—AdvancedEncryptionStandard(AES)encryptionisused.
Iftheencryptiontypeisdes,3des,oraes,youcanspecifyapassphraseorahexadecimalkey.
•Tospecifyapassphrase,usetheencrypt
passphrasestringoption.Thestringcanbefrom8to
32alphanumericcharacterslong,withnospaces.Typeastringatleast8characterslongfor
DESor3DES,oratleast12characterslongforAES.
•Tospecifyakey,usetheencryptkeyhexstringoption.Typea
16bytehexadecimalstring.
Examples
ThefollowingcommandcreatesUSMusersnmpmgr1,associatedwiththelocalSNMPengineID.
Thisusercansendtrapstonotificationreceivers.
set snmp usm snmpmgr1 snmp-engine-id local
success: change accepted.
ThefollowingcommandcreatesUSMusersecuresnmpmgr1,whichusesSHAa uthenticationand
3DESencryptionwithpassphrases.Thisusercansendinformstothenotificationreceiverthathas
engineID192.168.40.2.
set snmp usm securesnmpmgr1 snmp-engine-id ip 192.168.40.2 auth-type sha auth-
pass-phrase myauthpword encrypt-type 3des encrypt-pass-phrase mycryptpword
success: change accepted.
Setting SNMP Security
Bydefault,MSSallowsnonsecureSNMPmessageexchanges.YoucanconfigureMSStorequire
secureSNMPexchangesinstead.
DependingonthelevelofsecurityyouwantMSStoenforce,youcanrequireauthenticationof
messageexchangesonly,orofmessageexchangesandnotifications.Youalsocanrequire
encryptioninadditionto
authentication.
SNMPv1andSNMPv2c donotsupportauthenticationorencryption.IfyouplantouseSNMPv1
orSNMPv2c,leavetheminimumlevelofSNMPsecuritysettounsecured.
TosettheminimumlevelofsecurityMSSrequiresforSNMP,usethefollowingcommand:
set snmp security {unsecured | authenticated | encrypted | auth-req-unsec-notify}
Youcanspecifyoneofthefollowingoptions:
unsecured—SNMPmessageexchangesarenotsecure.Thisisthedefault,andistheonly
valuesupportedforSNM Pv1andSNMPv2c.(Thissecuritylevelisthesameasthe
noAuthNoPrivleveldescribedinSNMPv3RFCs.)