Troubleshoot Using the paragon
CLI Utility
SUMMARY Read the following topic to understand how to use the paragon
command CLI utility.
Understand paragon
CLI Utility Commands
You can use the paragon
command CLI utility to run commands on pods
running in the system.
You must
either be a root user or a non-root user with superuser (sudo) provileges to run
these commands. The paragon
commands are a set of
intuitive commands to enable you to analyze, query, and troubleshoot your cluster.
To execute the commands, log in to any of the primary nodes. The output of some of
the commands is color-coded because, for some commands, the paragon
command utility executes the kubecolor commands instead of kubectl, kubecolor color
codes your kubectl command output. See Figure 1 for an example
output.
To view the entire set of commands help options available, use one of the following commands:
root@primary-node:~# paragon ? root@primary-node:~# paragon --help root@primary-node:~# paragon -h
You can view help options at any command level (not only at top level). For example:
root@primary-node:~# paragon insights cli ? paragon insights cli alerta => Gets into the CLI of paragon insights alerta pod. paragon insights cli byoi => Gets into the CLI of byoi plugin.Usage : --byoi <BYOI plugin name>. paragon insights cli configserver => Gets into the CLI of paragon insights config-server pod. paragon insights cli grafana => Gets into the CLI of paragon insights grafana pod. paragon insights cli influxdb => Gets into the CLI of paragon insights InfluxDB pod.Use Argument: --influx <influxdb-nodeip> to specify the node ip ,else the command will use first influx node as default.Eg: --influx influxdb-172-16-18-21 paragon insights cli mgd => Gets into the CLI of paragon insights mgd pod.
You can use the tab option to view possible auto-completion options for the commands.
To see top-level command auto-completion, type paragon
and press
tab. For example:
root@primary-node:~# paragon ambassador describe get pathfinder set common ems insights rookceph
To view the underlying command that a paragon command runs, use the echo or
-e
option. For example:
root@primary-node:~# paragon -e get nodes all >>>> command: kubecolor --force-colors get nodes
To execute a paragon command as well as view the underlying command that it runs, use
the debug or -d
option. For example:
root@primary-node:~# paragon -d get nodes all >>>> command: kubecolor --force-colors get nodes NAME STATUS ROLES AGE VERSION ix-pgn-pr-01 Ready control-plane,etcd,master 17d v1.26.6+rke2r1 ix-pgn-pr-02 Ready control-plane,etcd,master 17d v1.26.6+rke2r1 ix-pgn-pr-03 Ready control-plane,etcd,master 17d v1.26.6+rke2r1 ix-pgn-wo-01 Ready <none> 17d v1.26.6+rke2r1
To view the entire list of paragon
commands and the corresponding
underlying commands that they run, use:
root@primary-node:~# paragon --mapped
paragon
command output
Follow the instructions with regards to specific usage criteria such as arguments or
prerequisites, if any, in the help section of each command. Some commands need
mandatory arguments. For instance, the paragon insights logs devicegroup
analytical
command needs the argument --dg
devicegroup-name-with subgroup
. For example:
paragon insights logs devicegroup analytical --dg
controller-0
Some commands have prerequisites. For instance, prior to using the paragon
insights get playbooks
command, you must set the username and password
by using the paragon set username --cred
username
and paragon set password --cred
password
commands.
List of paragon CLI Utility Commands
The complete set of commands are listed in Table 1.
Command |
Description |
---|---|
|
Shows Paragon ambassador emissary pods. |
|
Shows all Paragon ambassador pods. |
|
Shows all Paragon ambassador services. |
|
Helps to find the Postgres roles. |
|
Shows the description of a particular node in the cluster. Use the Example: You can use the |
|
Shows the device manager Paragon ems pods. |
|
Shows the job manager Paragon EMS pods. |
|
Shows all Paragon EMS pods. |
|
Shows all Paragon EMS services. |
|
Shows the logs of Paragon EMS device manager pods. Use the |
|
Shows the logs of paragon ems job manager pod. Use the
|
|
Shows all namespaces available in Paragon. |
|
Shows a list of all nodes in the cluster. |
|
Validates if kubelet has any disk pressure. Use the Example: |
|
Validates if kubelet has sufficient memory. Use the Example: |
|
Checks for issues with calico and the network. Use the Example: |
|
Shows list of all nodes that is not ready in the cluster. |
|
Validates if kubelet has sufficient PID available. Use the Example: |
|
Shows list of all nodes that is ready in the cluster. |
|
Shows list of all taint on the nodes. |
|
Shows all the healthy Paragon pods. |
|
Shows all the unhealthy Paragon pods. |
|
Shows all the Paragon services that are exposed. |
|
Logs in to the CLI of the Paragon Insights alerta pod. |
|
Logs in to the CLI of the BYOI plug-in. Use the |
|
Logs in to the CLI of Paragon Insights config-server pod. |
|
Logs in to the CLI of Paragon Insights grafana pod. |
|
Logs in to the CLI of Paragon Insights influxdb pod. Use the Example: |
|
Logs in to the CLI of Paragon Insights mgd pod. |
|
Describes the Paragon Insights alerta pod. |
|
Describes the Paragon Insights REST API pod. |
|
Describes the Paragon Insights config-server pod. |
|
Describes the Paragon Insights grafana pod. |
|
Describes the Paragon Insights influxdb pod. Use the Example: |
|
Describes the Paragon Insights mgd pod. |
|
Shows the Paragon Insights alerta pod. |
|
Shows the Paragon Insights REST API pod. |
|
Shows the Paragon Insights config-server pod. |
|
Shows all the Paragon Insights device groups. The default username is As a prerequisite, run the |
|
Shows all Paragon Insights devices. The default username is As a prerequisite, run the |
|
Shows the Paragon Insights grafana pod. |
|
Shows the Paragon Insights influxdb pod. |
|
Shows the Paragon Insights network telemetry ingestion pods. |
|
Shows the Paragon Insights mgd pod. |
|
Shows all Paragon Insights playbooks. The default username is As a prerequisite, run the |
|
Shows all the Paragon Insights pods. |
|
Shows all the Paragon Insights services. |
|
Shows the logs of the Paragon Insights alerta pod. |
|
Shows the logs of the Paragon Insights rest api pod. |
|
Shows the logs of the Paragon Insights BYOI plug-in. Use the |
|
Shows the logs of the Paragon Insights config-server pod. |
|
Shows the logs of the Paragon Insights device group for service analytical engine. Use the Example: In the example, controller is the devicegroup name and 0 is the subgroup. |
|
Shows the logs of the Paragon Insights device group for service itsdb. Use the Example: In the example, controller is the devicegroup name and 0 is the subgroup. |
|
Shows the logs of the Paragon Insights device group for service jtimon. Use the Example: In the example, controller is the devicegroup name and 0 is the subgroup. |
|
Shows the logs of the Paragon Insights device group for service jti native. Use the Example: In the example, controller is the devicegroup name and 0 is the subgroup. |
|
Shows the logs of the Paragon Insights device group for service syslog. Use the Example: In the example, controller is the devicegroup name and 0 is the subgroup. |
|
Shows the logs of the Paragon Insights Grafana pod. |
|
Shows the logs of the Paragon Insights influxdb pod. Use the Example: |
|
Shows the logs of the Paragon Insights mgd pod. |
|
Logs in to the CLI of the Paragon Pathfinder BMP container. |
|
Logs in to the CLI of the Paragon Pathfinder ns-configserver container. |
|
Logs in to the CLI of the Paragon Pathfinder cRPD container. |
|
Logs in to the CLI of the Paragon Pathfinder debugutils container. |
|
Logs in to the CLI of the Paragon Pathfinder netconf container. |
|
Logs in to the CLI of the Paragon Pathfinder ns-pceserver container (PCEP) services. |
|
Logs in to the CLI of the Paragon Pathfinder ns-pcserver (PCS) container. |
|
Logs in to the CLI of the Paragon Pathfinder ns-pcsviewer (Paragon Planner Desktop Application) container. |
|
Gets into the CLI of paragon pathfinder scheduler container. |
|
Logs into the CLI of the Paragon Pathfinder ns-toposerver (Topology service) container. |
|
Logs into the CLI of the Paragon Pathfinder ns-web container. |
|
Debugs the Paragon Pathfinder cRPD routing-options configuration related to BGP-LS. |
|
Debugs the Paragon Pathfinder cRPD routes related to BGP-LS. |
|
Shows Paragon Pathfinder debugutils genjvisiondata help. |
|
Shows Paragon Pathfinder debugutils genjvisiondata params. |
|
Logs in to the Paragon Pathfinder PCEP CLI for debugging. |
|
Shows the Kubernetes cluster Postgres status. |
|
Shows the rabbitmqctl cluster status. |
|
Runs Paragon Pathfinder debugutils pod to snoop and decode data exchanged between AMQP. |
|
Shows Paragon Pathfinder debugutils snoop help. |
|
Runs Paragon Pathfinder debugutils pod to snoop and decode data exchanged between Postgres. |
|
Runs Paragon Pathfinder debugutils pod to snoop and decode data exchanged between Redis link. |
|
Runs Paragon Pathfinder debugutils pod to snoop and decode data exchanged between Redis lsp. |
|
Runs Paragon Pathfinder debugutils pod to snoop and decode data exchanged between redis nodes. |
|
Shows Paragon Pathfinder debugutils topo_util help. |
|
Shows Paragon Pathfinder debugutils topo_util tool to deactivate safe mode. |
|
Runs Paragon Pathfinder debugutils topo_util tool to refresh the current topology. |
|
Runs Paragon Pathfinder debugutils topo_util tool to save the current topology snapshot. |
|
Describes Paragon Pathfinder pod including cRPD and BMP containers. |
|
Describes Paragon Pathfinder pod including config-server container. |
|
Describes Paragon Pathfinder pod including debugutils container. |
|
Describes Paragon Pathfinder pod including ns-netconfd container. |
|
Describes Paragon Pathfinder pod including ns-pceserver container (PCEP services). |
|
Describes Paragon Pathfinder pod including ns-pcserver container (PCS). |
|
Describes paragon pathfinder pod including ns-pcsviewer container (Paragon Planner Desktop Application). |
|
Describes Paragon Pathfinder pod including scheduler container. |
|
Describes Paragon Pathfinder pod including ns-toposerver (Topology service) container. |
|
Describes Paragon Pathfinder pod including web container. |
|
Shows Paragon Pathfinder pod including cRPD and BMP containers. |
|
Shows Paragon Pathfinder pod including ns-configserver and syslog containers. |
|
Shows Paragon Pathfinder pod including debugutils container. |
|
Shows Paragon Pathfinder pod associated with the netconf process. |
|
Shows Paragon Pathfinder pod including ns-pceserver container (PCEP services). |
|
Shows Paragon Pathfinder pod including ns-pcserver container (PCS). |
|
Shows Paragon Pathfinder pod including ns-pcsviewer container (Paragon Planner Desktop Application). |
|
Shows all Paragon Pathfinder pods. |
|
Shows Paragon Pathfinder pod associated with the scheduler process. |
|
Shows all Paragon Pathfinder services. |
|
Shows Paragon Pathfinder pod including ns-toposerver container (Topology service). |
|
Shows Paragon Pathfinder pod associated with the ns-web process. |
|
Shows the logs of Paragon Pathfinder bmp pods bmp container.
Use the |
|
Shows the logs of Paragon Pathfinder bmp pods cRPD container.
Use the |
|
Shows the logs of Paragon Pathfinder bmp pods syslog
container. Use the |
|
Shows the logs of Paragon Pathfinder configserver pods
ns-configserver container. Use the |
|
Shows the logs of Paragon Pathfinder configserver pods syslog
container. Use the |
|
Shows the logs of Paragon Pathfinder netconf pods ns-netconfd
container. Use the |
|
Shows the logs of Paragon Pathfinder netconf pods syslog
container. Use the |
|
Shows the logs of Paragon Pathfinder pceserver pods
ns-pceserver container. Use the |
|
Shows the logs of Paragon Pathfinder pceserver pods syslog
container. Use the |
|
Shows processed logs of Paragon Pathfinder pceserver pods
syslog container fetching only timestamp, level, and
message. Use the |
|
Shows the logs of Paragon Pathfinder pcserver pods
ns-pcserver container. Use the |
|
Shows the logs of Paragon Pathfinder pcserver pods syslog
container. Use the |
|
Shows processed logs of Paragon Pathfinder pceserver pods
syslog container fetching only with timestamp, level, and
message. Use the |
|
Shows the logs of Paragon Pathfinder pcviewer pods
ns-pcviewer container. Use the |
|
Shows the logs of Paragon Pathfinder pcviewer pods syslog
container. Use the |
|
Shows the logs of Paragon Pathfinder toposerver pods
ns-topo-dbinit container. Use the |
|
Shows the logs of Paragon Pathfinder toposerver pods
ns-topo-dbinit-cache container. Use the |
|
Shows the logs of Paragon Pathfinder toposerver pods
ns-toposerver container. Use the |
|
Shows the logs of Paragon Pathfinder toposerver pods syslog
container. Use the |
|
Shows processed logs of Paragon Pathfinder toposerver pods
syslog container fetching only with timestamp, level, and
message. Use the |
|
Shows the logs of Paragon Pathfinder web pods ns-web
container. Use the |
|
Shows the logs of Paragon Pathfinder web pods ns-web-dbinit
container. Use the |
|
Shows the logs of Paragon Pathfinder web pods syslog
container. Use the |
|
Shows the federation status (from rabbitmq-0 instance). GeoHa status is only available for a dual cluster setup. |
|
Reports Rook and Ceph OSD file system disk space usage. |
|
Shows Rook and Ceph OSD pool statistics. |
|
Shows Rook and Ceph OSD status. |
|
Shows Rook and Ceph OSD tree. |
|
Shows Rook and Ceph OSD utilization. |
|
Shows Rook and Ceph pg status. |
|
Shows Rook and Ceph status. |
|
Logs in to the CLI of Rook and Ceph toolbox pod. |
|
Shows Rook and Ceph pods. |
|
Shows Rook and Ceph services. |
|
This is RADOS gateway user administration utility which gets the period info. |
|
This is RADOS gateway user administration utility which gets the metadata sync status. |
|
Sets the Paragon (UI host) password for REST calls authentication. Use this mandatory one-time set password command to set the
password using the Example: |
|
Sets the Paragon (UI host) username for Rest calls
authentication. The default username is
Use the Example: |