MenuThe 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 this example, the Network Operation Center (NOC) needs to view the test in the labVroAnd 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.
VroThe tips on menu settings in settings are described. I hope you can learn more about them.
Edit recommendations]