XOS: How to create CLI aliases / shortcuts ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-15-2015 03:33 PM
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
I guess with recent XOS the scripting feature should make this possible.
If someone use this - it is very welcome.
Regards
9 REPLIES 9
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-22-2018 08:11 AM
Completely forgot about this topic. Glad you found it and brought it back to life 🙂
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-16-2015 08:52 AM
Something like that would definitely be a "nice to have"; I could alias "save" to "wr" for my cisco-centric cow-orkers 🙂
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-15-2015 04:00 PM
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
And what about when i will create a shortcut for fewer command typing ? Like for example "sln" for show lldp neighbors ?
Regards
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-15-2015 04:00 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-15-2015 03:42 PM
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?
Is that what your looking for?
