snmp-server Commands
1-30 Network Management
Syntax of the “no” Form
Usethenoformofthiscommandtoremoveauser:
nosnmp-server user username groupname {v1 | v2c | v3}
Mode
Globalconfiguration:XSR(config)#
Example
Theexamplebelowconfiguresljcofthev3authgrpSNMPgroupwithstrongv3levelsecurity,MD5
authentication,andthepasswordacorntree:
XSR(config)#snmp-server user ljc v3 auth v3authgrp md5 acorntree
snmp-server view
Thiscommandcreatesorupdatesaviewentry.TheXSRprovidesonedefaultviewwhichisused
forallcommunitycommandswhichdonotspecifyaviewparameter.Thev1defaultviewincludes
theinternettreeandexcludessnmpUsmMIBandsnmpVacmMIB.Youcanremovethisviewwith
the
no snmp-server v1default command.
Syntax
snmp-server view view-name {oid-tree | treeEntryName} {included | excluded}
Syntax of the “no” Form
Usethenoformofthiscommandtoremoveaviewentry:
no snmp-server view view-name
sha
HMACSHAalgorithmusedforauthentication.
auth-password
Theuser’sauthenticationpassword.Atleast8charactersisrequired.
priv
Specifiestheprivacysetting.
des56
CBC‐DESprivacyencryptionalgorithm.
priv-password
Privacypasswordfortheuser.Aminimumof8charactersisrequired.
access
Specifiesanaccess‐listassociatedtothisuser.
access-list
StandardIPaccess‐listallowingaccesstothisuser.
view-name
Labelfortheviewrecordthatyouupdate/create.
oid-tree
Objectidentifierofthesubtreetobeincluded/excludedfromtheview.
ThisparametercanbeeitheranumericOIDorawell‐knownMIBname
listedinTable 1‐2onpage 1‐31,oraMIBnamefollowedbyanumeric
OID(i.e.,system.6forsysLocation).Namesarecase‐sensitive.
treeEntryName
Nameofthesub‐treeequivalenttotheobjectOIDtree.
included
ThisviewincludesthespecifiedOIDtree.
excluded
ThisviewexcludesthespecifiedOIDtree.