Forum Discussion
ryan_126547
Nimbostratus
Nov 06, 2013Gather a list of virtuals and or pools that are offline state and provide duration
Hi,
I am looking for a way in tmsh to provide a list of offline VIPs/pools. In addition to that, I want to know how long they were offline. I know I can sift through the LTM logs but that will t...
StephanManthey
Nacreous
Aug 05, 2021Sorry for beeing late to this thread.
Here is a one-liner which lists the availability of all virtuals recursively:
tmsh -q -c 'cd /;show ltm virtual recursive' | grep -iE '(ltm::virtual|availability)' | sed ':a;N;s/\n/ /' | sed -r 's/ltm::virtual server *:? *//I; s/ *availability *:? */ /I'
It starts with printing all virtual servers statistics and filters all lines containing the virtual server names and availabiltity states.
The first sed statement in the pipeline joins the lines of the virtual server and its availability state.
The second sed statement in pipeline does some housekeeping.
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