Forum Discussion
Network map to excel
Hi Anju,
I think has you covered - Export Virtual Server Configuration in CSV - tmsh cli script
KR
Daniel
- AnjuFeb 06, 2021
Altostratus
Hi Daniel,
Thank you for your response. I did run the script, but it dint work out for me. Please take a look at the below output i got.-
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # tmsh list cli script virtual-details
01020036:3: The requested shell script (/Common/virtual-details) was not found.
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # cli script virtual-details {
bash: cli: command not found
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # proc script::run {} {
bash: proc: command not found
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # puts "Virtual Server,Destination,Pool-Name,Profiles,Rules"
bash: puts: command not found
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # foreach { obj } [tmsh::get_config ltm virtual all-properties] {
bash: foreach: command not found
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # set profiles [tmsh::get_field_value $obj "profiles"]
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # set remprof [regsub -all {\n} [regsub -all " context" [join $profiles "\n"] "context"] " "]
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # set profilelist [regsub -all "profiles " $remprof ""]
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # puts "[tmsh::get_name $obj],[tmsh::get_field_value $obj "destination"],[tmsh::get_field_value $obj "pool"],$profilelist,[tmsh::get_field_value $obj "rules"]"
bash: puts: command not found
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # }
bash: syntax error near unexpected token `}'
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # }
bash: syntax error near unexpected token `}'
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # total-signing-status not-all-signed
bash: total-signing-status: command not found
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ # }
bash: syntax error near unexpected token `}'
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ #
[XXX@UNIT-01:Peer Time Out of Sync:Changes Pending] ~ #
Looking for an output from a particular partition in bash. Not sure, how can I achieve this. Let me know if you can help on this. Thanks.
- AnjuFeb 06, 2021
Altostratus
Tried the one in the article - https://support.f5.com/csp/article/K44010967, its giving below output (used 'grep' instead of 'awk' since grep is only supported on these units) its giving the blank csv file. extracted from winscp, nothing was found.
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