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?
hoolio
Cirrostratus
Apr 29, 2013tmsh -q show sys performance
that will run the command with paging disabled. You could write the output to a temp file and then sftp the file to a remote host.
I was hoping you could just pipe that to sftp, but it doesn't look like sftp supports reading from a pipe:
http://serverfault.com/questions/400203/how-to-pipe-data-to-sftp-connection
Aaron
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