MSiSCSI jscript sample code
The foundations for Manageability in Windows is Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself. The MSiSCSI WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
var strComputer = "."; var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\WMI"); var colItems = objWMIService.ExecQuery("SELECT * FROM MSiSCSI_HBAInformation", "WQL"); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Active: " + objItem.Active); WScript.Echo("AsicVersion: " + objItem.AsicVersion); WScript.Echo("BiDiScsiCommands: " + objItem.BiDiScsiCommands); WScript.Echo("CacheValid: " + objItem.CacheValid); WScript.Echo("DriverName: " + objItem.DriverName); WScript.Echo("FirmwareVersion: " + objItem.FirmwareVersion); WScript.Echo("FunctionalitySupported: " + objItem.FunctionalitySupported); WScript.Echo("GenerationalGuid: " + objItem.GenerationalGuid); WScript.Echo("InstanceName: " + objItem.InstanceName); WScript.Echo("IntegratedTCPIP: " + objItem.IntegratedTCPIP); WScript.Echo("MaxCDBLength: " + objItem.MaxCDBLength); WScript.Echo("MultifunctionDevice: " + objItem.MultifunctionDevice); WScript.Echo("NumberOfPorts: " + objItem.NumberOfPorts); WScript.Echo("OptionRomVersion: " + objItem.OptionRomVersion); WScript.Echo("RequiresBinaryIpAddresses: " + objItem.RequiresBinaryIpAddresses); WScript.Echo("SerialNumber: " + objItem.SerialNumber); WScript.Echo("Status: " + objItem.Status); WScript.Echo("UniqueAdapterId: " + objItem.UniqueAdapterId); WScript.Echo("VendorID: " + objItem.VendorID); WScript.Echo("VendorModel: " + objItem.VendorModel); WScript.Echo("VendorVersion: " + objItem.VendorVersion); WScript.Echo("VersionMax: " + objItem.VersionMax); WScript.Echo("VersionMin: " + objItem.VersionMin); WScript.Echo("") WScript.Echo("########") WScript.Echo("") }