Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
SSH to a second device within Python script in NetMRI
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-26-2020 01:49 AM
Hi,
Not sure if this has been asked before but is there a way of connecting to a second device using SSH using Python within the same script.
So we use "easy" to connect to the main device, but we need to potentially configure a neighbour device in the same job. For that we would need to identify the DeviceID, probably through a CDP neighbour call, but not sure how to connect to that device (in Python)
I did find an old Perl script from Sif, that might do the trick but we need to use Python at this stage.
(Re: Perl API - Passing script variables from one script to another)
Thanks
Russ
Labels: