Products
Applications
Support
Company
How To Buy
Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Register
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Home
Communities
All Communities
Enterprise Software
Mainframe Software
Symantec Enterprise
Blogs
All Blogs
Enterprise Software
Mainframe Software
Symantec Enterprise
Events
All Events
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware
Water Cooler
Groups
Enterprise Software
Mainframe Software
Symantec Enterprise
Members
DX Unified Infrastructure Management
Private Community
View Only
Community Home
Threads
Library
Events
Members
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
Mapping Script output to an alert with logmon
FerranE
Sep 28, 2020 11:58 AM
Hello, we have some scripts that execute a query on cmd to check some parameters of TSM Backups; ...
Gregg Stillwell
Sep 28, 2020 01:17 PM
Either way it is your preference. I like to use return code and create my own message personally. Also ...
1.
Mapping Script output to an alert with logmon
0
Recommend
FerranE
Posted Sep 28, 2020 11:58 AM
Reply
Reply Privately
Options Dropdown
Hello,
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
0
Recommend
Broadcom Employee
Gregg Stillwell
Posted Sep 28, 2020 01:17 PM
Reply
Reply Privately
Options Dropdown
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.:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/logmon-log-monitoring/logmon-hints-and-examples.html
Original Message
Original Message:
Sent: 09-28-2020 11:35 AM
From: FERNANDO ELIAS GARCIA
Subject: Mapping Script output to an alert with logmon
Hello,
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
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Copyright 2019. All rights reserved.
Powered by Higher Logic