KSC Open API
Kaspersky Security Center API description
params VServers2::GetVServerStatistic2 ( int  lVsId,
int  nMaxAgentInactivityDays 
)

Acquire info about whole Administration Server or the specified virtual server.

Returns information about whole Administration Server or the specified virtual server

Parameters:
lVsIdvirtual server id,
  • value 0 results in returning data about hosts connected directly to the physical server (VS0),
  • value (-1) results in returning data about whole Administration Server
nMaxAgentInactivityDaysmaximum number of days of Agent inactivity. Affects KLVSRV_AGENTS and KLSRV_PRODUCTS. Agents that were inactive for more days than this value are not counted, zero means "count all agents"
Returns:
(params) a container, see Virtual server statistic.