Current APM CCU license usage

Problem this snippet solves:

This snippet shows how to get the actual number of CCUs used at the current time for APM.

How to use this snippet:

Execute this command from the CLI. The second line will show the current number of CCUs used.

Code :

echo -e 'get tmm.license.global_connectivity#\r' | nc 127.1.1.2 11211

Tested this on version:

11.5

This returns nothing on v11.6.0HF4.

Do not get any output on v11.2.1

have you tried this command instead?

tmsh show /sys license detail | grep apm _ access _ sessions