Previous Topic: MFUSER Statement—Specify the Micro Focus User NameNext Topic: MODIFYPARAMETER Statement—Specify Modify Parameters


MIB Statement—Specify a MIB File Name

The MIB statement specifies the name of the MIB (management information base) file in an SNMP job. In an SNMP Subscribe job, you can also indicate continuous monitoring by specifying an alert name to trigger.

Supported Job Types

This statement is required for the following job types:

This statement is optional for the following job types:

Note: In an SNMP Value Set job, the MIB statement is required if the SNMPNODE statement specifies an OID (object identifier) in string (non-numeric) format.

Syntax

This statement has the following format:

file_name

Specifies the relative or absolute path to and name of the MIB file.

Limits: Up to 256 characters; case-sensitive

Note: If the MIB file is not loaded successfully, the job fails.

CONTINUOUS(alertid)

(Optional) Specifies the identifier of an alert to be triggered when an SNMP trap matches the filter condition in an SNMP Subscribe job. Defines the job as continuous. To end continuous monitoring, you must complete the job manually or cancel it. If you do not specify this operand, the job completes when the agent detects the filter value.

alertid

Specifies the alert identifier to be triggered.

Limits: 1-8 alphanumeric characters; the first character must be alphabetic

Note: The alert must have been previously defined to the scheduling manager. Not all scheduling managers support the CONTINUOUS operand.

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

Example: Specify the MIB File Name for an SNMP Trap Send Job

Suppose that you want to send the cybtrapstart trap to a network device using SNMP v3. In this example, five string parameters are passed to the trap. The host name of the network device is localhost and its port is 162. The job uses the AES privacy protocol and the SHA authentication protocol. The name of the MIB file is RFC1213-MIB.mib and the default engine ID is used. The credentials of user1 are used for authorization.

AGENT SNMPAGENT
MIB 'C:\SNMP\MIBs\RFC1213-MIB.mib'
SNMPNODE cybtrapstart HOST(localhost) PORT(162) VERSION(3)
SNMPUSER user1
AUTHPROTOCOL SHA
PRIVPROTOCOL AES
ENGINEID
PARAMETER TYPE(snmp:string) VALUE(p1)
PARAMETER TYPE(snmp:string) VALUE(p2)
PARAMETER TYPE(snmp:string) VALUE(p3)
PARAMETER TYPE(snmp:string) VALUE(p4)
PARAMETER TYPE(snmp:string) VALUE(p5)

Example: Specify the MIB File Name in an SNMP Subscribe Job

Suppose that you want the agent to subscribe to all SNMP traps it receives. In this example, the name of the MIB file is RFC1213-MIB.mib. Whenever the agent receives a trap, an alert named ALRT is sent.

AGENT SNMPAGENT
MIB 'C:\SNMP\MIBs\RFC1213-MIB.mib' CONTINUOUS(ALRT)
FILTER .*