Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Admiral
Admiral
329 views

Changing the message text of an alert from the command line

Jump to solution

Hi,

 

I know you can modify the CA of a message from the command line with the "opccmachg" command.  Does anyone know if you can modify the actual message text of an alert from the command line?

 

Thanks in advance.

 

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Hello Mike,

Since OM patch level 9.10.240 (and 9.20 already with release), the following utility is included that allows to change message text and severity:

# /opt/OV/bin/OpC/utils/opcmsgchg -h
Usage:
opcmsgchg [-h] [-V]
opcmsgchg [-v] [-n] -i msg-ID [-s severity] [-t text] [-p prepend] [-a append]

  -h            show this help screen
  -V            show version
  -v            verbose mode
  -n            do not own the message
  -s severity   set message severity (case insensitive). Possible values:
                normal, warning, minor, major, critical, unknown
  -t text       set message text (ignores prepend and append parameters)
  -p prepend    prepend text to message text
  -a append     append text to message text

 

Best regards,
Tobias

View solution in original post

2 Replies
Micro Focus Expert
Micro Focus Expert

Hello Mike,

Since OM patch level 9.10.240 (and 9.20 already with release), the following utility is included that allows to change message text and severity:

# /opt/OV/bin/OpC/utils/opcmsgchg -h
Usage:
opcmsgchg [-h] [-V]
opcmsgchg [-v] [-n] -i msg-ID [-s severity] [-t text] [-p prepend] [-a append]

  -h            show this help screen
  -V            show version
  -v            verbose mode
  -n            do not own the message
  -s severity   set message severity (case insensitive). Possible values:
                normal, warning, minor, major, critical, unknown
  -t text       set message text (ignores prepend and append parameters)
  -p prepend    prepend text to message text
  -a append     append text to message text

 

Best regards,
Tobias

View solution in original post

Admiral
Admiral

Hi,

 

Thank you so much for the reply!

 

Brilliant.....

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.