You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my script user provides, username/password/hostname and command line, my script determines which platform is it and then runs those show commands on that router.
Now i want to format return of those show commands, normally i am using netmiko to get the show commands.
my requirement is, i want to call this module directly inside my script and pass username/password/hostname/show command and want a return as json object.
can i call this module directly inside my script and get result as an object ? if i have to use ansible can i create playbook/inventory file dynamically and get the result.
also the script provided doesnt work on latest ansible 2.1. as ansible runner is not supported.
The text was updated successfully, but these errors were encountered:
Hello,
I want to run this module inside another script.
In my script user provides, username/password/hostname and command line, my script determines which platform is it and then runs those show commands on that router.
Now i want to format return of those show commands, normally i am using netmiko to get the show commands.
my requirement is, i want to call this module directly inside my script and pass username/password/hostname/show command and want a return as json object.
can i call this module directly inside my script and get result as an object ? if i have to use ansible can i create playbook/inventory file dynamically and get the result.
also the script provided doesnt work on latest ansible 2.1. as ansible runner is not supported.
The text was updated successfully, but these errors were encountered: