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?
ogozar_275571
Nimbostratus
Sep 11, 2017Hello,
Hello, when I generate an automatic backup it shows me this error when I execute the script:
Error, invalid characters in UCS file name. The dash, period, forward-slash, plus sign, and underscore are the only special characters allowed.
What is the problem?
Thank's
ogozar_275571
Nimbostratus
Sep 12, 2017!/bin/bash
DATE=
date "+_%d_%m_%y"
echo getHostName=$HOSTNAME
tmsh save sys ucs $HOSTNAME$DATE
cd /var/local/ucs/
ftp -n 192.168.1.2 <
The test was run in version 12.1.2 build 0.0.249 and there were no problems. But the tests were performed in a cluster with version 12.0.0 bluid 0.0.606 and showed the error mentioned.
Simplify the script to only: "tmsh save sys ucs backup_test" and showed the same error.
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