Global System Commands
Description
Displays general system information.
Commands
Table 1 describes the global system commands.
| Commands | Description |
|---|---|
show process |
Display the status of active processes. |
show process top |
Display the system summary information and the list of processes. |
networkstat |
Display network-related and diagnostic information. |
list <file-path> |
Display the files in a directory. |
exit |
Exit the CLI session. |
currentdir <file-path> |
Display the full path name of the current directory from the root folder. |
remove <file-path> |
Remove a file within a directory. Run this command only for the files located in the /home/cliadmin and /var/log folders. |
clear |
Clear the terminal screen. |
ping <IP-address> |
Verify the network connection and troubleshoot connectivity issues. |
show file <file-path> |
Display the contents of a file. To view the list of "<resource name>", use "<command>". |
remotecopy |
Copy files between hosts in a network. Run this command to copy files between a local host and a remote host. Enter the command in this format: scp [options] [[user@]host1:]source_file_or_directory [[user@]host2:]destination. The system allows file copying only from the following directories.:
|
ssh |
Run commands remotely. Run this command to apply tools for the command output available in the host server such as awk in Linux and findstr in Windows. |
reboot |
Reboot the VM. |
shutdown |
Shut down the VM. |
date |
Show the system date and time zone. |
traceroute |
Trace the path packets taken to the destination using tracepath. |
periodic |
Run a command periodically. |
tail |
Tail a file with a specific number of lines or Stream data. |
changepasswd |
Change the password of cliadmin user. Enter the password that meets the following requirements:
|
find <directory-path> <file-name> |
Search for a file within a directory. |
show version |
Display the version of VM and the reason for the last boot. The last boot reason will only be shown if the VM was rebooted or shut down through the CLI. |
Required Privilege Level
CLI Administrator
Sample Output
show process
top$ show process top
2025-03-06 07:22:38 UTC
top - 07:22:41 up 29 days, 15:31, 2 users, load average: 6.39, 4.23, 3.89
Tasks: 841 total, 3 running, 837 sleeping, 0 stopped, 1 zombie
%Cpu(s): 7.8 us, 9.1 sy, 0.0 ni, 82.0 id, 0.0 wa, 0.0 hi, 1.0 si, 0.0 st
MiB Mem : 80522.2 total, 2721.8 free, 27507.8 used, 50292.6 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 52574.2 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
102714 root 20 0 4494336 224264 59772 S 28.6 0.3 12975:47 global-search
28808 cliadmin 20 0 38.8g 784164 22500 S 23.8 1.0 10715:16 java
3643879 root 20 0 11604 5100 3684 R 23.8 0.0 0:00.10 top
2157627 root 20 0 915928 201648 74604 S 14.3 0.2 5817:08 kubelet
2988 root 20 0 1619540 791684 86040 S 9.5 1.0 4915:52 kube-apiserver
84474 65532 20 0 2660140 239372 67152 S 9.5 0.3 3035:30 csm
2870 root 20 0 10.8g 157504 56588 S 4.8 0.2 1778:26 etcd
6176 root 20 0 795332 68244 47272 S 4.8 0.1 748:52.13 calico-node
6286 root 20 0 756620 40980 28120 S 4.8 0.0 95:16.67 flanneld
10217 root 20 0 773540 59036 39948 S 4.8 0.1 1219:30 coredns
17674 root 20 0 230820 30752 12800 S 4.8 0.0 661:29.59 fluent-bit
58744 root 20 0 2262980 81260 47332 S 4.8 0.1 521:38.58 appvisibility
................networkstat$ networkstat Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 10.157.74.156:2385 0.0.0.0:* LISTEN 1468/etcd tcp 0 0 10.157.74.156:2379 0.0.0.0:* LISTEN 8433/etcd tcp 0 0 10.157.74.156:2380 0.0.0.0:* LISTEN 8433/etcd tcp 0 0 10.157.74.156:7946 0.0.0.0:* LISTEN 24030/speaker tcp 0 0 10.157.74.156:7472 0.0.0.0:* LISTEN 24030/speaker tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 2940/zot tcp 0 0 0.0.0.0:6443 0.0.0.0:* LISTEN 8525/kube-apiserver tcp 0 0 0.0.0.0:8033 0.0.0.0:* LISTEN 1128/apache2 tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 924/systemd-resolve tcp 0 0 0.0.0.0:7473 0.0.0.0:* LISTEN 24313/frr-metrics tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1507/sshd: /usr/sbi .....
list$ list /home/cliadmin 2025-03-07 14:08:42 UTC total 4.0K -rw-r--r-- 1 root root 1.7K Feb 5 05:40 documentdb_search.txt
currentdir$ currentdir 2025-03-07 14:11:13 UTC /home/cliadmin
ping$ ping 10.157.76.15 2025-03-07 14:13:09 UTC PING 10.157.76.15 (10.157.76.15) 56(84) bytes of data. 64 bytes from 10.157.76.15: icmp_seq=1 ttl=64 time=0.108 ms 64 bytes from 10.157.76.15: icmp_seq=2 ttl=64 time=0.083 ms 64 bytes from 10.157.76.15: icmp_seq=3 ttl=64 time=0.070 ms 64 bytes from 10.157.76.15: icmp_seq=4 ttl=64 time=0.058 ms 64 bytes from 10.157.76.15: icmp_seq=5 ttl=64 time=0.066 ms --- 10.157.76.15 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4075ms rtt min/avg/max/mdev = 0.058/0.077/0.108/0.017 ms
show
file$ show file /home/cliadmin/documentdb_search.txt
2025-03-07 14:19:40 UTC
QUERY: {'query': {'bool': {'filter': [{'multi_match': {'lenient': True, 'query': 'b5053fc4-fad5-4fa6-88a4-1edd401b729c',
'fields': ['*']}}], 'must_not': []}}, 'sort': {'@timestamp': {'order': 'desc', 'unmapped_type': 'boolean'}}, 'size': 10
000}
RESPONSE CODE: 200
{
"took": 16,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
}
..............remotecopy$ remotecopy /home/cliadmin/node-local.tgz root@10.157.79.185:/tmp/ root@10.157.79.185's password: node-local.tgz
$ remotecopy /usr/bin/uname root@10.157.79.185:/tmp/ --> /usr/bin/ dir not permitted for read data 2025-01-03 11:37:11 UTC Permission Denied. File is not allowed.
sshuser@host ~ % ssh cliadmin@10.157.76.15 "show health status | active" cliadmin@10.157.76.15's password: 2025-01-09 06:48:18 UTC status: Service is active. status: Service is active. status: Service is active. status: Service is active. status: Service is active.
C:\Users\useername>ssh cliadmin@10.157.76.40 show health status | findstr Status cliadmin@10.157.76.52's password: Status: Running
show
process$ show process
PID TTY STAT TIME COMMAND
2 ? S 0:00 [kthreadd]
3 ? I< 0:00 \_ [rcu_gp]
4 ? I< 0:00 \_ [rcu_par_gp]
5 ? I< 0:00 \_ [slub_flushwq]
6 ? I< 0:00 \_ [netns]
8 ? I< 0:00 \_ [kworker/0:0H-events_highpri]
10 ? I< 0:00 \_ [mm_percpu_wq]
11 ? S 0:00 \_ [rcu_tasks_rude_]
12 ? S 0:00 \_ [rcu_tasks_trace]
13 ? S 4:11 \_ [ksoftirqd/0]
14 ? I 9:57 \_ [rcu_sched]
15 ? S 0:02 \_ [migration/0]
16 ? S 0:00 \_ [idle_inject/0]
18 ? S 0:00 \_ [cpuhp/0]
19 ? S 0:00 \_ [cpuhp/1]
20 ? S 0:00 \_ [idle_inject/1]
21 ? S 0:03 \_ [migration/1]
22 ? S 3:48 \_ [ksoftirqd/1]
.......changepasswd$ changepasswd New password:
Release Information
Command introduced in Juniper Security Director Release 24.4.1.