Forum Discussion
alan_2982
Nimbostratus
Jan 30, 2009bigpip virtual show
Hi,
I just upgraded from v4 to v9 and I might be seeing an artifact of that. It's also pretty likely that I am forgetting how to produce the output I want.
I am documenting virtuals, pools, and rules for an auditor. I gave them a report last time they asked that looked like this:
VIRTUAL 192.168.100.5 UNIT 1
+---+--> SERVICE 80 ENABLED
+---+--> RULE www
+---+--> POOL blackhole
| +--> MEMBER 192.168.0.58:80 UP
+---+--> POOL mf-virtual
| +--> MEMBER 192.168.0.89:80 UP
| +--> MEMBER 192.168.0.90:80 UP
now, the closest thing I can find is produced by bigpipe virtual show like this:
VIRTUAL 192.168.100.5 UNIT 1
| ARP: enabled
| (cur, max, limit, tot) = (0, 1, 0, 5)
| (pkts,bits) in = (15, 25768), out = (10, 5120)
+-> SERVER www.foo.com-80 SERVICE http
| PVA acceleration none
| (cur, max, limit, tot) = (0, 1, 0, 5)
| (pkts,bits) in = (15, 25768), out = (10, 5120)
| requests (total) = 0
+-> RULE www
+-> HTTP_REQUEST 5 total 5 fail 0 abort
Any help in remembering how to produce the earlier output is much appreciated.
Thanks,
Alan
3 Replies
- JRahm
Admin
Hmm, grep is acting weird when pipe to from bigpipe...anyway, this is more inline with want you want. I'm sure it can be condensed.
b virtual show all | grep -v \( | grep -v \| | grep -v total - hoolio
Cirrostratus
You can use egrep to search for multiple strings OR'd together to remove lines containing the following characters/string: ( | total
b virtual show all | egrep -v '(\(|\||total)'
Or you could look for lines containing VIPs, rules and pools:
b virtual show all | egrep '(VIRTUAL|RULE|POOL)'
Aaron - JRahm
Admin
yeah, that's what I tried to do with grep, but got errors. Forgot about egrep...how quickly the sysadm skills fade. Thanks!
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