Forum Discussion
Raja_389494
Nimbostratus
Apr 29, 2019show running-config - output to file
Hi I am trying to get the output of "show running-config all-properties" from F5 device in a file by connecting from a jumpbox through SSH. But as it requires confirm y/n it is failing.
Through putty I'm able to run the below command
show running-config all-properties
and confirming 'y' as the output is big.
I tried like
echo y | show running-config all-properties
in bash but got show
command not found.
Please suggest how it can be done.
- JG
Cumulonimbus
tmsh -q show running-config all-properties
From within tmsh:
run /util bash -c "tmsh -q show running-config all-properties"
.
To save output to a file:
run /util bash -c "tmsh -q show running-config all-properties > /var/tmp/running-config_output.txt"
.
Option 1)
modify cli preference display-threshold 0
modify cli preference pager disabled
show running-config all-properties
Option 2)
bash -c "tmsh -q show running-config all-properties"
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