See below for an example: nxos9kv# python Python 2.7.11 (default, Feb 26 2018, 03:34:16) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> import cli >>> date = time.strftime('%Y%m%d') >>> file = ("fusion-config_') + date >>> print(file) fusion-config_20210329 >>> print('copy running-config ftp://10.183.249.182/FusionSW/' + file) copy running-config ftp://10.183.249.182/FusionSW/fusion-config_20210329