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.