Previous Topic: SNMPNODE Statement—Specify an SNMP OID, Host, Port, Version, and Other OptionsNext Topic: SPNAME Statement—Specify Stored Procedure or Stored Function to Run


SNMPUSER Statement—Specify an SNMP v3 User Name

The SNMPUSER statement specifies the user name whose credentials are used for authorization in SNMP v3. This statement is ignored if your SNMP version is v1 or v2.

Supported Job Types

If your SNMP version is v3, this statement is required for the following job types:

Syntax

This statement has the following format:

SNMPUSER user_name
user_name

Specifies the user name whose credentials are used for authentication.

Limits: Up to 128 characters; case-sensitive; it cannot contain delimiters (such as spaces)

Note: Each user ID requires a corresponding password. The password is encrypted and stored separately from the user ID. For more information on defining passwords and other security requirements, refer to your scheduling manager's documentation.

Example: Specify SNMP User in an SNMP Value Set Job

Suppose that you want to set the value of the OUT456789 variable using SNMP v3. In this example, the job uses the AES privacy protocol and the MD5 authentication protocol. The OUT456789 variable belongs to the context named contxtname within the SNMP entity identified by the hexadecimal value CAB0. The credentials of user user1 are used for authorization.

AGENT SNMPAGENT
SNMPUSER user1
MIB 'c:\SNMP\MIBs\mymib.mib'   
SNMPNODE OUT456789 HOST(host.example.com) VERSION(3)
CONTEXTNAME contxtname
CONTEXTENGINEID X'cab0'
PRIVPROTOCOL AES
AUTHPROTOCOL MD5
PARAMETER TYPE(snmp:int) VALUE(8)