Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

CLISH Commands in Expert Mode easier

HeikoAnkenbrand
Champion
Champion

eccie123.JPG

Clish commands can only be used in expert mode with the following command for example 'clish -c "show route"'. To make this a bit easier, I wrote a simple script to simplify that.

 

Now you can use the new command "c" to execute clish commands. You only have to write the c before each clish command in expert mode.

For example, if you want to execute the clish command "show route", all you have to do is type the followingin expert mode:

 

# c show route

 

To in

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


21 Replies

Uta_Rowzee
Participant
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Morris_Nelka
Participant

nice hack

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


HeikoAnkenbrand
Champion
Champion

I also find the reverse idea good to execute expert mode commands in clish. Unfortunately I can't do that:-)

That's the way I see it:

> e netstat -rn

Now the expert mode command is executed in the clish. Can you implement this?

I also know that the "dynamic clish" is planned. But here the commands different from the expert mode syntax and we have to learn everything new.

I want an "e" in the clishSmiley Happy.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Marcel_Wildenbe
Contributor

Just one thing: your default shell needs to be /bin/bash. If you default log in with clish, go to expert and want to use this trick, you get a "configuration lock" message and cannot execute the command.

I would love that "e" option too... Smiley Happy

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Chinmaya_Naik
Advisor

Dear Heiko Ankenbrand Thanks, it's working fine.

and Marcel Wildenberg‌ thanks for the trick. 

The below screenshot is showing that when I type any command like c show route  (as per the script Smiley Happy)

#Chinmaya Naik

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Danny
Champion
Champion
Reply
0 Kudos

Marcel_Wildenbe
Contributor

Sharp.

I am not saying /bin/bash should be your default, the clish as default is blocking the trick.

Kudos on the "SCP only" shell.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


HeikoAnkenbrand
Champion
Champion

Hi CHINMAYA 

yes, it is a small script.

Regards

Heiko

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


G_W_Albrecht
Champion
Champion

My clish is very much restricted without a tab key  - but nice idea!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Caytana_Dewente
Participant

Hi ,

Nice small script.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Ferhat_Aslan
Explorer

Yes an "e" in the clish!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Yusuf_Kilic
Explorer

Very helpful script!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Cem_Yilmaz
Explorer

Hi Heko,

better use the path /usr/local/bin/

Regards

Cem 

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Luisa_G_
Participant

nice

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Igor_Szkaradkie
Participant

nice hack

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Sonia_Brunner
Explorer

Hi Heiko

yes it is a nice idea:-)

Regards

Sonia

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


HeikoAnkenbrand
Champion
Champion

THX,

Heiko

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Reply
0 Kudos

HeikoAnkenbrand
Champion
Champion

I could also write as an oneliner.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Reply
0 Kudos

HeikoAnkenbrand
Champion
Champion

I could also write as an oneliner.

Any interest?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Reply
0 Kudos

HeikoAnkenbrand
Champion
Champion

THX!

Yes, this is the better path /usr/local/bin/

Regards

Heiko

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Reply
0 Kudos

HeikoAnkenbrand
Champion
Champion

I could also write it as an oneliner.

Any interest?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Reply
0 Kudos