KSC Open API
Kaspersky Security Center API description
params NagRdu::GetCurrentHostState ( )

Returns a current host state.

Returns:
(paramParams) current host state with the following content:
                +---"EventLogs" (paramArray) - Array of remote file names (paramString).
                +---"HostDN" (paramString) - Host name.
                +---"InstallationLogs" (paramParams)
                |   +---"InstallationLogs_MSI" (paramArray) - Array of remote file names (paramString).
                |   +---"InstallationLogs_RI" (paramArray) - Array of remote file names (paramString).
                +---"LastActionResult" (paramString) - Remote file name to get the result of the last called command.
                +---"Products" (paramParams)
                |   +---Installed products enum like "1103/1.0.0.0" or "KES/11.0.0.0" (paramParams)
                |   |   +---"ComponentName" (paramString) - Component name.
                |   |   +---"DiagLog" (paramString) - Remote file name to get the results of the diagnostic utility.
                |   |   +---"DiagTrace" (paramString) - Remote file name for the diagnostic utility trace.
                |   |   +---"InstallPath" (paramString) - Product installation path.
                |   |   +---"ProdDumps" (paramArray) - Array of remote file names (paramString).
                |   |   +---"ProdProps" (paramInt) - Mask of the available product properties.
                |   |   +---"ProductBuild" (paramString) - Prosuct version displayed.
                |   |   +---"ProductDN" (paramString) - Product name displayed.
                |   |   +---"ProductName" (paramString) - Product name.
                |   |   +---"ProductRunning" (paramBool) - The parameter accepts true if the product is running.
                |   |   +---"ProductVersion" (paramString) - Product version.
                |   |   +---"TraceFile" (paramArray) - Array of remote file names (paramString).
                |   |   +---"TraceLevel" (paramInt) - Current trace level.
                |   |   +---"TraceLimitDef" (paramInt) - Default trace level.
                |   |   +---"TraceLimitMax" (paramInt) - Maximum trace level.
                |   |   +---"TraceLimitMin" (paramInt) - Minimum trace level.
                |   |   +---"TraceRotatedEnable" (paramInt) - Rotated trace enabled.
                |   |   +---"TraceRotatedFileCount" (paramInt) - Number of rotated trace files.
                |   |   +---"TraceRotatedFileSizeMb" (paramInt) - Maximum size of a rotated trace file.
                |   |   +---"TraceRotatedLevel" (paramInt) - Level of a rotated trace.
                |   |   +---"XperfTraceFile" (paramArray) - Array of remote file names (paramString).
                |   |   +---"XperfTraceLevel" (paramInt) - XPerf trace level.
                |   |   +---"XperfTraceSize" (paramInt) - XPerf trace size.
                |   |   +---"XperfTraceState" (paramInt) - XPerf trace state.
                |   |   +---"XperfTraceType" (paramInt) - XPerf trace type.
                +---"WuaLogs" (paramArray) - Array of remote file names (paramString).
                +---"WuaLogs_Win10" (paramArray) - Array of remote file names (paramString).
                
Exceptions:
Thefunction throws an exception in case of an error.

Mask of the available product properties ("ProdProps"):

                PP_MAY_BE_STOPPED = 1                       - Product may be stopped
                PP_MAY_BE_STARTED = 2                       - Product may be started
                PP_MAY_BE_RESTARTED = 4                     - Product may be resterted
                PP_MAY_RUN_DIAG = 8                         - Product may run diagnostics
                PP_MAY_USE_TRACE = 16                       - Product may use traces
                PP_MAY_MAY_ROTATE_TRACE = 32                - Product may use rotated traces
                PP_MAY_MAY_ROTATE_TRACE_WITH_COUNT = 256    - Product may use rotated traces with specified part numbers
                PP_MAY_MAY_BASE_XPERF_TRACE = 64            - Product may use XPERF traces
                PP_MAY_MAY_ROTATE_XPERF_TRACE = 128         - Product may use rotated XPERF traces