Forum Discussion
Macaron
Nimbostratus
Jun 20, 2021List Virtual servers that are offline for past 90 days
Hi Guys, I am going through a clean up process for VIPs that are currently down for 90 days. Is there a way to generate a list from tmsh?
Carl_Brothers
Employee
Feb 05, 2025Alternatively, the stats are collected since the device was last booted or manually cleared if my memory is correct. With that, we can look at the uptime to assume how long the system has been collecting statistics that are returned.
#returns Days and hours that the system has been available for traffic since last reboot
tmsh show sys failover
#Returns 5 columns, Virtual Server Name, Availability, Status, Destination, Clientside Bits In, Clientside Bits Out sorted by the Clientside Bits In
tmsh -q -c 'cd /; show sys failover; show ltm virtual recursive' | awk '/Ltm::Virtual/ {printf $3" "} /Destination/ {printf $3 " "} /Availability/ {printf $3 " "} /State/ {printf $3" "} /Bits In/ {printf $3 " "} /Bits Out/ {printf $3 "\n"}' | column -t |sort -k4
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects