terminal command (Picture 1).
Picture 1: Go to into the configuration mode
Use the command "#snmp-server community public RO" in order to enable the Read Only (RO) community string (Picture 2).
Picture 2: Enable RO community string
where "public" is the Read-only community string. In Order to configure read-write community we use "RW" instead of "RO" (Picture 3).
Picture 3: Enable RW community string
In the end exit the configuration mode #exit and save the settings with #write memory command.