3 Replies Latest reply on Apr 20, 2017 3:00 PM by mdbakerusa

    How can you script clear line and confirm on a Cisco router


      We are trying to execute the following command via script from Solarwinds.  We've used both a scheduled job and immediately executing a saved script via Configuration Management.


      Hostname#clear line 3


      The IOS then asks you to [confirm], to which you would simply type "y" and not even need to press Enter.


      We've tried several variations of the script but with zero luck.


      Try #1

      clear line 3




      Try #2

      clear line 3${CR}y



      Try #3

      conf t

      do clear line 3





      Try #4

      conf t

      do clear line 3${CR}y



      Anyone have a solution?