Forum Discussion
grepping output of 'b virtual show' version 9.x
VIRTUAL ADDRESS 2.2.2.1 UNIT 1 | ARP enable | (cur, max, limit, tot) = (0, 0, 0, 0) | (pkts,bits) in = (0, 0), out = (0, 0) +-> VIRTUAL test SERVICE http | PVA acceleration none | (cur, max, limit, tot) = (0, 0, 0, 0) | (pkts,bits) in = (0, 0), out = (0, 0) | requests (total) = 0 +-> POOL test LB METHOD round robin MIN/CUR ACTIVE MEMBERS 0/0 | (cur, max, limit, tot) = (0, 0, 0, 0) | (pkts,bits) in = (0, 0), out = (0, 0) +-> POOL MEMBER test/1.1.1.1:http inactive,down | | session disabled priority 1 ratio 1 | | (cur, max, limit, tot) = (0, 0, 0, 0) | | (pkts,bits) in = (0, 0), out = (0, 0) | | requests (total) = 0 +-> POOL MEMBER test/1.1.1.2:http inactive,down | session enabled priority 1 ratio 1 | (cur, max, limit, tot) = (0, 0, 0, 0) | (pkts,bits) in = (0, 0), out = (0, 0) | requests (total) = 0
I used the below command, which can filter out the info you request. I think there is some other simple way, but I don't know how to. lol.
b virtual show | egrep "VIRTUAL>|POOL" | sed -r 's/^[[:space:]]{0,}...[[:space:]]//g' | cut -d " " -f1-6 | sed 's/UNIT$//g' | sed 's/LB.//g' | sed -r 's/[[:alpha:]]{0,2}active.//g' VIRTUAL ADDRESS 2.2.2.1
VIRTUAL test SERVICE http POOL test
POOL MEMBER test/1.1.1.1:http
POOL MEMBER test/1.1.1.2:http
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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