Sqler-Cmd
针对于sqler 工具cmd 部分 做了如下整理
1 Cluster Model
2 Regedit Model
$servers= '192.168.25.xx','192.168.25.yy' WfSqlerCmdGetRegdit $servers $WmiAccount $WmiPassWord 'HKEY_LOCAL_MACHINE' 'SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters'
192.168.25.xx Info:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\ServiceDll REG_EXPAND_SZ:C:\Windows\system32\srvsvc.dll
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\ServiceDllUnloadOnStop REG_DWORD:1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\EnableAuthenticateUserSharing REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\NullSessionPipes REG_MULTI_SZ:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\autodisconnect REG_DWORD:15
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\enableforcedlogoff REG_DWORD:1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\enablesecuritysignature REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\requiresecuritysignature REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\restrictnullsessaccess REG_DWORD:1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Lmannounce REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size REG_DWORD:3
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AdjustedNullSessionPipes REG_DWORD:3
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareWks REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Guid REG_BINARY:e5 82 40 ad 7a a 16 4e 92 da c3 93 a5 e9 e1 ba
192.168.25.yy Info:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\ServiceDll REG_EXPAND_SZ:C:\Windows\system32\srvsvc.dll
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\ServiceDllUnloadOnStop REG_DWORD:1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\EnableAuthenticateUserSharing REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\NullSessionPipes REG_MULTI_SZ:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\autodisconnect REG_DWORD:15
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\enableforcedlogoff REG_DWORD:1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\enablesecuritysignature REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\requiresecuritysignature REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\restrictnullsessaccess REG_DWORD:1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Lmannounce REG_DWORD:0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size REG_DWORD:3
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AdjustedNullSessionPipes REG_DWORD:3
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Guid REG_BINARY:fc e7 9f 29 19 bb bd 42 a0 6d ed 80 fb 1b 8 d8
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\NoRemapPipes REG_MULTI_SZ:winreg svcctl eventlog
3 HBA Model
WFSqlerCmdGetHbaInfo $servers $WmiAccount $WmiPassWord
----'192.168.xx.18' errorinfo Begin:03/11/2013 21:06:34------
Not supported
----'192.168.xx.18' errorinfo Begin:03/11/2013 21:06:34------
---'192.168.xx.33'Hbainfo----'
Server : 192.168.xx.33
NodeWWN : 20-00-00-24-FF-08-9E-F2
portwwn : 21-00-00-24-FF-08-9E-F2
PortState : 2
PortSpeed : 16
PortSupportedSpeed : 26
NodeSymbolicName : QLE2560 FW:v5.04.04 DVR:v9.1.9.27
ModelDescription : QLogic QLE2560 Fibre Channel Adapter
OptionROMVersion : 2.16
NumberOfPorts : 1
Model : QLE2560
Manufacturer : QLogic Corporation
HBAStatus : 0
FirmwareVersion : 5.04.04
DriverVersion : 9.1.9.27
DriverName : ql2300.sys
Active : True
Server : 192.168.xx.33
NodeWWN : 20-00-00-24-FF-08-9E-EF
portwwn : 21-00-00-24-FF-08-9E-EF
PortState : 2
PortSpeed : 16
PortSupportedSpeed : 26
NodeSymbolicName : QLE2560 FW:v5.04.04 DVR:v9.1.9.27
ModelDescription : QLogic QLE2560 Fibre Channel Adapter
OptionROMVersion : 2.16
NumberOfPorts : 1
Model : QLE2560
Manufacturer : QLogic Corporation
HBAStatus : 0
FirmwareVersion : 5.04.04
DriverVersion : 9.1.9.27
DriverName : ql2300.sys
Active : True
---'192.168.xx.33'Hbainfo----'
---'192.168.xx.39'Hbainfo----'
Server : 192.168.xx.39
NodeWWN : 20-00-00-24-FF-07-2B-96
portwwn : 21-00-00-24-FF-07-2B-96
PortState : 2
PortSpeed : 16
PortSupportedSpeed : 26
NodeSymbolicName : QLE2560 FW:v5.04.04 DVR:v9.1.9.27
ModelDescription : QLogic QLE2560 Fibre Channel Adapter
OptionROMVersion : 2.16
NumberOfPorts : 1
Model : QLE2560
Manufacturer : QLogic Corporation
HBAStatus : 0
FirmwareVersion : 5.04.04
DriverVersion : 9.1.9.27
DriverName : ql2300.sys
Active : True
Server : 192.168.xx.39
NodeWWN : 20-00-00-24-FF-07-2B-87
portwwn : 21-00-00-24-FF-07-2B-87
PortState : 2
PortSpeed : 16
PortSupportedSpeed : 26
NodeSymbolicName : QLE2560 FW:v5.04.04 DVR:v9.1.9.27
ModelDescription : QLogic QLE2560 Fibre Channel Adapter
OptionROMVersion : 2.16
NumberOfPorts : 1
Model : QLE2560
Manufacturer : QLogic Corporation
HBAStatus : 0
FirmwareVersion : 5.04.04
DriverVersion : 9.1.9.27
DriverName : ql2300.sys
Active : True
---'192.168.xx.39'Hbainfo----'
---------------
4 Domain Model
5 File Model
6