Submit a ticketCall us

WebinarUpcoming Webinar: How Help Desk and Remote Support Pays for Itself

Learn how help desk software can simplify ticketing management, allow you to track hardware and software assets, and accelerate the speed of IT support and service delivery. Gain insights on how remote support tools allow your IT team to maximize their efficiency and ticket resolution by expediting desktop troubleshooting, ultimately helping keep end-users happy and productive.

Register here.

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

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