ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / SNMP Protocol functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SNMPOIDStatus (Function)
In french: SNMPOIDEtat
Returns the status of an 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.
Example
bMIBChargé is boolean
sCheminMIBs is string = CompleteDir(fExeDir()) + "mibs\"
sMib is string
sMib = "RFC1382-MIB.mib" // MIB du protocole X25
nEtat is int
bMIBChargé = SNMPLoadMIB(sCheminMIBs + sMib)
IF bMIBChargé = False THEN 
	Error("Erreur MIB :" + ErrorInfo())
ELSE
	nEtat = SNMPOIDStatus("dod.internet.mgmt.mib-2.transmission.x25.x25AdmnInterruptTimer")
	SWITCH nEtat
		CASE snmpStatusMandatory : Info("OID obligatoire")
		CASE snmpStatusOptional : Info("OID optionnel")
		CASE snmpStatusDeprecated : Info("OID ancien")
		CASE snmpStatusObsolete : Info("OID à ne plus utiliser")
		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 old: it has been replaced by one or more other OIDs, but its value is still filled in.
snmpStatusMandatoryThe OID is mandatory.
snmpStatusObsoleteThe OID is obsolete and must not be specified anymore.
snmpStatusOptionalThe OID is optional.
snmpStatusUnknownError: use ErrorInfo to find out more about the problem.
<OID to process>: Character string
String containing the OID in text or numeric format.
Component: wd300com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help