Export all device configuration files from GUI/CLI to a file on a local disk.
search cancel

Export all device configuration files from GUI/CLI to a file on a local disk.

book

Article ID: 315723

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How to export all device configuration files from Smarts NCM to a file on a local disk using GUI/CLI?

Environment

NCM - 10.1.x

Resolution

  • Using the Smarts NCM console:
  1. In Smarts NCM, navigate to the following location:
Networks --> [Network Name] --> Devices
  1. Select the devices with the configurations you want to save. 
  2. Right click and select Save to --> Save to File
  3. Specify the location on the local system disk where you would like to save the configurations text file (*.txt). Image added for reference:

 
 
  • Using NCM AS CLI:
 
The extract_config.sh script, which is located in the $VOYENCE_HOME/tools directory, allows the user to extract configuration data from NCM AS (Application Server). This script can be executed using crontab.
 
Options available with script are:
  • -network network_name
  • -outputdir path_name
  • -user user_name
  • -password user_password
  • -ext file_extension_name
  • -debug
Example:
Example will extract all the Smarts NCM device configurations (running and startup, if available with device) from the "Labs" network, and save it in /home/ directory and file extension would be *.csv.
 
./extract_config.sh -network Labs -outputdir /home/ -user <user with admin privilege> -password <Input password here> -ext csv