Navigation:  LVE-Stats 2 > Command-line Tools >


Previous pageReturn to chapter overviewNext page

usage: lve-read-snapshot [-h] [--version] [-f FROM [FROM ...]] [-t TO [TO ...]

                        | -p PERIOD | --timestamp TIMESTAMP]

                        [-i ID | -u USER] [-l] [-o file] [-j] [--stats]

                        [--unit unit]



Reads lve system state snapshots for LVE/user



optional arguments:

-h, --help            show this help message and exit

--version             Version number

-f FROM [FROM ...], --from FROM [FROM ...]

                       Run report from date and time in YYYY-MM-DD HH:MM

                       format, if not present last 10 minutes are assumed

                       (default: 2016-10-24 19:28)

-t TO [TO ...], --to TO [TO ...]

                       Run report up to date and time in YYYY-MM-DD HH:MM

                       format, if not present, reports results up to now

                       (default: 2016-10-24 19:38)

-p PERIOD, --period PERIOD

                       Time period specify minutes with m, h - hours, days

                       with d, and values: today, yesterday, 5m - last 5

                       minutes, 4h - last four hours, 2d - last 2 days, as

                       well as today (default: 10m)

--timestamp TIMESTAMP

                       time stamp in unix format for get one snapshot

                       (default: None)

-i ID, --id ID        LVE id to show records for (default: None)

-u USER, --user USER  user account to show records for (default: None)

-l, --list            show timestamp list only (default: False)

-o file, --output file

                       Filename to save snaphots report to, if not present,

                       output will be sent to STDOUT (default: None)

-j, --json            Output in json format (default: False)



--stats               Output stats, instead of snapshots (default: False)

--unit unit           Group stats by time unit. Example values 3h, 24h, 1d,

                       1w.Other possible value is "auto" for grouping by each

                       incident. (default: 1d)

One of -u --user or -i --id should be specified