README-ned-settings

NED settings details


This NED is equipped with a number of runtime configuration options "NED settings" allowing for customization by the end user. All options are configurable using the NSO API for NED settings. Most NED settings can be configured globally, per device profile or per device instance in the following locations:

global /ncs:devices/global-settings/ned-settings/cisco-asa/ profile /ncs:devices/ncs:profiles/profile:/ned-settings/cisco-asa/ device /ncs:/device/devices/device:/ned-settings/cisco-asa/

Profiles setting overrides global-settings and device settings override profile settings, hence the narrowest scope of the setting is used by the device.

If user changes a ned-setting, then user must reconnect to the device, i.e. disconnect and connect in order for the new setting to take effect.

From the NSO CLI the device instance NED settings for this NED are available under:

# config
# devices device dev-1 ned-settings cisco-asa

Press TAB to see all the NED settings.

Table of contents


1. ned-settings cisco-asa
2. logger
3. connection
4. proxy
5. read
6. write
   6.1. config-dependency
   6.2. config-archive
7. scp-transfer
8. context
   8.1. list
9. admin-device
10. api
11. auto
12. live-status
   12.1. auto-prompts
13. developer
   13.1. simulate-command

1. ned-settings cisco-asa


The following top level ned-settings can be modified.

2. ned-settings cisco-asa logger


Settings for controlling logs generated.

3. ned-settings cisco-asa connection


Connection configuration.

4. ned-settings cisco-asa proxy


See sections 10 and 11 in README.md for information on proxy ned-settings used to connect via a jump host, terminal server or "exec" proxy, i.e. executing a command/script to connect to device.

5. ned-settings cisco-asa read


Settings used when reading from device.

6. ned-settings cisco-asa write


Settings used when writing to device.

6.1. ned-settings cisco-asa write config-dependency


Add a dynamic diff dependency to solve unsolved dependencies in the NED before next release.

6.2. ned-settings cisco-asa write config-archive


When config-archive is configured ASA NED will save running-configuration into file(s) on device.

The running-configuration is copied after NED performs 'wr mem'.

The errors during copy, if any, should be ignored (with log entry), hence if a copy operation fails the transaction proceeds to success, and any subsequent copy operations are attempted. The transaction succeeds even when all copy operations fail.

Each list entry, unless disabled, will result in a copy operation.

The copy operation is performed as copy /noconfirm running-config url

The url for destination is formed in the following manner:

  1. Substitution is performed on filename: %h is replaced with device name, which is NSO /devices/device/name %d is replaced with NSO system date in YYYY-MM-DD format %t is replaced with NSO system time in hh.mm.ss format %i is replaced with NSO Maapi transaction id Each of substitutional sequences is optional. The sequences can appear in any order. For example following filenames are valid: config_backup.txt config_backup_%h.txt config_backup_%h_%i.txt config_backup_%h_%dT%t_%i.txt %i_%d_%h.txt

  2. If type = 'remote' and remote-user or remote-user and remote-password specified, substitution is performed on directory by splicing in user/password, e.g. directory scp://server.examle.com/ remote-user myuser remote-password mypassword result scp://myuser:[email protected]/

  3. Result of directory and filename substitution joined together to form target url

The NED does not verify resulting url for validity.

NED does not create directories, hence the copy operation will fail if directory does not exist.

The copy destination can be local or remote.

Remote destinations support addition of remote-user/remote-password described above.

Local destinations support following additional features:

Maximum files

After the copy operation completes, NED will:

  1. Perform directory listing on the device dir directory

  2. If the directory contains more then max-files files, NED will remove oldest files, so that only max-files are left in the directory delete /noconfirm directoryAndOldFileName

If max-files is configured, it is critical that the directory is dedicated to keeping the archive, otherwise non-archive files may be removed. This is especially dangerous if the directory is committed all together or points to the root of local system, which will lead to removal of asa image and startup configuraiton files.

Repeat on standby

When this option is configured, the archive will be maintained on standby unit, in addition to primary unit:

  • For each local copy command, the NED will perform the copy on standby unit:

Example command for primary unit copy: copy /noconfirm running-config flash:/archive/config.17325.txt

Example command for backup unit copy: failover exec mate copy /noconfirm running-config flash:/archive/config.17325.txt

  • For each local delete command, the NED will perform the delete on standby unit:

Example command for primary unit copy: delete /noconfirm flash:/archive/config.17325.txt

Example command for backup unit copy: failover exec mate delete /noconfirm flash:/archive/config.17325.txt

Device command references: copy https://www.cisco.com/c/en/us/td/docs/security/asa/asa-command-reference/A-H/cmdref1/c4.html#pgfId-2171368 delete https://www.cisco.com/c/en/us/td/docs/security/asa/asa-command-reference/A-H/cmdref1/d1.html#pgfId-2253948 dir https://www.cisco.com/c/en/us/td/docs/security/asa/asa-command-reference/A-H/cmdref1/d2.html#pgfId-1996367

7. ned-settings cisco-asa scp-transfer


SCP Client configuration.

8. ned-settings cisco-asa context


Context settings.

8.1. ned-settings cisco-asa context list


The 'context list' ned-setting can be used to configure supported contexts for admin restricted admin logins. The context name(s) can be specified using a regexp expression.

9. ned-settings cisco-asa admin-device


The 'admin-device' ned-settings can be used to specify a secondary SSH connection to the admin login on a single context device (i.e. using the cisco-asa context name setting). The reason for the admin connection is to be allowed to read secrets using the more command. WARNING: Running-config must be saved or more command will not be used, hence make sure to not have cisco-asa write memory-setting set to disabled.

Furthermore, the cisco-asa read use-startup-config may be needed to handle obfuscated secrets correctly, since they are only shown in cleartext by the admin context.

Finally, an alternative way to avoid having to use admin-device connection (if you are using ASA 9.6.(2) or newer) is to configure a 'storage-url'. By setting this config, a context can use the more system:running-config command and show secrets in clear text this way.

10. ned-settings cisco-asa api


Configure API (new API features/changes).

11. ned-settings cisco-asa auto


Configure auto (dynamic behaviour).

12. ned-settings cisco-asa live-status


Configure NED settings related to live-status.

12.1. ned-settings cisco-asa live-status auto-prompts


See section 5. Built in live-status actions in README.md for information on how to use this ned-setting.

13. ned-settings cisco-asa developer


Contains settings used for debugging (intended for NED developers).

13.1. ned-settings cisco-asa developer simulate-command


Used for debugging to simulate a device response to a command.

Last updated

Was this helpful?