Home > Cisco > Switch > Cisco 2960 X Owners Manual

Cisco 2960 X Owners Manual

Here you can view all the pages of manual Cisco 2960 X Owners Manual. The Cisco manuals for Switch are available online for free. You can easily download all the documents as PDF.

Page 61

DETAILED STEPS
PurposeCommand or Action
Enterstheglobalconfigurationmode.configureterminal
Example:
Switch#configureterminal
Step 1
DisablestheSNMPagentoperation.nosnmp-server
Example:
Switch(config)#nosnmp-server
Step 2
ReturnstoprivilegedEXECmode.end
Example:
Switch(config)#end
Step 3
Configuring Community Strings
YouusetheSNMPcommunitystringtodefinetherelationshipbetweentheSNMPmanagerandtheagent.
Thecommunitystringactslikeapasswordtopermitaccesstotheagentontheswitch.Optionally,youcan...

Page 62

DETAILED STEPS
PurposeCommand or Action
Enterstheglobalconfigurationmode.configureterminal
Example:
Switch#configureterminal
Step 1
Configuresthecommunitystring.snmp-servercommunitystring
[viewview-name][ro|rw]
[access-list-number]
Step 2
[email protected]
the@symbolaspartoftheSNMPcommunitystringwhenconfiguring
thiscommand.
Note
Example:
Switch(config)#snmp-servercommunitycomaccessro4
•Forstring,specifyastringthatactslikeapasswordandpermitsaccesstothe...

Page 63

ThisexampleshowshowtoassignthecomaccessstringtoSNMP,toallowread-onlyaccess,andtospecify
thatIPaccesslist4canusethecommunitystringtogainaccesstotheswitchSNMPagent:
Switch(config)#snmp-servercommunitycomaccessro4
What to Do Next
TodisableaccessforanSNMPcommunity,setthecommunitystringforthatcommunitytothenullstring
(donotenteravalueforthecommunitystring).
Toremoveaspecificcommunitystring,usethenosnmp-servercommunitystringglobalconfiguration
command....

Page 64

PurposeCommand or Action
•Theengineid-stringisa24-characterIDstringwiththenameofthecopyof
SNMP.Youneednotspecifytheentire24-characterengineIDifithastrailing[udp-portport-number]
engineid-string}zeros.SpecifyonlytheportionoftheengineIDuptothepointwhereonly
Example:
Switch(config)#snmp-serverengineIDlocal1234
zerosremaininthevalue.TheStepExampleconfiguresanengineIDof
123400000000000000000000.
•Ifyouselectremote,specifytheip-addressofthedevicethatcontainsthe...

Page 65

PurposeCommand or Action
Example:
Switch(config)#snmp-serveruserPatpublicv2c
EntertheSNMPversionnumber(v1,v2c,orv3).Ifyouenterv3,youhavethese
additionaloptions:
•encryptedspecifiesthatthepasswordappearsinencryptedformat.This
keywordisavailableonlywhenthev3keywordisspecified.
•authisanauthenticationlevelsettingsessionthatcanbeeitherthe
HMAC-MD5-96(md5)ortheHMAC-SHA-96(sha)authenticationleveland
requiresapasswordstringauth-password(nottoexceed64characters)....

Page 66

Table 10: Device Notification Types
DescriptionNotification Type Keyword
GeneratesBorderGatewayProtocol(BGP)statechangetraps.This
optionisonlyavailablewhentheIPservicesfeaturesetisenabled.
bgp
GeneratesSTPbridgeMIBtraps.bridge
Generatesatrapwhentheclusterconfigurationchanges.cluster
GeneratesatrapforSNMPconfigurationchanges.config
GeneratesatrapforSNMPcopyconfigurationchanges.copy-config
AllowCPU-relatedtraps.cputhreshold
GeneratesatrapforSNMPentitychanges.entity...

Page 67

DescriptionNotification Type Keyword
GeneratesSNMPportsecuritytraps.Youcanalsosetamaximum
trapratepersecond.Therangeisfrom0to1000;thedefaultis0,
whichmeansthatthereisnoratelimit.
Whenyouconfigureatrapbyusingthenotificationtype
port-security,configuretheportsecuritytrapfirst,and
thenconfiguretheportsecuritytraprate:
Note
1snmp-serverenabletrapsport-security
2snmp-serverenabletrapsport-securitytrap-raterate
port-security
GeneratesatrapfortheSNMPResponseTimeReporter(RTR).rtr...

Page 68

SUMMARY STEPS
1.configureterminal
2.snmp-serverengineIDremoteip-addressengineid-string
3.snmp-serveruserusernamegroup-name{remotehost[udp-portport]}{v1[accessaccess-list]|v2c
[accessaccess-list]|v3[encrypted][accessaccess-list][auth{md5|sha}auth-password]}
4.snmp-servergroupgroup-name{v1|v2c|v3{auth|noauth|priv}}[readreadview][writewriteview]
[notifynotifyview][accessaccess-list]
5.snmp-serverhosthost-addr[informs|traps][version{1|2c|3{auth|noauth|priv}}]
community-string[notification-type]...

Page 69

PurposeCommand or Action
SpecifiestherecipientofanSNMPtrapoperation.snmp-serverhosthost-addr[informs|traps]
[version{1|2c|3{auth|noauth|priv}}]
community-string[notification-type]
Step 5
Forhost-addr,specifythenameorInternetaddressofthehost(the
targetedrecipient).
Example:Switch(config)#snmp-serverhost203.0.113.1comaccesssnmp
(Optional)Specifytraps(thedefault)tosendSNMPtrapstothehost.
SpecifyinformstosendSNMPinformstothehost.
(Optional)SpecifytheSNMPversion(1,2c,or3).SNMPv1does
notsupportinforms....

Page 70

PurposeCommand or Action
(Optional)Definehowoftentoresendtrapmessages.Therangeis1
to1000;thedefaultis30seconds.
snmp-servertrap-timeoutseconds
Example:Switch(config)#snmp-servertrap-timeout60
Step 9
ReturnstoprivilegedEXECmode.end
Example:
Switch(config)#end
Step 10
What to Do Next
Thesnmp-serverhostcommandspecifieswhichhostsreceivethenotifications.Thesnmp-serverenable
trapcommandgloballyenablesthemethodforthespecifiednotification(fortrapsandinforms).Toenable...
Start reading Cisco 2960 X Owners Manual

Related Manuals for Cisco 2960 X Owners Manual

All Cisco manuals