Junos OS

last person joined: 8 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  run multiple similar commands

    Posted 03-29-2015 10:29

    Hi, How can I run multiple delete commands in one shot (cli). copy and paste in cli ?

     

    Thanks



  • 2.  RE: run multiple similar commands
    Best Answer

     
    Posted 03-29-2015 11:41

    You can do a copy past or do a load override terminal paste all the delete command you want to do

    and commit afterwards.

     

    Changes are always applied at the moment youi do a commit. So if you paste all the delete command and do a commit after the paste of the delete commands everything is applied at once.



  • 3.  RE: run multiple similar commands

    Posted 03-30-2015 01:02

    Hello,

    It depends on Your definition of "multiple".

    Generally speaking, 2...10...15 commands are fine to copy-paste in CLI.

    Anything above that - You could run into CLI buffer overflow, lost chars and mangled CLI input as a result.

    I would suggest to write all Your "delete" commands into a text file, upload it to the router, and from there, run:

     

    edit
    load set <pathname/filename>
    commit

    HTH

    Thanks
    Alex