# Count conscom actions

> Counts the number of conscom actions, optionally for a specific management server.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/system-sdk-functions/count-conscom-actions/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Counts the number of conscom actions.

## Syntax

CountConscomActions() As Integer   
 

CountConscomActions(Byval ManagementServerID as Integer) as Integer

## Parameters

***ManagementServerID (Integer)***

The management server ID to check for. If omitted, conscom actions for all servers are counted.

## Return value

Integer. The number of conscom actions found.

## Example 1

In this example, the number of conscom actions for the management server with id = 3 is returned

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.CountConscomActions("3") 
```

## Example 2

In this example, the number of conscom actions for all management servers is returned

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.CountConscomActions() 
```
