set snmp community
7-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”
D2(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 7‐20.
transporttransport (Optional)SpecifiesthesetoftransportendpointsfromwhichSNMP
requestwiththiscommunitynamewillbeaccepted.Makesalinktoa
targetaddresstable.
volatile|
nonvolatile
(Optional)Specifiesthestoragetypeforthese
entries.
name SpecifiestheSNMPcommunitynametoclear.