How to save EXOS config via script

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Is there any way to send "y" via scripting/Netsight?

* Slot-1 :-) # save configuration primary The configuration file primary.cfg already exists.
Do you want to save configuration to primary.cfg and overwrite it? (y/N) 

Thanks!
Photo of Hilario Martin

Hilario Martin

  • 132 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of David Coglianese

David Coglianese, Embassador

  • 5,944 Points 5k badge 2x thumb
Yes,
Just put a "y" on the next line of your script.
Photo of Brandon Clay

Brandon Clay, Escalation Support Engineer

  • 13,086 Points 10k badge 2x thumb
Hi Hilario,

If you use the command 'disable cli prompting' at the beginning of the session, you will not get this confirmation prompt.
Photo of Hilario Martin

Hilario Martin

  • 132 Points 100 badge 2x thumb


sorry, I think this the checkbox to apply & save config.
Photo of Hilario Martin

Hilario Martin

  • 132 Points 100 badge 2x thumb
David & Brandon, thanks for your CLI recomendations.
Photo of Bastian Sprotte

Bastian Sprotte, Employee

  • 1,610 Points 1k badge 2x thumb
Hello,
Netsight can save the config via SNMP.
there should be an flexview available to have the config saved.
Bastian
-