This topic describes how to install and start TPVM using the deploy config command and persist other TPVM configurations in the SLX-OS running-config. These persisted configurations are useful during the TPVM upgrade operation. Also, for SLX switch RMA use case, TPVM can be deployed with previous configurations, as per the SLX RMA workflow of restoring SLX configurations.
Pre-requisite for deploy:
Note
Only one file can be stored in the above mentioned location.Example 1) This example describes a simple deploy action with TPVM built-in defaults.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # deploy SLX (config-tpvm-TPVM) # end
Note
Example 2) This example describes deploy TPVM with install time configuration. The TPVM config password, interface management can be set only before 'starting' or 'deploy' of the TPVM.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # deploy
Example 3) This example describes the deploy TPVM and later 'updates' and 'any install time' configurations.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # deploy SLX (config-tpvm-TPVM) # end SLX # tpvm stop SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpasswordagain SLX (config-tpvm-TPVM) # interface management ip 10.25.24.221/24 SLX (config-tpvm-TPVM) # end SLX # tpvm start
Example 4) This example describes the config TPVM with any install time or runtime configuration without deploy. The configuration here is just persisted in the SLX running-config database. The Runtime configuration is applied anytime before or after deploy. In the later case, the TPVM will be in the running status and configuration is applied to the TPVM instance first. Only upon success, the configuration will be persisted at the SLX-OS database.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # auto-boot SLX (config-tpvm-TPVM) # hostname newhostname SLX (config-tpvm-TPVM) # timezone Europe/Stockholm SLX (config-tpvm-TPVM) # end
Later TPVM may be installed and started with the above configuration by config deploy.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # deploy
Example 5) This example describes the deploy TPVM with some configuration and later update any runtime configuration.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # auto-boot SLX (config-tpvm-TPVM) # hostname newhostname SLX (config-tpvm-TPVM) # timezone Europe/Stockholm SLX (config-tpvm-TPVM) # deploy SLX (config-tpvm-TPVM) # end SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # hostname oldhostname SLX (config-tpvm-TPVM) # no timezone
Example 6) This example describes the set password configuration using the encrypted string. Here the newpassword encrypted string is used.
SLX (config-tpvm-TPVM) # password $6$M@T]Ip^<$.kavoRt.uINQoghhcpDYd4elQg3BWWuJDdVSmGtZcM/Ry6IRUYKkKtJ80PgTXKFEVnzWx4oTSPvHPRtvqXtGf/
Example 7) This example describes the stop and uninstall TPVM configurations and also by using the no deploy but retain configuration.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # no deploy SLX (config-tpvm-TPVM) # end
Example 8) This example describes the stop, uninstall, no deploy and purge all TPVM configurations.
SLX # config terminal SLX (config)# no tpvm TPVM SLX (config) # end
Example 9) This example describes how to reset any individual configuration, by using the no prefix command, and certain configurations may have parameters too.
SLX (config-tpvm-TPVM) # no hostname