User Manual
Console Server Features Configuring Menu Mode
3-4
3.4.1 Menu Configuration at the Command Line
Use the Set/Define Menu command to create entries for your menu. For each menu entry, specify the
option’s numbered position in the table, the entry description that will be displayed in the menu, and the
actual command invoked when the user chooses that option. Enclose option and command names in quotes.
Figure 3-7: Adding a Command Entry
It is a good idea to add a command to the menu that allows the user to log out of the server. The Exit
command only works in menu mode. It allows users to return to the Local> prompt on the SCS on which
the menu was configured. It is helpful to include this command in your menus until you have fully tested
them—otherwise there is no way for users on menu mode ports to return to the Local> prompt.
Figure 3-8: Adding a Logout Command
3.4.2 Menu Configuration Files
If you need to configure menus for multiple sets of users, you should create a menu configuration file. These
files provide more flexibility than the command line options and are easier to use when setting up larger
menus. The file is typically stored on the SCS flash disk (/flash).
Each menu in a configuration file is associated with a group. Each group consists of one or more users. One
group can include a user default, meaning that menu will be used for any users not explicitly in an other
group. Only one group can include the default user.
Follow the steps below to create a menu configuration file:
1 Start a new text file on a host other than the SCS. Once the file is complete, you will FTP it to the
SCS’s /flash disk. The /flash disk and the Disk commands are discussed in detail on page 2-16.
2 Define up to 10 groups of users. Each group, listed on separate lines, will later be assigned a specific
menu. Do not leave any whitespace between each name—the names should be separated by commas.
Note: A space must be included on both sides of the = when defining the groups, as
shown in the example above. Also, remove any extra spaces from the end of each
line, as they will cause the menu parsing to fail.
3 Begin defining the menus. Start by assigning a menu to a specific group.
Then, assign the menu a title. This string will appear at the top of the menu. You can use dynamic
print variables in the title, which will appear appropriately when the menu is viewed.
Local>> DEFINE MENU 2 “Sun Server” “CONNECT LOCAL PORT_2”
Local>> DEFINE MENU 5 “Exit” “Logout”
GROUP austin = sandy,dave,bob,kathy,default
GROUP admin = admin
MENU austin
TITLE “Lantronix Console Server”