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
Health check interval in seconds for interactive mode (default: 10)
206
208
--version, -v Show ONVIF CLI version and exit
207
209
208
210
Examples:
@@ -232,7 +234,7 @@ Examples:
232
234
<summary><b>2. Interactive Shell</b></summary>
233
235
234
236
```bash
235
-
ONVIF Interactive Shell Commands - v0.1.4
237
+
ONVIF Interactive Shell Commands - v0.1.5
236
238
https://github.com/nirsimetri/onvif-python
237
239
238
240
Basic Commands:
@@ -244,6 +246,7 @@ Basic Commands:
244
246
245
247
Navigation Commands:
246
248
<service> - Enter service mode (e.g., devicemgmt, media)
249
+
<service><argument> - Enter service mode with argument (e.g. pullpoint SubscriptionRef=<value>)
247
250
cd<service> - Enter service mode (alias)
248
251
ls - List commands/services/methods in grid format
249
252
up - Exit current service mode (go up one level)
@@ -263,6 +266,7 @@ Method Execution:
263
266
Data Management:
264
267
store <name> - Store last result with a name
265
268
show <name> - Show stored data
269
+
show <name>[0] - Show element at index (for lists)
266
270
show <name>.attribute - Show specific attribute
267
271
show - List all stored data
268
272
rm <name> - Remove stored data by name
@@ -330,6 +334,27 @@ If you omit the username or password, you will be prompted to enter them securel
330
334
> [!IMPORTANT]
331
335
> You can see all the other commands available in the interactive shell by trying it out directly. The interactive shell runs periodic background health checks to detect connection loss. It uses silent TCP pings to avoid interrupting your work and will automatically exit if the device is unreachable, similar to an SSH session.
332
336
337
+
**Command Chaining with `&&`:**
338
+
339
+
The CLI supports chaining multiple commands in a single line using the `&&` operator, allowing you to execute sequential operations efficiently:
340
+
341
+
```bash
342
+
# Enter service and execute method in one line
343
+
192.168.1.17:8000 > media && GetProfiles && store profiles
344
+
345
+
# Chain multiple method calls
346
+
192.168.1.17:8000 > devicemgmt && GetDeviceInformation && store device_info
347
+
348
+
# Complex workflow
349
+
192.168.1.17:8000 > media && GetProfiles && store profiles && up && imaging && GetImagingSettings VideoSourceToken=$profiles[0].VideoSourceConfiguration.SourceToken
350
+
```
351
+
352
+
This feature is particularly useful for:
353
+
- Quick operations without entering service mode
354
+
- Scripting repetitive tasks
355
+
- Testing workflows
356
+
- Automating multi-step procedures
357
+
333
358
**2. Device Discovery (WS-Discovery)**
334
359
335
360
The CLI includes automatic ONVIF device discovery using the WS-Discovery protocol. This feature allows you to find all ONVIF-compliant devices on your local network without knowing their IP addresses beforehand.
Health check interval in seconds for interactive mode (default: 10)
206
208
--version, -v Show ONVIF CLI version and exit
207
209
208
210
Examples:
@@ -233,7 +235,7 @@ Examples:
233
235
234
236
235
237
```bash
236
-
ONVIF Interactive Shell Commands - v0.1.4
238
+
ONVIF Interactive Shell Commands - v0.1.5
237
239
https://github.com/nirsimetri/onvif-python
238
240
239
241
Basic Commands:
@@ -245,6 +247,7 @@ Basic Commands:
245
247
246
248
Navigation Commands:
247
249
<service> - Enter service mode (e.g., devicemgmt, media)
250
+
<service><argument> - Enter service mode with argument (e.g. pullpoint SubscriptionRef=<value>)
248
251
cd<service> - Enter service mode (alias)
249
252
ls - List commands/services/methods in grid format
250
253
up - Exit current service mode (go up one level)
@@ -264,6 +267,7 @@ Method Execution:
264
267
Data Management:
265
268
store <name> - Store last result with a name
266
269
show <name> - Show stored data
270
+
show <name>[0] - Show element at index (for lists)
267
271
show <name>.attribute - Show specific attribute
268
272
show - List all stored data
269
273
rm <name> - Remove stored data by name
@@ -331,6 +335,27 @@ Jika Anda tidak menyertakan nama pengguna atau kata sandi, Anda akan diminta unt
331
335
> [!IMPORTANT]
332
336
> Anda dapat melihat semua perintah lainnya yang tersedia di shell interaktif dengan mencobanya langsung. Shell interaktif menjalankan pemeriksaan kesehatan latar belakang secara berkala untuk mendeteksi kehilangan koneksi. Shell ini menggunakan ping TCP diam-diam agar tidak mengganggu pekerjaan Anda dan akan otomatis keluar jika perangkat tidak dapat dijangkau, mirip dengan sesi SSH.
333
337
338
+
**Perangkaian Perintah dengan `&&`:**
339
+
340
+
CLI mendukung perangkaian beberapa perintah dalam satu baris menggunakan operator `&&`, memungkinkan Anda mengeksekusi operasi berurutan secara efisien:
341
+
342
+
```bash
343
+
# Masuk ke layanan dan eksekusi metode dalam satu baris
344
+
192.168.1.17:8000 > media && GetProfiles && store profiles
345
+
346
+
# Perangkaian beberapa pemanggilan metode
347
+
192.168.1.17:8000 > devicemgmt && GetDeviceInformation && store device_info
348
+
349
+
# Alur kerja kompleks
350
+
192.168.1.17:8000 > media && GetProfiles && store profiles && up && imaging && GetImagingSettings VideoSourceToken=$profiles[0].VideoSourceConfiguration.SourceToken
351
+
```
352
+
353
+
Fitur ini sangat berguna untuk:
354
+
- Operasi cepat tanpa memasuki mode layanan
355
+
- Skrip tugas berulang
356
+
- Menguji alur kerja
357
+
- Mengotomasi prosedur multi-langkah
358
+
334
359
**2. Penemuan Perangkat (WS-Discovery)**
335
360
336
361
CLI menyertakan fitur penemuan perangkat ONVIF otomatis menggunakan protokol WS-Discovery. Fitur ini memungkinkan Anda menemukan semua perangkat yang sesuai dengan ONVIF di jaringan lokal Anda tanpa perlu mengetahui alamat IP mereka terlebih dahulu.
0 commit comments