Forum Discussion
dvalve_376192
Nimbostratus
Nov 05, 2018python show running-config
I am trying to get a Python script to output the running config of my F5, to show everything from authentication to pools to ntp settings. With TMSH/SSH it's so easy doing 'show running-config' and t...
- Nov 20, 2018
I was able to get the running config to show with Python, please see the code below:
from f5.bigip import ManagementRoot mgmt = ManagementRoot("your_f5_ip", 'username', 'password') x = mgmt.tm.util.bash.exec_cmd('run', utilCmdArgs='-c "tmsh show running-config"') print(x.commandResult)
omkar1
Nimbostratus
Apr 25, 2020hey mike did you ever get a chance to modify data in a cleaner fashion.
I am trying to do the same thing as you are
omkar1
Nimbostratus
Apr 28, 2020i am trying to get the data in json or csv format
i have stumbled upon rest api but that i don't have access to get the data using restapi
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects