cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
458
Views
0
Helpful
2
Replies

How to send command "write memory" from NSO to Cisco IOS device

Fantolino
Level 1
Level 1

I need to send the comand "write memory" to Cisco IOS devices.

I understand that cisco-ios-cli NED will do that when committing a configuration change. Is it possible to force the command?

Using "live-status" I can send commands such as "show version". I would be great if an equivalent for write memory would be available.

 

1 Accepted Solution

Accepted Solutions

tcragg1
Cisco Employee
Cisco Employee

You can execute generic operational commands on an NSO managed IOS device using the "live-status exec any" command. The README file for the cisco-ios-cli NED has a section detailing the syntax for this command.

View solution in original post

2 Replies 2

tcragg1
Cisco Employee
Cisco Employee

You can execute generic operational commands on an NSO managed IOS device using the "live-status exec any" command. The README file for the cisco-ios-cli NED has a section detailing the syntax for this command.

rogaglia
Cisco Employee
Cisco Employee

Remember also that there are some interesting NED features:

  - write memory-setting <enum>

    This ned-setting is used to configure when/if an applied
    configuration is saved to the device. Three values are supported:

    on-commit     - Save configuration immediately after the config has been
                    successfully applied on the device. If an error occurs when
                    saving the whole running config will be rolled back (default).

    on-persist    - Save configuration during the NED persist handler. Called
                    after the config has been successfully applied and commited
                    If an error occurs when saving an alarm will be triggered.
                    No rollback of the running config is done.

    disabled      - Disable saving the applied config to persistent memory.

    Default: on-commit