3.7 KiB
3.7 KiB
Command Reference
Root
pxmon [--config path] [--json] <command>pxmon helppxmon shell(interactive alias to TUI)pxmon tui [name-or-id] [--interval 2s] [--iface eth0]pxmon clusters [name-or-id] [--interval 2s] [--iface eth0]pxmon network [name-or-id] [--interval 2s] [--iface eth0]pxmon cluster ...pxmon bot ...pxmon locker ...pxmon config ...pxmon export ...(shortcut)pxmon import ...(shortcut)pxmon explain [--find text]
Cluster command tree
connect|addlist|lsshow|getcurrentusedisconnect|remove|rmset-auth|auth|password|passwdopenssh|sshexec|run <name-or-id> -- <command>ping|checkbootstrapagentstatus [name-or-id]adopt-auth|sync-auth|repair-auth [name-or-id]update [name-or-id] [--restart-bot=true|false]versions|version-list
stats [name-or-id] [--once]usage [name-or-id] --range live|1h|1d|1mo|all [--du /]traffic [name-or-id] --range 1h|1d|1mo|allgraph [name-or-id] --range 1h|1d|1mo|all [--out file.png]p95 [name-or-id] --iface <iface> --range <duration> [--graph]slo|availability [name-or-id] --range 7d|30d|allcapacity forecast [name-or-id] --range 7d|30d|allalert|alerts show|set [name-or-id]alert-routing|routing show|set [name-or-id]alert-vm|vm-alert show|set|check [name-or-id]software|plugins show|scan [name-or-id]tag|tags add|rm|ls [name-or-id] --tags a,bkvm-tag|vm-tag add|rm|ls [name-or-id] --vm <name> --tags a,bchange-history|changes [--tail N]drift [name-or-id]baseline set|show [name-or-id]ack [name-or-id] --kind <kind> --for 24h
report export --format json|csv --out <path>backuptarget add|ls|rm|testplan add|ls|rm|runrun <plan-id-or-name>
repo-tunnel|repo|repo-tunnelinggateway-script --allow <ip-or-cidr> [--port 3128]gateway-setup <gateway-node> --allow <ip-or-cidr> [--port 3128]enable <name-or-id> --gateway <host:port> --table <id> [--gateway-ip <ip>] [--manager auto|apt|dnf|yum]install <name-or-id> --gateway <host:port> --table <id> -- <command>status <name-or-id>disable <name-or-id> --gateway <host:port> --table <id>
runbooklistshow <id>run <id>add --id ... --name ... --step ...add --editadd --from <path>rm <id>
runbook-trigger show|set [name-or-id]schedule|scheduleradd --name ... --cmd ... --every ...add --editadd --from <path>lsrm <task-id-or-name>run-duestart [--interval 30s]stopstatuslogs [--tail 200]worker [--interval 30s]
Bot
pxmon bot telegram show [--show-token]pxmon bot telegram set --token <token> --allow <id> [--allow <id> ...]pxmon bot telegram disablepxmon bot telegram restart [--poll 2s]pxmon bot telegram logs [--tail 200]pxmon bot telegram run [--poll 2s]
Locker
pxmon locker statuspxmon locker set [--password <pw>]pxmon locker unlock [--password <pw>]pxmon locker lockpxmon locker disablepxmon locker logs [--tail 200]
Config
pxmon config export [<path>] [--out <path>] [--password <pw>]pxmon config import <path> [--password <pw>] [--replace]
In-TUI command console
Alias examples:
alerts ...->cluster alert ...connect <name>->cluster use <name>software ...->cluster software ...clusters->cluster listping <name>->cluster ping <name>
Plugin-style commands from console:
kvm list|start|stop|reboot|top|net-toplxc list|start|stop|restart|stats|top|net-toplxd list|start|stop|restart|stats|top|net-topbird status|protocols|routesfrr status|routes|bgp|ospf