Forum Discussion
Stewart
Altostratus
Jun 23, 2014How to I list the VSs that has VLAN enabled on it?
Hello,
When a new VLAN is created on our LTMs in one of our environments, they should be enabled on a couple of Performance Layer 4 virtual servers. As part of the VS creation checks I'd like t...
Jun 24, 2014
How about a shell script?
Against better judgement I wrote a very simple one for you (sensitive people should close their eyes):
/bin/bash
virtualcount=$(tmsh show running-config ltm virtual /Partition/*myname* vlans | grep virtual | wc -l)
vlancount=$(tmsh show running-config ltm virtual /Partition/*myname* vlans | grep "External" | wc -l)
if [ $virtualcount == $vlancount ]
then
echo "All have vlans"
else
echo "Missing vlans"
fi
/Patrik
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