This is a CLI command equivilant to the iRule
ISTAT
commands (see here for more info
DevCentral Wiki - iRules ISTAT).
Start with
key
which is made up of
class,
object,
measure type (
counter, gauge, string, text, signed, unsigned, bin, dec, hex, timestamp, timeval, uinthex), and
measure name to be separated by whitespace and enclosed in double quotes.
e.g.
istats set "uri /12345 counter Requests
would set an iStat named
Requests
under the class
uri
, object named
/12345
and a type of a
counter
The
-s
is simply a way to write iStats to a file for testing e.g.
istats set -s test.istat "uri /12345 counter Requests" 1
will write the file
test.istat
and create the record
Requests
as above.
You can then use
istats get -s test.istat "uri /12345 counter Requests"
or
istats incr -s test.istat "uri /12345 counter Requests" 1
which will only read and update the local file and not have any effect on the BIG-IP's actual iStats.
A good option is to dump the lot using something like
istats dump -s test.istat
which would look like the following.
test.istat [READONLY]: nextBlockId=704, last update at 2019-04-10 10:45:02
all facts:
[ uri=/12345 ][Requests] = 8 (2019-04-10 10:56:20)
Recommend looking at the following for more info: Introduction to iStats