Writer instructions

Page title

For most spaces, this page must be titled Space announcements.

For spaces with localized content, this page must be titled Space announcements l10n.

Purpose

Provide an announcement banner on every page of your space.

Location

Move this page outside of your home branch.

Guidelines

Limited supportBMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see MainView Middleware Monitor 9.2.

Execute program


MainView Middleware Monitor (MVMM) can start an external program. You can call a batch file or script file that should include the location of the external programs and the parameters to pass.

The Program field must contain the full path to the program or script that you want to run, including any file extensions. If the program you provide executes a script or requires another file, that file must also be entered in the argument field with its absolute path included. This can be any program or script on the computer where the MVMM Event Service is installed.

Execute a program:
Enter the required information in the Execute Program Properties dialog box:

  • Program: cmd.exe
  • Arguments: /c start c:\batchfile.bat

where:

 batchfile.bat is a batch file to start a program with arguments

Note

TMTM can be configured to alert you if the cmd.exe command fails, but cannot alert you if the program started by this command succeeds or fails.

On launching Windows programs, select the allow service to interact with the desktop option from the service in the Windows Service Control Manager.

Working Examples of the Execute nodes Program and Arguments:

  • cmd.exe /C start c:\"Program Files"\BMTM\batchfile.bat
  • cmd.exe /C start c:\"Program Files\BMTM\batchfile.bat"
  • cmd.exe /C "c:\Program Files\BMTM\batchfile.bat"
  • cmd.exe /C c:\"Program Files"\BMTM\batchfile.bat
  • cmd.exe /C start c:\"Program Files"\BMTM\perlscript.pl
  • cmd.exe /C start c:\"Program Files\BMTM\perlscript.pl"
  • cmd.exe /C start perl "c:\Program Files\BMTM\perlscript.pl"
  • cmd.exe /C start perl "c:\Program Files"\BMTM\perlscript.pl
  • cmd.exe /C perl "c:\Program Files\BMTM\perlscript.pl"
  • cmd.exe /C perl "c:\Program Files"\BMTM\perlscript.pl
  • cmd.exe /C "c:\Program Files\BMTM\perlscript.pl"
  • cmd.exe /C c:\"program files"\BMTM\perlscript.pl

Commands that fail on Windows:

  • cmd.exe /C start "c:\Program Files\BMTM\batchfile.bat"
  • cmd.exe /C start "c:\Program Files"\BMTM\batchfile.bat
  • cmd.exe /C "c:\Program Files"\BMTM\batchfile.bat
  • cmd.exe /C start perl c:\"Program Files\BMTM\perlscript.pl"
  • cmd.exe /C start perl c:\"Program Files"\BMTM\perlscript.pl
  • cmd.exe /C perl c:\"program files"\BMTM\perlscript.pl

Examples that work on UNIX:

  • ksh /InstallDir/script.sh
  • ksh perl /InstallDir/perlscript.pl
  • sh /InstallDir/script.sh
  • sh perl /InstallDir/perlscript.pl

Use a shell available on the operating system. The script must be executable. Depending on the operating system, you might need to call the shell differently than the examples shown. See the system administrator or operating system documentation, if necessary.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*