Skip to content

Commit 4e8bcbd

Browse files
committed
more
1 parent 4669da8 commit 4e8bcbd

File tree

1 file changed

+49
-40
lines changed

1 file changed

+49
-40
lines changed

articles/defender-for-iot/organizations/cli-ot-sensor.md

Lines changed: 49 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ Health checks are also available from the OT sensor console. For more informatio
3737
|**admin** | `system sanity` | No attributes |
3838
|**cyberx**, or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `cyberx-xsense-sanity` | No attributes |
3939

40-
4140
The following example shows the command syntax and response for the *admin* user:
4241

4342
```bash
44-
root@xsense: system sanity
43+
shell> system sanity
4544
[+] C-Cabra Engine | Running for 17:26:30.191945
4645
[+] Cache Layer | Running for 17:26:32.352745
4746
[+] Core API | Running for 17:26:28
@@ -58,42 +57,39 @@ root@xsense: system sanity
5857

5958
System is UP! (medium)
6059
```
60+
### Reboot and shutdown
6161

62+
#### Reboot an appliance
6263

63-
### Restart and shutdown
64-
65-
#### Restart an appliance
66-
67-
Use the following commands to restart the OT sensor appliance.
68-
69-
|User |Command |Full command syntax |
70-
|---------|---------|---------|
71-
|**admin** | `system reboot` | No attributes |
72-
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo reboot` | No attributes |
73-
|**cyberx_host** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo reboot` | No attributes |
64+
Use the following commands to reboot the OT sensor appliance.
7465

66+
|User |Command |Full command syntax |Response to command |
67+
|---------|---------|---------|----|
68+
|**admin** | `system reboot` | No attributes | > Are you Sure? [y/N] <br><br> Message asking for password – you are given 3 attemps to enter the correct password, then will return to command line. |
69+
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo reboot` | No attributes ||
70+
|**cyberx_host** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo reboot` | No attributes ||
7571

7672
For example, for the *admin* user:
7773

7874
```bash
79-
root@xsense: system reboot
75+
shell> system reboot
8076
```
8177

8278
#### Shut down an appliance
8379

8480
Use the following commands to shut down the OT sensor appliance.
8581

86-
|User |Command |Full command syntax |
87-
|---------|---------|---------|
88-
|**admin** | `system shutdown` | No attributes |
89-
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo shutdown -r now` | No attributes |
90-
|**cyberx_host**, or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo shutdown -r now` | No attributes |
82+
|User |Command |Full command syntax |Response to command |
83+
|---------|---------|---------|---|
84+
|**admin** | `system shutdown` | No attributes | > Are you Sure? [y/N] <br><br> Message asking for password – you are given 3 attemps to enter the correct password, then will return to command line. |
85+
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo shutdown -r now` | No attributes | |
86+
|**cyberx_host**, or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `sudo shutdown -r now` | No attributes | |
9187

9288

9389
For example, for the *admin* user:
9490

9591
```bash
96-
root@xsense: system shutdown
92+
shell> system shutdown
9793
```
9894

9995
### Software versions
@@ -102,16 +98,15 @@ root@xsense: system shutdown
10298

10399
Use the following commands to list the Defender for IoT software version installed on your OT sensor.
104100

105-
|User |Command |Full command syntax |
106-
|---------|---------|---------|
107-
|**admin** | `system version` | No attributes |
108-
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `cyberx-xsense-version` | No attributes |
109-
101+
|User |Command |Full command syntax | Response to command |
102+
|---------|---------|---------|---|
103+
|**admin** | `system version` | No attributes | display of version data|
104+
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `cyberx-xsense-version` | No attributes | |
110105

111106
For example, for the *admin* user:
112107

113108
```bash
114-
root@xsense: system version
109+
shell> system version
115110
Version: 22.2.5.9-r-2121448
116111
```
117112

@@ -125,22 +120,20 @@ For more information, see [Update your sensors](update-ot-software.md#update-ot-
125120

126121
Use the following commands to show the current system date and time on your OT network sensor, in GMT format.
127122

128-
|User |Command |Full command syntax |
129-
|---------|---------|---------|
130-
|**admin** | `date` | No attributes |
131-
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `date` | No attributes |
132-
|**cyberx_host** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `date` | No attributes |
133-
123+
|User |Command |Full command syntax | Response to command |
124+
|---------|---------|---------|---|
125+
|**admin** | `date` | No attributes | display of date |
126+
|**cyberx** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `date` | No attributes | |
127+
|**cyberx_host** , or **admin** with [root access](references-work-with-defender-for-iot-cli-commands.md#access-the-system-root-as-an-admin-user) | `date` | No attributes | |
134128

135129
For example, for the *admin* user:
136130

137131
```bash
138-
root@xsense: date
132+
shell> date
139133
Thu Sep 29 18:38:23 UTC 2022
140-
root@xsense:
141134
```
142135

143-
#### Turn on NTP time sync
136+
#### Turn on NTP time sync ??????
144137

145138
Use the following commands to turn on synchronization for the appliance time with an NTP server.
146139

@@ -159,11 +152,20 @@ In these commands, `<IP address>` is the IP address of a valid IPv4 NTP server u
159152
For example, for the *admin* user:
160153

161154
```bash
162-
root@xsense: ntp enable 129.6.15.28
163-
root@xsense:
155+
shell> ntp enable 192.168.1.10
156+
Starting ntp-enable
157+
chrony.conf will updated server to be: 192.168.1.10
158+
Configuring IPtables
159+
Sending OPEN_PORTS request to OS manager
160+
Open UDS connection with /var/cyberx/system/os_manager.sock
161+
Received data: b'ack'
162+
Output from iptables-recover process: 0
163+
Starting chronyd
164+
Monit restart chronyd process: 0
165+
Finished ntp-enable
164166
```
165167

166-
#### Turn off NTP time sync
168+
#### Turn off NTP time sync ????
167169

168170
Use the following commands to turn off the synchronization for the appliance time with an NTP server.
169171

@@ -177,8 +179,15 @@ In these commands, `<IP address>` is the IP address of a valid IPv4 NTP server u
177179
For example, for the *admin* user:
178180

179181
```bash
180-
root@xsense: ntp disable 129.6.15.28
181-
root@xsense:
182+
shell> ntp disable system ntp disable 192.168.1.10
183+
Configuring IPtables
184+
Sending OPEN_PORTS request to OS manager
185+
Open UDS connection with /var/cyberx/system/os_manager.sock
186+
Received data: b'ack'
187+
Output from iptables-recover process: 0
188+
Stoping chrony
189+
Finished ntp-disable
190+
182191
```
183192

184193
## Backup and restore

0 commit comments

Comments
 (0)