Configuration du SNMP
SNMP v1 et v2
Activation
ProCurve Switch 2650(config)# snmp-server enable
ProCurve Switch 2650(config)# no snmp-server enable
Configuration de la communauté
ProCurve Switch 2650(config)# snmp-server community public
ProCurve Switch 2650(config)# snmp-server location BAIE1
ProCurve Switch 2650(config)# snmp-server contact Admin
Autorisation
ProCurve Switch 2650(config)# ip authorized-managers 192.168.1.1 255.255.255.0 access operator
Serveur SNMP
ProCurve Switch 2650(config)# snmp-server host 192.168.1.200
Vérification
ProCurve Switch 2650# show snmp-server
SNMP Communities
Community Name MIB View Write Access
---------------- -------- ------------
public Manager Unrestricted
test Operator Restricted
Trap Receivers
Link-Change Traps Enabled on Ports [All] : All
Send Authentication Traps [No] : No
Address Community Events Sent Notify Type Retry Timeout
--------------------- --------------- ----------- ----------- ----- -------
Excluded MIBs
Snmp Response Pdu Source-IP Information
Selection Policy : Default rfc1517
Trap Pdu Source-IP Information
Selection Policy : Default rfc1517
SNMP v3
Activation
ProCurve Switch 2650(config)# snmpv3 enable
SNMPv3 Initialization process.
Creating user 'initial'
Authentication Protocol: MD5
Enter authentication password: ********
Privacy protocol is DES
Enter privacy password: ********
User 'initial' is created
Would you like to create a user that uses SHA? y
Enter user name: dunn
Authentication Protocol: SHA
Enter authentication password: ********
Privacy protocol is DES
Enter privacy password: ********
User creation is done. SNMPv3 is now functional.
Would you like to restrict SNMPv1 and SNMPv2c messages to have read only
access (you can set this later by the command 'snmp restrict-access'): y
ProCurve Switch 2650(config)#
Configuration
ProCurve Switch 2650(config)# snmpv3 user <user> auth sha <MDP> priv aes <MDP>
ProCurve Switch 2650(config)# snmpv3 group <groupe> user <user> sec-model ver3
Vérification
ProCurve Switch 2650# show snmpv3 enable
ProCurve Switch 2650# show snmpv3 user
ProCurve Switch 2650# show snmpv3 group