skip book previous and next navigation links
go up to top of book: HP OpenVMS Alpha Partitioning and Galaxy Guide HP OpenVMS Alpha Partitioning and Galaxy Guide
go to beginning of chapter: OpenVMS Galaxy Configuration Utility OpenVMS Galaxy Configuration Utility
go to previous page: Executing Component Commands Executing Component Commands
go to next page: Monitoring an OpenVMS Galaxy with HP Availability ManagerMonitoring an OpenVMS Galaxy with HP Availability Manager
end of book navigation links

Customizing GCU Menus  



System managers can extend and customize the GCU menus and menu entries by creating a file named SYS$MANAGER:GCU$CUSTOM.GCR. The file must contain only menu statements formatted as shown in the following examples. The GCU$CUSTOM.GCR file is optional. It is preserved during operating system upgrades.
FORMAT EXAMPLE:
 
MENU "Menu-Name" "Entry-Name" Procedure-type "DCL-command"
    * Menu-Name - A quoted string representing the name of the
                  pulldown menu to add or extend.
 
    * Entry-Name - A quoted string representing the name of the
                    menu entry to add.
 
    * Procedure-type - A keyword describing the type of procedure
                    to invoke when the menu entry is selected.
 
      Valid Procedure-type keywords include:
 
      COMMAND_PROCEDURE - Executes a DCL command or command file.
      SUBPROC_PROCEDURE - Executes a DCL command in subprocess context.
 
    * DCL-command - A quoted string containing a DCL command statement
                    consisting of an individual command or invokation
                    of a command procedure.
To create a procedure to run on other instances, write a command procedure that uses SYSMAN or task-to-task methods similar to what the GCU uses in SYS$MANAGER:GCU$ACTIONS.COM. You can extend GCU$ACTIONS.COM, but this file is replaced during operating system upgrades and is subject to change.
  EXAMPLE MENU STATEMENTS (place in SYS$MANAGER:GCU$CUSTOM.GCR):
 
  // GCU$CUSTOM.GCR - GCU menu customizations
  // Note that the file must end with the END-OF-FILE statement.
  //
  MENU "Tools" "Availability Manager" SUBPROC_PROCEDURE "AVAIL/GROUP=DECamds" 
  MENU "Tools" "Create DECterm" COMMAND_PROCEDURE  "CREATE/TERM/DETACH" 
  MENU "DCL"   "Show CPU"       COMMAND_PROCEDURE  "SHOW CPU"  
  MENU "DCL"   "Show Memory"    COMMAND_PROCEDURE  "SHOW MEMORY"  
  MENU "DCL"   "Show System"    COMMAND_PROCEDURE  "SHOW SYSTEM"  
  MENU "DCL"   "Show Cluster"   COMMAND_PROCEDURE  "SHOW CLUSTER"
  END-OF-FILE

go to previous page: Executing Component Commands Executing Component Commands
go to next page: Monitoring an OpenVMS Galaxy with HP Availability ManagerMonitoring an OpenVMS Galaxy with HP Availability Manager