Switching

Expand all | Collapse all

multiple Junos-cli commands at the same time

Jump to Best Answer
  • 1.  multiple Junos-cli commands at the same time

     
    Posted 09-19-2019 04:59

    Hi all,

    On the Junos, can it be executed multiple junos-cli at the same time rather than doing individually in different time?

     

    Let say:

    >sh int extensive ge-0/0/0 + sh system alarm + sh chassis alarm + sh system core-dump + sh system process extensive | except 0.00 

     

     

    Thx

    A.



  • 2.  RE: multiple Junos-cli commands at the same time
    Best Answer

     
    Posted 09-19-2019 05:10

    Hello Arix,

     

    Please try this construct - it works for me:

    start shell command "cli -c 'sh int ge-3/0/0 | no-more; sh system core-dumps; sh int ge-3/0/1| no-more'"

    Best regards,

    Sergii

    -------------------------------------------------------------------

    Please accept the solution if your problem is resolved Smiley Happy

    -------------------------------------------------------------------



  • 3.  RE: multiple Junos-cli commands at the same time

     
    Posted 09-19-2019 05:36

    Hi Sergii,

    Thanks for reply...

    Can I ask about there is a junos version to executing that one?



  • 4.  RE: multiple Junos-cli commands at the same time

     
    Posted 09-19-2019 05:42

    Hello Arix,

     

    I tested in on MX running 16.1R4-S8.1, but "start shell" command should be present on many platforms:

    https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/start-shell.html

     

    start shell [command <cmd>] is a hidden command that should be typed manually. It was added in 14.1.

     

    Hope it helps.

     

    Best regards,

    Sergii

    -------------------------------------------------------------------

    Please accept the solution if your problem is resolved Smiley Happy

    -------------------------------------------------------------------



  • 5.  RE: multiple Junos-cli commands at the same time

     
    Posted 09-19-2019 05:52

    Thanks Sergii



  • 6.  RE: multiple Junos-cli commands at the same time

     
    Posted 09-19-2019 05:54

    Hello Arix,

     

    Many thanks for kudos, much appreciated!

    Could you please also accept one of my post as a solution, if it worked for you - it would help other community members to find solution for similar queries faster.

     

    Best regards,

    Sergii

    -------------------------------------------------------------------

    Please accept the solution if your problem is resolved Smiley Happy

    -------------------------------------------------------------------