06-02-2021 01:35 AM
Hi,
I trying to make a workflow in XMC. One part of the workflow includes making a ssh to a linux box and run some commands.
I try to import paramiko but I get a treceback saying that the modulo does not exist.
How can I do a ssh to a linux box from a XMC workflow?
Regards,
Jose Chaves
Solved! Go to Solution.
06-02-2021 07:03 AM
Hello Jose,
the easiest way is to add the linux box to XMC like a network device. Create a SNMP profile and a CLI profile.
If your box do not use SNMP (what I assume) set the “Poll Type” to “Not polled” in the device configuration. With these setting you will not receive SNMP alarms.
=> After that you should be able to access your linux box via “right mouse->terminal”.
Now you can access your device like a switch via scripting or workflows.
06-04-2021 02:29 PM
Hi,
It worked perfectly.
Thanks
06-02-2021 07:03 AM
Hello Jose,
the easiest way is to add the linux box to XMC like a network device. Create a SNMP profile and a CLI profile.
If your box do not use SNMP (what I assume) set the “Poll Type” to “Not polled” in the device configuration. With these setting you will not receive SNMP alarms.
=> After that you should be able to access your linux box via “right mouse->terminal”.
Now you can access your device like a switch via scripting or workflows.