Connect to the switch via console, Telnet or SSH, then:

Switch>enable
Password: *************
Switch#configure
Switch(config)#snmp-server community snmpcommunityname ro ipaddress ipaddress
Switch(config)#snmp-server contact “FirstName LastName”
Switch(config)#snmp-server location “Location”

Don’t forget to save your configuration

copy running-config startup-config

%d bloggers like this: