This article provides information on how to configure SNMP communities.
In this example, you will configure the Simple Network Management Protocol (SNMP) for two communities, named Marketing and Sales. In the first community, its members can read MIB II data and receive traps. In the second community, its members can read and write MIB II data, receive traps, and traffic alarms. The contact person is Jack Davis in Chicago. The Marketing community host IP addresses are 172.16.20.181, 172.16.40.245, and 172.16.40.55. The Sales community host is 172.16.20.250.
(CLI instructions are at the end of this article. Skip to CLI Instructions)
WebUI
- Open the WebUI. For more information on accessing the WebUI, read: KB4060 - Accessing Your NetScreen, SSG, or ISG Firewall Using the WebUI
- From the ScreenOS options menu, click Configuration, select Report Settings, and then click SNMP:

- In the System Contact text box, type a System Contact. In the Location text box, type a Location:

- Click Apply.
- From the SNMP page, click New Community:

- In the Community Name text box, type a Community Name. You can select the relevant permissions for the community and the correct version of SNMP:

- From Permissions, select Trap.
Note: The MIB II system group variables - 'sysContact' and 'sysName' (which is the same as the host name of the NetScreen device) are read-write objects. All other variables are read-only.
- In the Hosts IP Address / Netmask, type the IP address of the host and its subnet mask. Also select the trap version as selected above. Source interface is optional.
Note: The Netmask for the Host IP will always be /32 by default.

- Click Add.
All the three hosts can be similarly added. The following image illustrates all of the hosts being added:

- From the SNMP page, click New Community.

- In the Community Name text box, type a Community Name.

- From Permissions, select Write, Trap, and Including Traffic Alarms.
- In the Hosts IP Address / Netmask, type the IP address of the host and its subnet mask. Also, select the trap version as selected above. Source interface is optional:

- Click Add.
CLI
The CLI implementation for the above settings is as follows:
set snmp location "Chicago"
set snmp contact "Jack Davis"
set snmp name "CU-Netscreen"
set snmp port listen 161
set snmp port trap 162
set snmp community "Marketing" Read-Only Trap-on version v1
set snmp host "Marketing" 172.16.20.181/32 trap v1
set snmp host "Marketing" 172.16.20.245/32 trap v1
set snmp host "Marketing" 172.16.20.55/32 trap v1
set snmp community "Sales" Read-Write Trap-on traffic version v1
set snmp host "sales" 172.16.20.150/32 trap v1
2020-06-16: Removed the old WebUI snapshots and replaced with new WebUI snapshots.