Anju
Feb 05, 2021Altostratus
Network map to excel
Hi Folks, How can we get network map info - VIPs, Pool, nodes etc. in a spreadsheet? I need to make a spreadsheet for complete configuration of the device, any quicker way to do it?
Hi Anju,
I think has you covered - Export Virtual Server Configuration in CSV - tmsh cli script
KR
Daniel
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.