At present, vrouters are widely used. So I have studied the router menu skills in vro settings. I will share them with you here, hoping to help you. The first time I heard that the word "menu" was set for a router in the CCIE practice lab, I must admit that I was also very interested in them.
Here, I must first describe that this is not the best way to control user interaction in the vro setting environment of an enterprise. However, all things always need to be analyzed based on specific circumstances. For a lab or a small office environment, the user menu can be said to be a perfect solution, which makes device operations more convenient, all of this can be done perfectly with simple command line tools. The menu creation capability is provided by Cisco Internet Operating System from version 10.0. Using the command line tool to create a menu is very simple and contains four key points:
In my example, the Network Operation Center (NOC) needs to view the use interface for testing vro settings in the lab and run the ping and trace commands. To do this, I will first create a command option on the nested menu to allow the vro configuration test operation, and then create a user account to associate with the menu. The main menu is created first. You can select a level-2 menu based on your needs. Set the menu title and add prompt information for future use:
Menu NOC title ^ Menu for NOC users ^ C
Menu NOC prompt ^ Choose your selection: ^ C
Then, I set the user options.
Menu NOC text 1. Ping Menu
Menu NOC text 2. Trace Menu
Menu NOC text 3. Show Interface Menu
Menu NOC text 4. Exit
These options will be associated with the actual command. In this case, the goal is to call out nested menus.
Menu NOC command 1. menu ping
Menu NOC command 2. menu trace
Menu NOC command 3. menu interface
Menu NOC command 4. exit
I want the user to confirm the data before deciding how to use the menu. Therefore, I will add a "pause" option after each command.
Menu NOC options 1. pause
Menu NOC options 2. pause
Menu NOC options 3. pause
Menu NOC clear-screen
Menu ping title ^ Menu for ping ^ C
Menu ping prompt ^ Choose Your Ping Destination: ^ C
Menu ping text 1. SW05
Menu ping command 1. ping 192.168.80.1
Menu ping options 1. pause
Menu ping text 2. SW06
Menu ping command 2. ping 172.20.200.5
Menu ping options 2. pause
Menu ping text 3. SW07
Menu ping command 3. ping 192.168.80.214
Menu ping options 3. pause
Menu ping text 4. Back
Menu ping command 4. menu-exit
Menu ping clear-screen
Menu trace title ^ Menu for Traceroute ^ C
Menu trace prompt ^ Choose Your Traceroute Destination: ^ C
Menu trace text 1. SW05
Menu trace command 1. trace 192.168.80.1
Menu trace options 1. pause
Menu trace text 2. SW06
Menu trace command 2. trace 172.20.200.5
Menu trace options 2. pause
Menu trace text 3. SW07
Menu trace command 3. trace 192.168.80.214
Menu trace options 3. pause
Menu trace text 4. Back
Menu trace command 4. menu-exit
Menu trace clear-screen
Menu interface title ^ Show Interface Menu ^ C
Menu interface prompt ^ Choose Your Interface Option: ^ C
Menu interface text 1. Show IP Interface Brief
Menu interface command 1. sh ip int brief
Menu interface options 1. pause
Menu interface text 2. Show Interface Ethernet0/0
Menu interface command 2. sh int ethernet0/0
Menu interface options 2. pause
Menu interface text 3. Show Interface Ethernet0/1
Menu interface command 3. sh int ethernet0/1
Menu interface options 3. pause
Menu interface text 4. Back
Menu interface command 4. menu-exit
Menu interface clear-screen
Finally, I will create a local user account on the vro settings. The "autocommand" option tells the router to set the time when someone logs on to the network operation center and execute our menu commands.