List Virtual Servers with state
Sounds simple but find no simple answer.
Run a script against and F5 to list the VS and state, up/down/available/disabled,... ?
Looked at the Rest API and F5-SDK. Even ansible but that has such poor output, too messy.
Maybe the answer is diving into pools and stats. If so, amazed such basic information is not easier to obtain.
Idea to to log the states, with datetime stamp, then if still 'down' after 1 month disable, then if no complaints, strip the config. Have far too many dead VS entries. Have many F5 and some contain hundreds of VS.
Maybe I missed the answer ?
Outline of script ...
node = ManagementRoot('node1','admin','password')
virts = node.tm.ltm.virtuals.get_collection()
for virt in virts:
baseDict = virt.raw
print(baseDict['name'], baseDict.get('disable','False'), baseDict['status'])