|
LoadMIB
int LoadMIB(string
mibfile)
Return
Value
Returns TRUE if MIB file loaded
successfully; otherwise FALSE.
Parameters
mibfile
–
string that
specifies the full path to the MIB file.
Remarks
Call this function to load
NetDecision compiled MIB (cmf) file into the script. Loading MIB
file(s) allows using OID resolving functions later in the script
code. You can load as many cmf files into the script as you
wish.
Package
Plug in module:
nd_mibplg.npl
Example
The following
example demonstrates the use of LoadMIB function.
#
Example for MIB functions
int nStatus
nStatus = LoadMIB("C:\NetDecision\Compiled
Mibs\lrcsmib.cmf")
if
(nStatus == FALSE)
Println("Failed to load MIB file")
else
array OID = ResolveOID("1.3.6.1.4.1.2014.9.1.1.1.2.1.1.3", "INTEGER", "1")
Println(OID)
array Trap = ResolveTrap("1.3.6.1.4.1.2014.9.1.1.1.3.2.14")
Println(Trap)
endif
Output of the example script:
OID[Status] = 1
OID[Value] = ok
OID[Name] = systemAlarmStatusSummary
OID[Description] = System Alarm Status Summary.
Trap[Status] = 1
Trap[Name] = remoteAlarmStatus
Trap[Description] = Summary fault state for Remote Unit. Trap
Severity values can be: Major, Minor, OK
|