07-12-2023 06:58 AM
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.
Solved! Go to Solution.
07-13-2023 02:00 AM
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.
07-13-2023 02:00 AM
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.
07-13-2023 06:59 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide