ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / SNMP Protocol functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SNMPOIDAccess (Function)
In french: SNMPOIDAccès
Returns the authorized access modes of a specific 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).
Example
bMIBLoaded is boolean
sPathMIBs is string = CompleteDir(fExeDir()) + "mibs\"
sMib is string
sMib = "RFC1382-MIB.mib" // MIB of X25 protocol
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 not accessible")
CASE snmpAccessWriteOnly: Info("OID in write mode")
CASE snmpAccessReadWrite: Info("OID in read/write mode")
CASE snmpAccessReadOnly: Info("OID in read mode")
OTHER CASE: Error(ErrorInfo())
END
END
Syntax
<Result> = SNMPOIDAccess(<OID to process>)
<Result>: Integer constant
Constant corresponding to the access mode described in the MIB file:
snmpAccessNoneThe OID is not accessible.
snmpAccessReadOnlyThe OID is accessible in read-only.
snmpAccessReadWriteThe OID is accessible in read/write.
snmpAccessUnknownError: ErrorInfo returns more information on the error.
snmpAccessWriteOnlyThe OID is accessible in write-only.
<OID to process>: Character string
String containing the OID in text or numeric format.
Component: wd290com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help