Submit a ticketCall us

whitepaperYour VM Perplexities Called, and They Need You to Read This.

Virtualization can give you enormous flexibility with future workloads and can be a key enabler for other areas, like cloud computing and disaster recovery. So, how can you get a handle on the performance challenges in your virtual environment and manage deployments without erasing the potential upside? Learn the four key areas you need to be focusing on to help deliver a healthy and well-performing data center.

Get your free white paper.

Home > Success Center > Network Configuration Manager (NCM) > NCM - Knowledgebase Articles > 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

Overview

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.

Environment

All NCM versions 

Detail

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@10.8.34.1:${SysName}_${Date}.ucs

SCPSERVERPASSWORD PLAIN TEXT

 

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

Tags

Classifications

Public