Previous Topic: COMMANDNAME Statement—Specify Commands to Run (Windows and UNIX Jobs)Next Topic: CONNECTION Statement—Specify the JNDI Name of the Connection Factory


COMMUNITY Statement—Specify the SNMP v1 or v2 Read Community

The COMMUNITY statement specifies the SNMP v1 or v2 read community. This statement is ignored if your SNMP version is v3.

Supported Job Types

If your SNMP version is v1 or v2, this statement is required for the following job types:

Syntax

This statement has the following format:

COMMUNITY community
community

Specifies the community string that is used to authenticate against the network device.

Limits: Up to 256 characters; case-sensitive

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

Example: Specify Read Community in an SNMP Value Get Job

Suppose that you want to know the value of the agentVersion variable hosted by a network device. In this example, the host name of the network device is host.example.com and its port is 161. The SNMP version is v2 and the read community is public. The name of the MIB file is RFC1213-MIB.mib, which is located on the agent computer.

AGENT SNMPAGENT
MIB 'C:\SNMP\MIBs\RFC1213-MIB.mib'
SNMPNODE agentVersion HOST(host.example.com) PORT(161) VERSION(2)
COMMUNITY public