PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Limitation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SNMPOIDStatus (Function)
In French: SNMPOIDEtat
Returns the status of an OID.
Note: 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
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:
snmpStatusDeprecatedThe OID is deprecated: it was replaced by one or more other OIDs but its value is still specified.
snmpStatusUnknownError: ErrorInfo returns more details about the problem.
snmpStatusMandatoryThe OID is mandatory.
snmpStatusObsoleteThe OID is obsolete and it must not be specified anymore.
snmpStatusOptionalThe OID is optional.
<OID to Process>: Character string (with quotes)
String containing the OID in text or numeric format.
Remarks

Limitation

The SNMPxxx functions can only be used from Windows 2000 (they cannot be used with the following systems: Windows 98, Me or NT4).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment