I did some labbing yesterday and I got a task that said I should create an IOS menu
for NOC users so that they can ping and traceroute without needing to know the CLI.
I had never used this feature before and the only time I’ve seen it in real life is when
using a Cisco router as a console server and you can choose what line you want to use
through a menu.
The menu is created with the menu command. First we create the menu and set a title for it.
The pound sign is a delimiting character, just as if we were creating a banner.
The prompt is used to ask the user for a selection. Now we need to create the different line
items that can be selected.
Text is the string that should be output on the menu, the number to the left
is a key for identification. Command is used to send commands and we put a
pause after the command since we need to wait for output from ping and traceroute.
We create an option for exiting the menu.
We will also use clear-screen to clear the screen before printing the menu.
If we want the users to only have access to the menu we can use the autocommand feature.
This will force the menu when logging in with the NOC account. We need to use local login
for this to work.
This is what the entire configuration looks like.
If you forget to set the promp you will get an output like this.
This feature might not be the most common but it could be on the lab and if not, now
you know how to create a fancy menu for your Cisco console server.