MSiSCSI powershell 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
$strComputer = "."
$objWMi = get-wmiobject -namespace root\WMI -computername localhost -Query "Select * from MSiSCSI_HBAInformation"
foreach ($obj in $objWmi)
{
write-host "Active:" $obj.Active
write-host "AsicVersion:" $obj.AsicVersion
write-host "BiDiScsiCommands:" $obj.BiDiScsiCommands
write-host "CacheValid:" $obj.CacheValid
write-host "DriverName:" $obj.DriverName
write-host "FirmwareVersion:" $obj.FirmwareVersion
write-host "FunctionalitySupported:" $obj.FunctionalitySupported
write-host "GenerationalGuid:" $obj.GenerationalGuid
write-host "InstanceName:" $obj.InstanceName
write-host "IntegratedTCPIP:" $obj.IntegratedTCPIP
write-host "MaxCDBLength:" $obj.MaxCDBLength
write-host "MultifunctionDevice:" $obj.MultifunctionDevice
write-host "NumberOfPorts:" $obj.NumberOfPorts
write-host "OptionRomVersion:" $obj.OptionRomVersion
write-host "RequiresBinaryIpAddresses:" $obj.RequiresBinaryIpAddresses
write-host "SerialNumber:" $obj.SerialNumber
write-host "Status:" $obj.Status
write-host "UniqueAdapterId:" $obj.UniqueAdapterId
write-host "VendorID:" $obj.VendorID
write-host "VendorModel:" $obj.VendorModel
write-host "VendorVersion:" $obj.VendorVersion
write-host "VersionMax:" $obj.VersionMax
write-host "VersionMin:" $obj.VersionMin
write-host
write-host "########"
write-host
}
