Applications
Python modules
IX10 User Guide
546
3. Import the
device_request
submodule:
>>> from digidevice import device_request
>>>
4. Use the help command with
device_request
:
>>> help(device_request)
Help on module digidevice.device_request in digidevice:
NAME
digidevice.device_request - APIs for registering device request handlers
...
You can also use the help command with available
device_request
functions:
n
Use the help command with
device_request.register
:
>>> help(device_request.register)
Help on function register in module digidevice.device_request:
register(target:str, response_callback:Callable[[str, str], str],
status_callback:Callable[[int, str], NoneType]=None, xml_
encoding:str='UTF-8')
...
n
Use the help command with
device_request.unregister
:
>>> help(device_request.unregister)
Help on function unregister in module digidevice.device_request:
unregister(target:str) -> bool
...
5. Use
Ctrl-D
to exit the Python session. You can also exit the session using
exit()
or
quit()
.
Use digidevice runtime to access the runtime database
Use the
runt
submodule to access and modify the device runtime database.
Read from the runtime database
Use the
keys()
and
get()
methods to read the device configuration:
1. Select a device in Remote Manager that is configured to allow shell access to the admin user,
and click
Actions
>
Open Console
. Alternatively, log into the IX10 local command line as a user
with shell access.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
shell
to access the device shell.
2. At the shell prompt, use the
python
command with no parameters to enter an interactive
Python session:
Содержание IX10
Страница 1: ...IX10 User Guide User Guide Firmware version 22 5 ...
Страница 444: ...Services Simple Network Management Protocol SNMP IX10 User Guide 444 The SNMP page is displayed 4 Click Download ...
Страница 740: ...Monitoring This chapter contains the following topics intelliFlow 741 Configure NetFlow Probe 748 IX10 User Guide 740 ...
Страница 823: ...Command line interface Execute a command from the web interface IX10 User Guide 823 The Admin CLI prompt appears ...
Страница 849: ...Command line interface Command line reference IX10 User Guide 849 Parameters None ...
Страница 858: ...Command line interface Command line reference IX10 User Guide 858 reboot Reboot the system Parameters None ...