Forum Discussion
keithhubb
Employee
Aug 15, 2014grepping output of 'b virtual show' version 9.x
Hi, I'm not very good at grep. So I was hoping that someone could help me with a command to grep 'b virtual show' (on version 9.4.8) and output only the VIP name, IP, service port , pool name, pool m...
Shun_Yan_118296
Aug 16, 2014Historic F5 Account
Not in a good format, paste the command again.
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'
Here is the output
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
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