• Mike Rockwell (Progress Software)

    This is what I use on a Cisco Switch

    1. [-] reload {/.+\[yes//no\]:\s+/, "n"}
    2.  
    3. [-] y

     

  • Janie Griffin (Customer)

    Mike,

     

    We tried that and it failed. The response is not a yes or no. It is to confirm. Did you use it in the Beta or production?

    • Mike Rockwell (Progress Software)

      Been running it for years on my switch in the Ipswitch Training Environment. I restore the startup config, reboot (reload) the switch, then I update the running config. This runs every week on a schedule and has been running quite a long time. It's an old C2960X switch.

       

      What do you do when you reload the switch via command line? I typically create my scripts to mimic exactly what I would do via CLI, to include any responses from the device.

      • Janie Griffin (Customer)

        Mike,

         

        This is the output and we would normally hit enter.

        Reload command is being issued on Active unit, this will reload the whole stack Proceed with reload? [confirm]

      • Mike Rockwell (Progress Software)

        You could try

        1. [-] reload {.*Proceed with reload\? \[confirm\], $(CommandTerminator)}

        OR

         

        1. [-] reload
        2. @read ".*Proceed with reload\? \[confirm\]"
        3. @write $(CommandTerminator)

         

      • Janie Griffin (Customer)

        Mike,

         

        We will try this, but I think we already have. We will let you know. Thanks for trying to help!

      • Mike Rockwell (Progress Software)

        Could you take a screen show of the CLI when you manually put in a reload to include all the verification and what do you put to continue, just an enter or anything else?

         

10 of 16