User manual
set menu
136 Chapter 2 Command Descriptions
command=string
The command that is executed when this menu item is selected. This
may be any valid command on the CLI (command line interface). The
user accessing the custom menu must have the necessary permissions
for the supplied command in order to properly execute the command.
Note that this option may not be combined with the “submenu” option. If
the string contains spaces, enclose it in double quotes.
submenu=string
The menu displayed to the user upon selecting the menu item.
Submenus allow multi-level menus to exist, and grouping of information
so that a user may access one or more submenus each with their own
distinct menu items. The string is the menu name identifying the custom
menu to link to. The menu must have already been created. Note that this
option may not be combined with the “command” option. If the string
contains spaces, enclose it in double quotes.
Examples Updating Global Settings
#> set menu quit_key=Q quit_label=”Quit” previous_key=R previous_label=”Return
to Previous Menu” presskey_label=”Press any key to continue...”
Adding/Updating Custom Menus
Adding a new custom menu (implies that index 2 is not yet created):
#> set menu range=2 newname=my_menu title=”My Menu” sortby=key columns=2
direction=horizontal
Updating an existing menu with a new menu name:
#> set menu name=my_menu newname=admin_menu
Updating an existing menu with new settings:
#> set menu name=admin_menu title=”Administration Menu” subtitle=”Select an
Option”
Adding/Updating Custom Menu Items
Adding a menu item for a custom menus (implies that index 1 is not yet
created):
#> set menu name=admin_menu item=1 key=1 label=”Connect Port 1”
command=”connect 1”
Updating a menu item to display another submenu:
#> set menu name=my_menu item=2 key=A label=”Go to Admin Menu”
submenu=”admin_menu”
See also • "set user" on page 220.
• "revert" on page 61.
• "show" on page 249.