Applications
Digidevice module
IX20 User Guide
449
7. Use the
get()
method to verify the change:
>>> print(cfg.get("system.name"))
New-Name
>>>
Help for using Python to read and modify device configuration
Get help for reading and modifying the device configuration by accessing help for
digidevice.config
:
1. Log into the IX20 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:
# python
Python 3.6.10 (default, Jan 31 2020, 08:45:19)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
3. Import the
config
submodule:
>>> from digidevice import config
>>>
4. Use the help command with
config
:
>>> help(config)
Help on module acl.config in acl:
NAME
acl.config - Python interface to ACL configuration (libconfig).
...
5. Use
Ctrl-D
to exit the Python session. You can also exit the session using
exit()
or
quit()
.
Use Python to respond to Digi Remote Manager SCI requests
The
device_request
Python module allows you to interact with Digi Remote Manager by using
Remote Manager's Server Command Interface (SCI), a web service that allows users to access
information and perform commands that relate to their devices.
Use Remote Manager's SCI interface to create SCI requests that are sent to your IX20 device, and use
the
device_request
module to send responses to those requests to Remote Manager.
See the
Digi Remote Manager Programmers Guide
for more information on SCI.
Task one: Use the device_request module on your IX20 device to create a response
1. Log into the IX20 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.
Содержание IX20
Страница 1: ...IX20 User Guide ...
Страница 598: ...Monitoring This chapter contains the following topics intelliFlow 599 Configure NetFlow Probe 606 IX20 User Guide 598 ...
Страница 613: ...Central management Configure Digi Remote Manager IX20 User Guide 613 ...
Страница 640: ...Diagnostics View system event logs IX20 User Guide 640 5 Click to download the system log ...
Страница 707: ...Command line interface Command line reference IX20 User Guide 707 more path The file to view Syntax STRING ...
Страница 710: ...Command line interface Command line reference IX20 User Guide 710 reboot Reboot the system Parameters None ...