Forum Discussion
How to Compare HA LTM VLAN & Tagging Configs
My organization has multiple LTM HA pairs.
Many LTMs have several VLANs configured.
I'm in search of a way to periodically compare the VLAN & tagging configurations of LTM HA pair devices to ensure they're in sync.
Thus far the only way I've found to do this is to compare the devices' bigip_base.conf files using a file comparison tool like kdiff.
The problem with this method is that the device bigip_base.conf file formats don't exactly match so a side-by-side comparison isn't effective. Additionally this appears to be an extremely time-consuming approach.
Because of the number of LTM HA pairs and number of VLAN configurations I need a more efficient way to compare the VLAN & tagging configs between LTM HA pair devices.
Any suggestions/recommendations will be appreciated.
2 Replies
- R_Marc
Nimbostratus
iControl would be the easiest way to do this, in my opinion.
curl -sk -u admin:$PASS -H "Content-Type: application/json" -X GET https://bip1/mgmt/tm/net/vlanThen just parse the results. Tag is included in that. The above example assumes the iControlRest, but it should be available in the older iControl as well.
- Roderick_Graham
Nimbostratus
Thanks R Marc. I'll give that a try.
Shortly after my initial post I found an alternate way to go about capturing the VLAN & tag information and performing a comparison. Executing a tmsh list /net vlan, copying/exporting the output to text files (which creates files with matching the formats) and comparing the two files with kdiff worked.
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