# GetStatus

Returns the following details about the Media Server:

- statistics about running requests (sessions)
- product name
- version number
- build number
- the ACI port
- the service port
- the audio service ACI port, service port, and data port
- the modules that have been enabled
- the installation directory
- the number of ACI threads

NOTE: If Media Server is processing video, this action will take at least a second to complete.

## Parameters

Parameter | Description | Required
--- | --- | ---
CheckResources | Instructs Media Server to check the availability of resources such as IDOL Servers. | No
ShowTracksStatistics | A Boolean value that specifies whether to show statistics for each track. | No

## Example

    /action=GetStatus

## Response

The following is a sample response from the `GetStatus` action:

    <action>GETSTATUS</action>
    <response>SUCCESS</response>
       <responsedata>
          <statistics>
             <channelsAllocated visual="1" surveillance="1" audio="1"/>
             <channelsAvailable visual="0" surveillance="1" audio="1"/>
             <sessionStatistics token="MTYuMjguOTQuMTcyOjE0MDAwOlBST0NFU1M6MTQ0MzE4MDAxMzExNjAwMTU1ODgzNjM3">
                <processingSeconds>3</processingSeconds>
                <recordCount>3410</recordCount>
                <channelsUsage visual="1" surveillance="0" audio="0"/>
             </sessionStatistics>
          </statistics>
          <product>MediaServer</product>
          <version>12.0.0</version>
          <build>1234567</build>
          <aciport>14000</aciport>
          <serviceport>14001</serviceport>
          <audioaciport>14005</audioaciport>
          <audioserviceport>14006</audioserviceport>
          <audiodataport>14007</audiodataport>
          <enabledModules>audiomatch ocr speakerid speechtotext</enabledModules>
          <directory>C:\MediaServer</directory>
          <acithreads>4</acithreads>
       </responsedata>
    </autnresponse>

If you set the action parameter `ShowTracksStatistics=True`, Media Server returns statistics for the tracks in addition to statistics for the session:

    <sessionStatistics token="MTYuMjguOTQuMTcyOjE0MDAwOlBST0NFU1M6MTQ0MzE4MDAxMzExNjAwMTU1ODgzNjM3">
       <tracks>
          <track name="Audio__1" recordCount="1533" lastTimestamp="2015-09-25T11:43:18.124047Z"/>
          <track name="Encoded Source" recordCount="2489" lastTimestamp="2015-09-25T11:42:46.363647Z"/>
          <track name="Image_1" recordCount="918" lastTimestamp="2015-09-25T11:43:18.135047Z"/>
          <track name="Keyframe.Result" recordCount="4" lastTimestamp="2015-09-25T11:43:14.415047Z"/>
          <track name="Keyframe.ResultWithSource" recordCount="4" lastTimestamp="2015-09-25T11:43:14.415047Z"/>
          <track name="KeyframeOutput.Proxy" recordCount="4" lastTimestamp="2015-09-25T11:43:11.775047Z"/>
          <track name="Video.Proxy" recordCount="1" lastTimestamp="2015-09-25T11:43:18.124047Z"/>
       </tracks>
       <processingSeconds>5</processingSeconds>
       <recordCount>4953</recordCount>
       <channelsUsage visual="1" surveillance="0" audio="0"/>
    </sessionStatistics>

If you set the action parameter `CheckResources`, Media Server checks and returns the availability of resources. For example, if you set `CheckResources=IdolServer`:

    <responsedata>
       <resources>
          <server type="Idol" available="yes" port="9000" hostname="localhost">
             <status>
                <product>IDOL Server</product>
                <version>10.9.0</version>
                ...
             </status>
          </server>
       </resources>
       ...
    </responsedata>

_FT_HTML5_bannerTitle.htm