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
‎03-29-2018 03:19 PM
I was asked to come up with some other use cases for exshrc.xsf besides aliases.
I could see this being use for setting session-specific variables.
disable clipaging and configure cli are good examples.
What other ideas does the community have?
I could see this being use for setting session-specific variables.
disable clipaging and configure cli are good examples.
What other ideas does the community have?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-24-2018 08:41 PM
EXOS 22.3 and later can store commands like 'alias' in a exshrc.xsf script on a switch. This script is run after a successful login, Similar concept to the linux .bashrc file after a linux login.
This is a way to make aliases available to any login by storing the alias commands in this file.
exshrc.xsf is stored in /usr/local/cfg
Because this is a .xsf file and follows the EXOS .xsf scripting rules, the exshrc.xsf file can be any script you would like to run after a login is successful.
This is a way to make aliases available to any login by storing the alias commands in this file.
exshrc.xsf is stored in /usr/local/cfg
Because this is a .xsf file and follows the EXOS .xsf scripting rules, the exshrc.xsf file can be any script you would like to run after a login is successful.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-24-2018 08:41 PM
Hi Dave,
that is a very very interesting advice not only regarding to aliases.
There a lot of possible use cases.
(This works well ...)
Thanks for emphasing that!
Regards,
Matthias
that is a very very interesting advice not only regarding to aliases.
There a lot of possible use cases.
(This works well ...)
Thanks for emphasing that!
Regards,
Matthias
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-22-2018 08:11 AM
Review after 2 years!
Since EXOS V22.3 we have the needed command:
https://documentation.extremenetworks.com/exos_22.4/exos_21_1/exos_commands_all/r_alias.shtml
Regards
Since EXOS V22.3 we have the needed command:
https://documentation.extremenetworks.com/exos_22.4/exos_21_1/exos_commands_all/r_alias.shtml
Regards
