Menu Creation on an SLC

How do you create a menu on an SLC32 that my team will see when logged into the SLC device? Do you have an example?


Menus on the SLC currently are done from the Command line, as there is no GUI interface design yet for menu manipulation. Menus can be applied to each user that can log in, save the "sysadmin" account. The menu system is only text based.

The rules of the menu system are:

  • Maximum of 20 custom user menus
  • Maximum of 50 commands per custom user menu (logout is always the last command)
  • Maximum of 15 characters for menu names
  • Maximum of five nested menus can be called.
  • No syntax checking (Enter each command correctly.)

COMMANDS:

To assign a custom user menu to a local or remote user:

set localusers add|edit <User Login> custommenu <Menu Name>
set remoteusers add|edit <User Login> custommenu <Menu Name>

To disassociate a custom user menu from a local or remote user:

set localusers add|edit <User Login> custommenu CLEAR
set remoteusers add|edit <User Login> custommenu CLEAR

To create a new custom user menu or add a command to an existing custom user menu:

set menu add <Menu Name> [command <Command Number>]

To change a command or nickname within an existing custom user menu:

set menu edit <Menu Name> command <Command Number>
set menu edit <Menu Name> nickname <Command Number>

To set the optional title for a menu:

set menu edit <Menu Name> title <Menu Title>

To enable or disable the display of command nicknames instead of commands:

set menu edit <Menu Name> shownicknames <enable|disable>

To enable or disable the redisplay of the menu before each prompt:

set menu edit <Menu Name> redisplay menu <enable|disable>

To delete a custom user menu or one command within a custom user menu:

set menu delete <Menu Name> [command <Command Number>]

To view a list of all menu names of all commands for a specific menu:

show menu <all|Menu Name>

Example:

Creating two custom menus, with menu1 having a nested menu (menu6)

[slc] set menu add menu1
Enter option menu title (<return> for none): Lantronix Menu Test
Specify nickname for each command? [no} y
Enter each command, up to 50 commands ("logout"; is always the last command).
Press <return> when the menu command set is complete.

Command #1: connect direct deviceport 1
Nickname #1: connect Port-1
Command #2: connect direct deviceport 2
Nickname #2: connect Port-2
Command #3: showmenu menu6
Warning: menu "menu6"; does not exist.
Nickname #3: Lantronix Nested Menu Test
Command #4:
Command #4: logout
Nickname #4: log off
Custom User Menu settings successfully updated.

[slc] set menu add menu6
Enter option menu title (<return> for none) : Lantronix Nested Menu
Specify nickname for each command? [no}
Enter each command, up to 50 commands ("logout "; is always the last command).
Press <return> when the menu command set is complete

Command #1: connect direct deviceport 3
Command #2: connect direct deviceport 4
Command #3: show datetime
Command #4: returnmenu
Command #5:
Command #5: logout
Custom User Menu settings successfully updated.
[slc] show menu all
___Custom User Menus___________________________________________________________
menu1 menu6



[Originally Published On: 02/26/2007 08:44 AM]