Forum Discussion

Sree_Harsha_S's avatar
Sree_Harsha_S
Icon for Nimbostratus rankNimbostratus
Feb 25, 2020

Virtual Server and Persist Profile Mapping in F5 LTM

Team,

 

I'm planning to write a code in python to establish a relationship between the Virtual Server and Persist Profile. Basically i need to know which persistence profile maps to which virtual server ? If anyone has done this before or does anyone have some source code that i can test with would help me.

 

Thanks,

Harsha

2 Replies

  • I would suggest using REST API Guide and Curl as a good starting point. I would have thought that simply sending a GET request to retrieve the virtual server config, should show you the associated profiles as well. Python Requests library is very good and you can build your own scripts that way. Use Curl to get familiar with the API ... That's the way I did last time I had a project for this. I believe there are also code examples on DevCentral. I seem to remember some old articles giving examples..

  • Thanks  for your feedback , i tried using awk command & it was returning me the Virtual Server & the Persist profile that it is mapped .

    Definitely i'll try out REST API & keep you posted !