Ethernet Switching
Ethernet Switching

multiple Junos-cli commands at the same time

‎09-19-2019 04:58 AM

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.

5 REPLIES 5
Ethernet Switching
Solution
Accepted by topic author Arix
‎09-20-2019 12:09 AM

Re: multiple Junos-cli commands at the same time

‎09-19-2019 05:10 AM

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

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

Ethernet Switching

Re: multiple Junos-cli commands at the same time

‎09-19-2019 05:36 AM

Hi Sergii,

Thanks for reply...

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

Ethernet Switching

Re: multiple Junos-cli commands at the same time

‎09-19-2019 05:42 AM

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

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

Ethernet Switching

Re: multiple Junos-cli commands at the same time

‎09-19-2019 05:52 AM

Thanks Sergii

Ethernet Switching

Re: multiple Junos-cli commands at the same time

‎09-19-2019 05:54 AM

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

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