Комманда в ExternalParameter выполняется не полностью.
Сервер и агент v2.0.5
Лог агента:
[26-Aug-2016 14:36:57.729] [DEBUG] [session:0] Received message CMD_GET_PARAMETER
[26-Aug-2016 14:36:57.729] [DEBUG] [session:0] Requesting parameter "RAIDControllerStatus"
[26-Aug-2016 14:36:57.730] [DEBUG] H_ExternalParameter called for "RAIDControllerStatus" "E"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal""
[26-Aug-2016 14:36:57.730] [DEBUG] RunExternal called for "RAIDControllerStatus" "E"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal""
[26-Aug-2016 14:36:57.730] [DEBUG] RunExternal: command line is ""C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal""
[26-Aug-2016 14:36:58.624] [DEBUG] [session:0] GetParameterValue(): result is 0 (SUCCESS)
[26-Aug-2016 14:36:58.624] [DEBUG] [session:0] Sending message CMD_REQUEST_COMPLETED (size 88)
[26-Aug-2016 14:36:58.624] [DEBUG] [session:0] Outgoing message dump:
** 001D0008000000580000005E00000002
** 0000001C000000000000000000000000
** 0000001501000000000000280043006F
** 006E00740072006F006C006C00650072
** 007300200066006F0075006E0064003A
** 0020003100000000
** code=0x001D (CMD_REQUEST_COMPLETED) flags=0x0008 id=94 size=88 numFields=2
** [ 28] INT32 0
** [ 21] STRING "Controllers found: 1"
Вывод комманды в консоли:
C:\>"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /c "Optimal"
1
Вывод первой комманды:
C:\>"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller Status : Optimal
Channel description : SAS/SATA
Controller Model : Adaptec 4800SAS
Controller Serial Number : 7C2710E1D59
Physical Slot : Unknown
Temperature : 40 C/ 104 F (Normal)
Installed memory : 256 MB
Copyback : Disabled
Background consistency check : Disabled
Automatic Failover : Enabled
Defunct disk drive count : 0
Logical devices/Failed/Degraded : 4/0/0
--------------------------------------------------------
Controller Version Information
--------------------------------------------------------
BIOS : 5.2-0 (11564)
Firmware : 5.2-0 (11564)
Driver : 5.2-0 (16119)
Boot Flash : 5.2-0 (11564)
--------------------------------------------------------
Controller Battery Information
--------------------------------------------------------
Status : Not Installed
Command completed successfully.
Часть конфиг агента:
DebugLevel = 9
ExecTimeout = 10000
ExternalParameter = RAIDControllerStatus:"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal"
Насколько я помню, arcconf долго отрабатывает. Если это так, лучше использовать ExternalParametersProvider.
Увеличением тайм-аута тут уже не обойтись.
Субьектвно, он отрабатывает не более 2 секунд.
Через ExternalParametersProvider работает, придется использовать.