vsxexport.sh
Imagine a Life Cycle Management project where you have to upgrade a VSX gateway with new hardware. Imagine a crashed VSX gateway you need to reinstall whether it is on the same or RMA hardware. Imagine you are upgrading a VSX gateway and need to log a baseline with current BGP peering and all routes of all Virtual Systems. Are you in control and do you know which configuration files were added or modified in VS0 or all other Virtual Systems so you can easily add them back?
vsxexport.sh is my attempt to make it all easier. This script will do the following for you:
- Detect CoreXL status
- Detect Hyper-Threading status
- Log current settings of SecureXL affinity
- Log current settings of CoreXL affinity
- Log current settings of Multi-Queue
- Log status of Dynamic Balancing
- Log status of SecureXL Fast Accelerator
- VS0: Export Clish configuration
- VS0: Log information about interfaces
- VS0: Search and backup configuration files (see sk101515):
- fwkern.conf
- vpnkern.conf
- simkern.conf
- sim_aff.conf
- fwaffinity.conf (is it customized or default version?)
- fwauthd.conf
- local.arp
- discntd.if
- cpha_bond_ls_config.conf (is it customized or default version?)
- resctr
- vsaffinity_exception.conf (is it customized or default version?)
- qos_policy.C
- trac_client_1.ttm (is it customized or default version?)
- ipassignment.conf
- Other VS’s: Export Clish configuration (only settings that have to be set with Clish instead of SmartConsole)
- set router-id
- set as
- set bgp
- set routemap
- set igmp
- set pim
- set ospf
- set prefix-list
- set prefix-tree
- set bootp
- set route-redistribution
- add arp
- set max-path-splits
- set inbound-route-filter
- set pbr
- Other VS’s: Log BGP peers
- Other VS’s: Log OSPF neighbors
- Other VS’s: Log current routes
- Other VS’s: Log route summary
- Other VS’s: Search and backup configuration files
- local.arp
- cpha_bond_ls_config.conf
- Other VS’s: Log status of SecureXL Fast Accelerator
- Other VS’s: Log information about interfaces
- Create the file VS-all.config with all Clish parameters of all other VS’s which can be used to restore those parameters instantly on all VS’s after reconfiguring a VSX gateway.
- Create a tarball of all files which you can store offline (useful for restore)
- Self-update when new version is available in GitHub repository
It’s available in the CheckMates Toolbox and my GitHub repository.