set snmp community
8-14 SNMP Configuration
set snmp community
UsethiscommandtoconfigureanSNMPcommunitygroup.
Syntax
set snmp community community [securityname securityname] [context context]
[transport transport] [volatile | nonvolatile]
Parameters
Defaults
Ifsecuritynameisnotspecified,thecommunitynamewillbeused.
Ifcontextisnotspecified,accesswillbegrantedforthedefaultcontext.
Iftransporttagisnotspecified,nonewillbeapplied.
Ifstoragetypeisnotspecified,nonvolatilewillbeapplied.
Mode
Switchcommand,read‐write.
Example
ThisexampleshowshowtosetanSNMPcommunitynamecalled“vip”
C2(su)->set snmp community vip
clear snmp community
UsethiscommandtodeleteanSNMPcommunityname.
Syntax
clear snmp community name
Parameters
community Specifiesacommunitygroupname.
securityname
securityname
(Optional)SpecifiesanSNMPsecuritynametoassociatewiththis
community.
contextcontext (Optional)Specifiesasubsetofmanagementinformationthiscommunity
willbeallowedtoaccess.Validvaluesarefullorpartialcontextnames.To
reviewallcontextsconfiguredforthedevice,usethe
showsnmpcontext
commandasdescribedin“showsnmpcontext”onpage 8‐20.
transporttransport (Optional)SpecifiesthesetoftransportendpointsfromwhichSNMP
requestwiththiscommunitynamewillbeaccepted.Makesa linktoa
targetaddresstable.
volatile|
nonvolatile
(Optional)Specifiesthestoragetypeforthese
entries.
name SpecifiestheSNMPcommunitynametoclear.