Forum Discussion
Dave_Mehlberg
Cirrus
Apr 29, 2013create script in bash that has tmos commands
How do I create a bash script that will run tmos commands and output the results to a file that can be sent to another server via sftp?
Kevin_Stewart
Employee
Apr 29, 2013This is actually pretty straight forward. Take a look at the example BASH script monitor at /config/monitors/sample_monitor. This is an example of taking arguments from the GUI monitor (the node and IP), performing some action, and then reporting back ("up" or nothing). If you don't care about monitoring server nodes in your script, then you can just create a BASH script to do what you want it do. You'll use TMSH to get/set whatever you need from the running configuration and an SFTP client is on the box. If you create your script as a monitor and assign it to a "dummy" pool, the BIG-IP will do the job of scheduling it.
If you can be more specific with your request we can potentially help you write that script.
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