You can define an SNMP Value Set (SNPS_JOB) job to set the value of an SNMP variable.
Note: To run these jobs, your system requires CA WA Agent for UNIX, Linux, or Windows. Your agent administrator must configure the agent as an SNMP manager.
Required Statements
To define an SNMP Value Set job, you must specify the following statements:
In addition, if your SNMP version is v1 or v2, you must also specify the following statement:
If your SNMP version is v3, you must also specify the following statements:
Optional Statements
You can specify the following optional statements for an SNMP Value Set job:
Note: The MIB statement is required if the SNMPNODE statement specifies an OID (object identifier) in string (non-numeric) format.
In addition, if your SNMP version is v3, you can also specify the following statements:
Example: Change the Value of an SNMP Variable using SNMP v2
Suppose that you want to set the value of the agentLogLevel variable to its highest level to diagnose a problem. 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 agentLogLevel HOST(host.example.com) PORT(161) VERSION(2) COMMUNITY public PARAMETER TYPE(snmp:int) VALUE(8)
Example: Change the Value of an SNMP Variable using SNMP v3
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)
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|