The CONTEXTNAME statement specifies the name of an SNMP context. An SNMP context is a collection of management information accessible by an SNMP entity. Since an item of management information can exist in more than one context, you can use the CONTEXTNAME statement, together with the CONTEXTENGINEID statement, to uniquely identify a variable within an administrative domain.
This statement is ignored if your SNMP version is v1 or v2.
Supported Job Types
This statement is optional for the following job types:
Syntax
This statement has the following format:
CONTEXTNAME [context_name]
(Optional) Specifies the name of the context that the variable belongs to.
Limits: Up to 256 characters; case-sensitive
Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.
Example: Specify Context Name 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)
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|