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
+51-8Lines changed: 51 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,51 @@ While this article lists the command syntax for each user, we recommend using th
19
19
20
20
For more information, see [Access the CLI](../references-work-with-defender-for-iot-cli-commands.md#access-the-cli) and [Privileged user access for OT monitoring](references-work-with-defender-for-iot-cli-commands.md#privileged-user-access-for-ot-monitoring).
21
21
22
+
## List of available commands
23
+
24
+
| Category| Command |
25
+
|****|*****|
26
+
| config | config |
27
+
| system | backup </br>date</br>hostname</br>ntp</br>password</br>reboot</br>sanity</br>shell</br>shutdown</br>syslog</br>version|
To list the commands in a category, type ```help```. For example:
33
+
34
+
```bash
35
+
shell>help
36
+
config:
37
+
network:
38
+
system:
39
+
40
+
shell>help system
41
+
backup:
42
+
date:
43
+
ntp:
44
+
```
45
+
46
+
### Commands at the shell and category level
47
+
48
+
You can type commands at the shell or category level.
49
+
50
+
At the shell level type: \<category> \<command> \<parameter>.
51
+
52
+
Alternatively, type the \<category> and press ENTER. The shell will change to the category name, then type \<command> \<parameter>. For example:
53
+
54
+
```bash
55
+
shell> system ntp enable 10.0.0.1
56
+
Starting ntp-enable 10.0.0.1
57
+
.....
58
+
Finished ntp-enable
59
+
60
+
shell> system
61
+
system> ntp enable 10.0.0.1
62
+
Starting ntp-enable 10.0.0.1
63
+
.....
64
+
Finished ntp-enable
65
+
```
66
+
22
67
## Appliance maintenance
23
68
24
69
### Check OT monitoring services health
@@ -105,14 +150,14 @@ Use the following commands to show the current system date and time on your OT n
105
150
106
151
|User |Command |Full command syntax |
107
152
|---------|---------|---------|
108
-
|**admin**|`date`| No attributes |
153
+
|**admin**|`system date`| No attributes |
109
154
|**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 |
110
155
|**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 |
111
156
112
157
For example, for the *admin* user:
113
158
114
159
```bash
115
-
shell> date
160
+
shell>system date
116
161
Thu Sep 29 18:38:23 UTC 2022
117
162
shell>
118
163
```
@@ -128,16 +173,15 @@ To use these commands, make sure that:
128
173
129
174
|User |Command |Full command syntax |
130
175
|---------|---------|---------|
131
-
|**admin**|`ntp enable <IP address>`| No attributes |
176
+
|**admin**|`system ntp enable <IP address>`| No attributes |
132
177
|**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-ntp-enable <IP address>`| No attributes |
133
178
134
179
In these commands, `<IP address>` is the IP address of a valid IPv4 NTP server using port 123.
135
180
136
181
For example, for the *admin* user:
137
182
138
183
```bash
139
-
shell> ntp enable 129.6.15.28
140
-
shell>
184
+
shell> system ntp enable 129.6.15.28
141
185
```
142
186
143
187
### Turn off NTP time sync
@@ -146,16 +190,15 @@ Use the following commands to turn off the synchronization for the appliance tim
146
190
147
191
|User |Command |Full command syntax |
148
192
|---------|---------|---------|
149
-
|**admin**|`ntp disable <IP address>`| No attributes |
193
+
|**admin**|`system ntp disable <IP address>`| No attributes |
150
194
|**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-ntp-disable <IP address>`| No attributes |
151
195
152
196
In these commands, `<IP address>` is the IP address of a valid IPv4 NTP server using port 123.
0 commit comments