cancel
Showing results for 
Search instead for 
Did you mean: 

XOS: How to create CLI aliases / shortcuts ?

XOS: How to create CLI aliases / shortcuts ?

M_Nees
Contributor III
Is it possible to create command shortcuts for commands which are often used or cumbersome to type in ? Like other major vendors "alias exec scn show cdp neighbor" ?
I guess with recent XOS the scripting feature should make this possible.

If someone use this - it is very welcome.

Regards
9 REPLIES 9

Drew_C
Valued Contributor III
Completely forgot about this topic. Glad you found it and brought it back to life 🙂

Frank
Contributor
Something like that would definitely be a "nice to have"; I could alias "save" to "wr" for my cisco-centric cow-orkers 🙂

M_Nees
Contributor III
OK. Scripting will help me with long commands. Is it possible to commit parameter to the script ?

And what about when i will create a shortcut for fewer command typing ? Like for example "sln" for show lldp neighbors ?

Regards

BrandonC
Extreme Employee
Hi Matthias,

You can pass CLI arguments to scripts. You can find an example of this with a Python script here:
https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/watch/watch.py

-Brandon

StephenW
Extreme Employee
You can do it in python or cli scripting , but you would still need to type "load script cdp" to execute the command if the script file was cdp.py or cdp.xsf

Is that what your looking for?
GTM-P2G8KFN