Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..
86 views

Automation Wrapper: opcmsg for perl?

Hello Support,

 

I am intrested in using the Automation Wrapper: opcmsg in  a perl code but in OMW help and examples it is explained only for vbscript.

 

is it not possible to use in a perl script?

 

-KAKA-

0 Likes
3 Replies
Highlighted
New Member.

Re: Automation Wrapper: opcmsg for perl?

Hi Kaka

 

Not sure if I understood your question right

I believe you can use system() api in PERL as we do in see and execute the opcmsg command

http://perldoc.perl.org/functions/system.html

 

 

Thanks

Sandeep

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Automation Wrapper: opcmsg for perl?

Hello Sandeep,

 

Thank You for your response.

 

system() api can be used to run any commnd and so opcmsg too but if you check the OMW help example shown below:

 

Dim msgObj
Set msgObj = CreateObject("OVOAutomation.Opcmsg")
msgObj.MessageText = "My automated message"
msgObj.Application = "My automated application"
msgObj.MessageGroup = "My Message Group"
msgObj.Object = "My Object"
msgObj.Nodename = "HOSTNAME"
msgObj.Severity = "warning"
msgObj.ServiceName = "My Service"
OptVar = "VariableName=VariableText"
OptVar = "CMA1=myCmaOne CMA2=myCmaTwo CMA3=myCmaThree"
msgObj.Send()

 

and this is in vbscript.

 

I am looking smilar for perl script.

 

-KAKA-

0 Likes
Highlighted
Account_Closed
Not applicable

Re: Automation Wrapper: opcmsg for perl?

KAKA,the closest i have seen to this is in the perl $Policy object.

it does support a $Policy->MsgSeverity method wherein you can set the severity for the outgoing alert.

i need to check with the engineers to see if there are other methods exposed.

 

thank you.

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.