|
|
|
|
SNMPOIDStatus (Function) In french: SNMPOIDEtat Returns the status of an OID. Remark: This function cannot be used as long as the MIB file that describes the correspondence between the OIDs in text and numeric format has not been loaded ( SNMPLoadMIB). bMIBLoaded is boolean sPathMIBs is string = CompleteDir(fExeDir()) + "mibs\" sMib is string sMib = "RFC1382-MIB.mib" // MIB of X25 protocol nStatus is int bMIBLoaded = SNMPLoadMIB(sPathMIBs + sMib) IF bMIBLoaded = False THEN Error("MIB error:" + ErrorInfo()) ELSE nStatus = SNMPOIDStatus("dod.internet.mgmt.mib-2.transmission.x25.x25AdmnInterruptTimer") SWITCH nStatus CASE snmpStatusMandatory: Info("Mandatory OID") CASE snmpStatusOptional: Info("Optional OID") CASE snmpStatusDeprecated: Info("Former OID") CASE snmpStatusObsolete: Info("Obsolete OID") OTHER CASE: Error(ErrorInfo()) END END
Syntax
<Result> = SNMPOIDStatus(<OID to process>)
<Result>: Integer constant Constant corresponding to the status of the OID described in the MIB file: | | snmpStatusDeprecated | The OID is deprecated: it was replaced by one or more other OIDs but its value is still specified. | snmpStatusMandatory | The OID is mandatory. | snmpStatusObsolete | The OID is obsolete and must not be specified anymore. | snmpStatusOptional | The OID is optional. | snmpStatusUnknown | Error: ErrorInfo returns more information on the error. |
<OID to process>: Character string String containing the OID in text or numeric format.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|