set snmp community
8-14 SNMP Configuration
Mode
Switchcommand,read‐only.
Example
ThisexampleshowshowtodisplayinformationabouttheSNMP“public”communityname.For
adescriptionofthisoutput,refertosetsnmpcommunity(page8‐14).
B5(su)->show snmp community public
--- Configured community strings ---
Name = *********
Security name = public
Context =
Transport tag =
Storage type = nonVolatile
Status = active
set snmp community
UsethiscommandtoconfigureanSNMPcommunitygroup.
Syntax
set snmp community community [securityname securityname] [context context]
[transport transport] [volatile | nonvolatile]
Parameters
Defaults
Ifsecuritynameisnotspecified,thecommunitynamewillbeused.
Ifcontextisnotspecified,the default(NULL)contextisapplied.
Iftransporttagisnotspecified,nonewillbeapplied.
Ifstoragetypeisnotspecified,nonvolatilewillbeapplied.
Mode
Switchcommand,read‐write.
community Specifiesacommunitygroupname.
securityname
securityname
(Optional)SpecifiesanSNMPsecuritynametoassociatewiththis
community.
contextcontext (Optional)Specifiesasubsetofmanagementinformationthiscommunity
willbeallowedtoaccess.Validvaluesarefullorpartialcontextnames.To
reviewallcontextsconfiguredfor
thedevice,usetheshowsnmpcontext
commandasdescribedin“showsnmpcontext”onpage 8‐21.
transporttransport (Optional)SpecifiesthesetoftransportendpointsfromwhichSNMP
requestwiththiscommunitynamewillbeaccepted.Makesalinktoa
targetaddresstable.
volatile|
nonvolatile
(Optional)Specifiesthestorage
typefortheseentries.