Router(config)#snmp-server community academy ro
Sets a read-only (ro) community string called academy
Router(config)#snmp-server community academy rw
Sets a read-write (rw) community string called academy
Router(config)#snmp-server location 2nd Floor IDF
Defines an SNMP string that describes the physical location of the SNMP server
Router(config)#snmp-server contact Scott Empson 555-5236
Defines an SNMP string that describes the sysContact information
Note:
A community string is like a password. In the case of the first command, the community string grants you access to SNMP.