There will be situations when you just need to replicate sections (or all) of your configuration from one BIGIP device, to another – only with slight differences. Here is an example which actually contributed to the idea of this blog:
When configuring HA, one of the requirements is to add all devices into a Trust Domain; this is done by creating a full connectivity mesh between all devices in a device group. Therefore, you need a way for those devices to communicate in the first place – and they do so, via IP.
I know of four ways to do this:
- Using the Web GUI – that’s going to take a lot of clicks
- Using UCS/Archive file – this could be modified, uploaded and restored to the target device. You could do this via the GUI or via the CLI
- Using the CLI – copy&paste on the TMOS Shell terminal – this implies the use of the from-terminal keyword: load sys config from-terminal [merge]
- Using the CLI – from custom configuration file at the TMOS Shell
In this blog I’ll show you the 4th method.
Step by Step …
- Connect via SSH to the device you will be sourcing the configuration from
- Enter the TMOS shell – tmsh <enter>
- List the configuration you need
- Copy it to clipboard
- Connect via SSH to the target device
- Open VI editor at the Linux shell; paste the configuration and save the file
- Still on the target device, enter TMOS shell
- Merge the new configuration
Here is a quick video:
- Source: f5bigip02.home.cm
- Destination: f5bigip02.home.cm
- Adding a new VLAN vlan-brown
Rafael A. Couto Cabral • LinkedIn Profile
Cisco | F5 | VMware Certified • PRINCE2 Practitioner
Originally posted 2017-10-07 09:50:00.