|
|
|
|
|
SNMPOIDAccess (Function) In french: SNMPOIDAccès Returns the authorized access modes of a specific OID. Note This function can only be used after loading the MIB file (function SNMPLoadMIB), which describes the correspondence between OIDs in text and numerical format. bMIBLoaded is boolean
sPathMIBs is string = CompleteDir(fExeDir()) + "mibs\"
sMib is string
sMib = "RFC1382-MIB.mib"
sAccess is int
bMIBLoaded = SNMPLoadMIB(sPathMIBs + sMib)
IF bMIBLoaded = False THEN
Error("MIB error:" + ErrorInfo())
ELSE
sAccess = SNMPOIDAccess("dod.internet.mgmt.mib-2.transmission.x25.x25AdmnInterruptTimer")
SWITCH sAccess
CASE snmpAccessNone: Info("OID inaccessible")
CASE snmpWriteAccessOnly: Info("Write OID")
CASE snmpAccessReadWrite: Info("OID read/write")
CASE snmpAccessReadOnly: Info("OID in read mode")
OTHER CASES: Error(ErrorInfo())
END
END
Syntax
<Result> = SNMPOIDAccess(<OID to process>)
<Result>: Integer constant Constant corresponding to the access mode described in the MIB file: | | snmpAccessNone | The OID is not accessible. | snmpAccessReadOnly | The OID is accessible in read-only. | snmpAccessReadWrite | The OID is accessible in read/write. | snmpAccessUnknown | Error: use ErrorInfo to find out more about the problem. | snmpAccessWriteOnly | The OID is accessible in write-only. |
<OID to process>: Character string String containing the OID in text or numeric format.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|