Forum Discussion
CLI command to get the whole configuration of specific VIP
if you can specify what configuration objects you want to display such as virtual server and pool (since showing everything might be too messy) , somebody here might be able to come up with script like the following:
e.g.
// virtual server + pool
[root@ve13a:Active:In Sync] config for v in `tmsh list ltm virtual one-line |awk '{print $3}'`; do p=$(tmsh list ltm virtual $v one-line |awk '{for(i=0;i<=NF;i++)if($i=="pool"){print $(i+1)}}'); p1=$(tmsh list ltm pool $p); p2=${p1/ltm pool/}; v1=$(tmsh list ltm virtual $v); echo "${v1/$p/$p2}"; done
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
200.200.200.111:80 {
address 200.200.200.111
}
}
}
profiles {
http { }
tcp { }
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
vs-index 11
}
- jaikumar_f5Jan 05, 2018
Noctilucent
Your the best :)
- Srini_87152Jan 05, 2018
Cirrostratus
you guys rock!! :)
- AnjuJun 15, 2018
Altostratus
I am looking for a command that gives the detailed configuration for a single or a specific VIP or pool or profile. any input will be greatly appreciated. The above mentioned show commands are not working for me.
THANKS IN ADVANCE!
- AnoopJun 18, 2018
Nimbostratus
Hello Pihu,
Use below command from tmsh to view detailed configuration of a virtual server
eg : If your virtual server name is test_VS then,
For pool and profile go to ltm module in tmsh by typing ltm from tmsh
list pool pool name all-properties
list profile parent profile profile name all-properties
Parent profiles are tcp , http , fastL4 , ClientSSL , ServerSSL etc.
Hope this helps.
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