You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/defender-for-iot/organizations/cli-ot-sensor.md
+49-40Lines changed: 49 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,10 @@ Health checks are also available from the OT sensor console. For more informatio
37
37
|**admin**|`system sanity`| No attributes |
38
38
|**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 |
39
39
40
-
41
40
The following example shows the command syntax and response for the *admin* user:
42
41
43
42
```bash
44
-
root@xsense: system sanity
43
+
shell> system sanity
45
44
[+] C-Cabra Engine | Running for 17:26:30.191945
46
45
[+] Cache Layer | Running for 17:26:32.352745
47
46
[+] Core API | Running for 17:26:28
@@ -58,42 +57,39 @@ root@xsense: system sanity
58
57
59
58
System is UP! (medium)
60
59
```
60
+
### Reboot and shutdown
61
61
62
+
#### Reboot an appliance
62
63
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.
74
65
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 ||
75
71
76
72
For example, for the *admin* user:
77
73
78
74
```bash
79
-
root@xsense: system reboot
75
+
shell> system reboot
80
76
```
81
77
82
78
#### Shut down an appliance
83
79
84
80
Use the following commands to shut down the OT sensor appliance.
85
81
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 ||
91
87
92
88
93
89
For example, for the *admin* user:
94
90
95
91
```bash
96
-
root@xsense: system shutdown
92
+
shell> system shutdown
97
93
```
98
94
99
95
### Software versions
@@ -102,16 +98,15 @@ root@xsense: system shutdown
102
98
103
99
Use the following commands to list the Defender for IoT software version installed on your OT sensor.
104
100
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 ||
110
105
111
106
For example, for the *admin* user:
112
107
113
108
```bash
114
-
root@xsense: system version
109
+
shell> system version
115
110
Version: 22.2.5.9-r-2121448
116
111
```
117
112
@@ -125,22 +120,20 @@ For more information, see [Update your sensors](update-ot-software.md#update-ot-
125
120
126
121
Use the following commands to show the current system date and time on your OT network sensor, in GMT format.
127
122
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 ||
134
128
135
129
For example, for the *admin* user:
136
130
137
131
```bash
138
-
root@xsense: date
132
+
shell> date
139
133
Thu Sep 29 18:38:23 UTC 2022
140
-
root@xsense:
141
134
```
142
135
143
-
#### Turn on NTP time sync
136
+
#### Turn on NTP time sync ??????
144
137
145
138
Use the following commands to turn on synchronization for the appliance time with an NTP server.
146
139
@@ -159,11 +152,20 @@ In these commands, `<IP address>` is the IP address of a valid IPv4 NTP server u
159
152
For example, for the *admin* user:
160
153
161
154
```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
164
166
```
165
167
166
-
#### Turn off NTP time sync
168
+
#### Turn off NTP time sync ????
167
169
168
170
Use the following commands to turn off the synchronization for the appliance time with an NTP server.
169
171
@@ -177,8 +179,15 @@ In these commands, `<IP address>` is the IP address of a valid IPv4 NTP server u
177
179
For example, for the *admin* user:
178
180
179
181
```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
0 commit comments