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
SNMPLoadMIB (Function)
In french: SNMPChargeMIB
Loads a MIB file in memory and analyzes it. This file contains the OID definitions used to convert the numeric identifiers into string. It also contains a text that describes the OIDs.
Example
MIBLoaded is boolean
PathMIBs is string = CompleteDir(fExeDir()) + "mibs\"
Mib is string
Mib = "RFC1382-MIB.mib" // MIB of X25 protocol
MIBLoaded = SNMPLoadMIB(PathMIBs + Mib)
IF MIBLoaded = False THEN
Error("MIB error:" + ErrorInfo())
END
Syntax
<Result> = SNMPLoadMIB(<Name of MIB file>)
<Result>: Boolean
  • True if the file was successfully loaded and analyzed,
  • False if an error occurred. ErrorInfo returns more information on the error.
<Name of MIB file>: Character string
Full path of the MIB file. This path can be a full path or a path relative to the current directory.
Remarks
  • In Windows, some MIB files are supplied in the system32 directory.
  • Several MIB files can be loaded. The searches will be performed in all the loaded MIB files.
  • If a MIB file accesses another MIB file in its code, the second MIB file is automatically loaded (if the name specified in the MIB file is identical to the physical name of the MIB file).
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