---
name: "ltpcounter"
section: "1"
platform: "linux"
package: "ion"
version: "3.2.1+dfsg-1.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ltpcounter"
---

# ltpcounter(1)

LTP reception test program

## NAME

ltpcounter - LTP reception test program

## SYNOPSIS

**ltpcounter** *client\_ID* \[*max\_nbr\_of\_bytes*\]

## DESCRIPTION

**ltpcounter** uses LTP to receive service data units flagged with client service number *client\_ID* from a remote **ltpdriver** client service process.  When the total number of bytes of client service data it has received exceeds *max\_nbr\_of\_bytes*, it terminates and prints reception and cancellation statistics.  If *max\_nbr\_of\_bytes* is omitted, the default limit is 2 billion bytes.

While receiving data, **ltpcounter** prints a 'v' character every 5 seconds to indicate that it is still alive.

## EXIT STATUS

- "0"

  **ltpcounter** has terminated.  Any problems encountered during operation will be noted in the **ion.log** log file.

- "1"

  **ltpcounter** was unable to start, because it could not attach to the LTP protocol on the local node or could not open access to client service *clientId*.

  In the former case, run **ltpadmin** to start LTP and try again.

  In the latter case, some other client service task has already opened access to client service *clientId*.  If no such task is currently running (e.g., it crashed while holding the client service open), use **ltpadmin** to stop and restart the LTP protocol.

## FILES

No configuration files are needed.

## ENVIRONMENT

No environment variables apply.

## DIAGNOSTICS

Diagnostic messages produced by **ltpcounter** are written to the ION log file *ion.log*.

- ltpcounter can't initialize LTP.

  **ltpadmin** has not yet initialized LTP protocol operations.

- ltpcounter can't open client access.

  Another task has opened access to service client *clientId* and has not yet relinquished it.

- Can't get LTP notice.

  LTP system error.  Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun.

## BUGS

Report bugs to \<ion-bugs@korgano.eecs.ohiou.edu\>

## SEE ALSO

[*ltpadmin*(1)](/ltpadmin/1.md), [*ltpdriver*(1)](/ltpdriver/1.md), [*ltp*(3)](/ltp/3.md)
