A__N_5261
Sep 07, 2018Nimbostratus
Retrieve virtual Server config using f5-SDK
Hi,
I am trying to retrieve virtual server config using sdk python module. Like (tmsh list /ltm virtual /Common/test-2).
I was able to do with below if keep static value (partition/VIP name).
vip_config_backup=b.tm.util.bash.exec_cmd("run",utilCmdArgs='-c "tmsh list /ltm virtual /Common/test-2"')
But i want to pass the partition and VIP name dynamically ? is there another way to achieve this or better way. I almost complete the script but stuck here. Any help would be appreciated.
Vip =test-2
partition=Common
vip_config_backup=b.tm.util.bash.exec_cmd("run",utilCmdArgs='-c "tmsh list /ltm virtual /Vip/partition"')
Thanks in Advance
AN