Forum Discussion

Alex_Bunting_29's avatar
Alex_Bunting_29
Icon for Nimbostratus rankNimbostratus
Mar 19, 2018

F5-LTM Session tokens and disconnect

I am currently attempting to write a script that utilizes the F5-LTM module for bleeding purposes. There are two issues that I've been running into that I could use some assistance on.

 

First off, is there a way to disconnect an F5 session? I connect to one of our F5 legs using New-F5Session, but I then run a test to confirm if it's the active or standby leg. If it's standby, I need to disconnect that session and connect to the active one. But I have not found a way to disconnect the session without closing out the script.

 

Another thing I've noticed is that when the auth token expires, you cannot start a new session within the script. Is there a way to clear the auth token so a new one can be procured without having to restart the script?

 

No RepliesBe the first to reply