Submit a ticketCall us

Training Class Getting Started with SolarWinds Backup - February 28

This course offers customers an introduction to SolarWinds Backup, focusing on configuring the backup technology, taking backups, data restoration and data security. It is a great primer and will get you up to speed quickly on SolarWinds Backup.
Register for class.

Home > Success Center > Network Configuration Manager (NCM) > Execute scripts in NCM with the same command and not overwrite the file

Execute scripts in NCM with the same command and not overwrite the file

Table of contents

Updated March 22, 2017


When using NCM or any other means of issuing commands on a device that will create a file, locally or to an external file storage, if the name of the file is repetitive and is sent to the same location, it will either overwrite the file or fail to save. This  article shows a quick example of how to use NCM and common variables to save with a unique name for each device each time.


All NCM versions 


For example, a script is used to back up the binary UCS file to the SCP server.

This is executed on several F5s at the same time to ensure the files would not have the same name.

Note: This is only an example and may not be accurate.

tmsh save /sys /var/local/NCM.ucs

scp /var/local/NCM.ucs NSEuser@${SysName}_${Date}.ucs



The name of the file will be unique for that day.

If multiple files per day are needed, the ${DateTime} can be used to make it unique to the specific time it was downloaded.



Last modified