# APM using CLI to count sessions

**URL:** <https://community.f5.com/t/apm-using-cli-to-count-sessions/51658>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, application-delivery\
**Created:** [March 14, 2019, 8:42am UTC](https://community.f5.com/t/apm-using-cli-to-count-sessions/51658 "2019-03-14T08:42:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoolPolishGuy](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@CoolPolishGuy](https://community.f5.com/u/CoolPolishGuy)\
**Post date:** [March 14, 2019, 8:42am UTC](https://community.f5.com/t/apm-using-cli-to-count-sessions/51658/1 "2019-03-14T08:42:35Z")

</div>

Hello community,

I have recently generated a qkview and by looking at the total number of sessions i can see some irregularity that i would to investigate.

I would like using the CLI to count the number of session on a precise day. In order to compare those number and then maybe look to which app they have connected and make a conclusion.

I am struggling to count the number of sessions on a precise date.

Can anyone help me?

Thank you in advance

Wojtek

---

<div class="post-metadata">

**Author:** ![iaine](https://avatars.discourse-cdn.com/v4/letter/i/f07891/32.png) [@iaine](https://community.f5.com/u/iaine)\
**Post date:** [March 14, 2019, 2:44pm UTC](https://community.f5.com/t/apm-using-cli-to-count-sessions/51658/2 "2019-03-14T14:44:34Z")

</div>

Hi

You could use sessiondump --list | wc -l to get a number of active sessions from the cli. Kai posted some additional examples that expanded on using this command and the tmsh equivalent ([https://devcentral.f5.com/questions/f5-apm-manage-session-49045?lc=1](https://devcentral.f5.com/questions/f5-apm-manage-session-49045?lc=1))
