Non-interactive way of declaring devices
|
|
---|---|
Hi, is it possible to declare a device via the command line? I would like to get the testing of my device servers automated. Declaring the device in jive is currently the step I have to do manually. Note: Using SQL on the database is only a last resort for me and not really nice. |
|
|
---|---|
Hi Thomas, A python script could be a good solution. The database device server exposes everything you need to implement the tool you need. I'm even sure that a pythonista from the community will attached a piece of code to this topic for you. N. |
|
|
---|---|
Hi, I think that tango_admin should be enough. `–add-server` option is also fine for adding devices to a device server already declared in the DB.
Cheers, Zibi |
|
|
---|---|
PyTango provide all the methods to do so from the python shell. The fandango api provides a single command to create devices and assign them properties
You can also call them from shell:
To start it on any host managed by Starter:
|
|
|
---|---|
Holà Pythonistas! I now know what tango_admin is made for N. |
|
|
---|---|
Thanks all! I knew there is something already available. I'll try tango_admin and report back if there are any issues. |