Where to enter commands

Commands may be entered through one of the following methods:
  • The GOMMAIN command. The operands of the GOMMAIN command specify a CMS file. This file contains a series of commands which establish the Operations Manager configuration. An Operations Manager configuration file can be specified and processed by the GOMMAIN command in the PROFILE EXEC of OPMGRM1. This file is commonly called the startup configuration file. No authorization checking is performed for commands processed from the startup configuration file. See GOMMAIN for more information.
  • The GOMCMD command. The virtual machine where the GOMCMD command is entered must have authorization for the command operand of the GOMCMD command. See GOMCMD for more information.
  • The VIEWLOG screen. The input area of the VIEWLOG screen may be used to enter commands. The virtual machine where the VIEWLOG command is entered must have authorization for the command entered in the VIEWLOG screen input area. See GOMCMD and VIEWLOG for more information.
  • The SMSG command. The virtual machine where the SMSG command is entered must have authorization for the command contained in the msgtext operand of the SMSG command. See "SMSG" in the IBM® z/VM® CP Commands and Utilities Reference (SC24-6175) for more information.
  • The console of OPMGRM1, or any user ID running the GOMMAIN command. You must be logged onto the virtual machine running the GOMMAIN command. No authorization checking is performed for commands entered through the console.
  • The CONFIG command. The FILE, FN, FT, and FM operands of the CONFIG command specify a CMS file. This file contains a series of commands which alter the current Operations Manager configuration. The virtual machine where the CONFIG command is entered must have authorization for each command processed from the file. See CONFIG for more information.
Notes about Operations Manager commands contained in CMS files:
  1. The file can have fixed or variable length records with a maximum record length of 255.
  2. Any line beginning with an asterisk (*) is considered a comment and is not parsed by Operations Manager.
  3. For improved readability, the commands may be broken into multiple lines joined by a continuation indicator, which is the plus sign (+) by default. The continuation character can be customized with the DEFOPTN command.

    Below is an example of a CMS file containing an Operations Manager command broken into multiple lines:

    *
    *DEFINE A SCHEDULE TO CHECK PRIMARY SPACE ALLOCATION HOURLY
    *
    DEFSCHD NAME SCHD01 +
     EVERY 01:00 +
     HOURS 01,02,03,04,05,06,07,18,19,20,21,22,23 +
     DAYS MTWTF*** +
     CONFLICT SCHD02,SCHD03 +
     MAXDEFER 20 +
     ACTION CHECKSP +
     PARM PRIMARY