DX Infrastructure Manager

Expand all | Collapse all

Mapping Script output to an alert with logmon

  • 1.  Mapping Script output to an alert with logmon

    Posted 09-28-2020 11:58 AM

    we have some scripts that execute a query on cmd to check some parameters of TSM Backups; and return an errorlevel 0 if is OK with no text, and a errorlevel 1 with a message of text message when something is wrong with a variable that indicates the description of the exact problem.

    What is the best option to catch the return message? we don't know how to do it with logmon;
    The idea is:

    if errorlevel if 0, all is OK (clean alert)
    if errorlevel if 1 , generate an alert and catch/ show the message of the output script in cmd;

    I dont know how to do this, specially the second part of catch the return message of the script.

    Best regards

  • 2.  RE: Mapping Script output to an alert with logmon

    Broadcom Employee
    Posted 09-28-2020 01:17 PM
    Either way it is your preference. I like to use return code and create my own message personally. Also easier to create a "clear" if necessary. Here is a good doc to explain capabilities.: