Forum Discussion
report for all SSL
- Oct 20, 2017
How would I put this to an output text file
!/bin/bashPARTITIONS=( $(tmsh list auth partition one-line | sed -e 's/ //g' | grep -oP '(?<=partition)[^{]+' -) )
for partition in ${PARTITIONS[*]}; do tmsh -q -c "cd /$partition; list sys file ssl-cert" done
this is the command I'm using tmsh -c "cd /; list sys file ssl-cert // one-line" /SSLreports/newssl.txt
it doesn't work getting an error
tmsh An option may be specified once. A command may follow the options, in which case the shell exits after executing the command.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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