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
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 details about the problem.
<Name of MIB File>: Character string (with quotes)
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).

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