Do you have feedback on our new interface?
Do you have feedback on our new interface? Let us know HERE
Respected Contributor.. Frank_Gallagher Respected Contributor..
Respected Contributor..
160 views

OMI Policy Last Run Value

Jump to solution

Hi,

i 've created a lot of policy, but i wan't to see if they run, give a correct value, or if they work.

Where i can find the last run and last value of policy in OMi?

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: OMI Policy Last Run Value

Jump to solution

Depending on the policy type there can be logging options or you could add your own logging statements into monitor scripts.

But in any way you can enable an agent trace and grep for the policy name or other useful patterns.

Enable OA trace remotely:

/opt/OV/bin/ovconfpar -src-ovrg server -change -ns eaagt -set OPC_TRACE TRUE -set OPC_TRACE_AREA ALL,DEBUG -set OPC_DBG_EXCLUDE_AREA MUX -set OPC_DBG_PROCS ALL -set OPC_TRC_PROCS ALL -set OPC_TRACE_TRUNC FALSE -host <node>

Stop OA trace remotely:

/opt/OV/bin/ovconfpar -src-ovrg server -change -ns eaagt -clear OPC_TRACE -clear OPC_TRACE_AREA -clear OPC_DBG_EXCLUDE_AREA -clear OPC_DBG_PROCS -clear OPC_TRC_PROCS -clear OPC_TRACE_TRUNC -host <node>

Download trace file:

/opt/OV/bin/ovdeploy -ovrg server -down -file "OpC/trace" -sourcerootdir datatmp -targetdir $PWD -perm 644 -host <node>

Note: Do not forget to stop trace in time, the trace file grows indefinitely.

0 Likes
2 Replies
Mario Morelli Acclaimed Contributor.
Acclaimed Contributor.

Re: OMI Policy Last Run Value

Jump to solution

Hi there

On node where policy is deployed you can use the "ovcodautil"

Run from commandline

ovcodautil -showds (To get where your policy data is stored)

then do

ovcodautil -dumpds <datasourcename>

 

Should show you what is being stored

 

Hope this is what you were after

Ciao

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: OMI Policy Last Run Value

Jump to solution

Depending on the policy type there can be logging options or you could add your own logging statements into monitor scripts.

But in any way you can enable an agent trace and grep for the policy name or other useful patterns.

Enable OA trace remotely:

/opt/OV/bin/ovconfpar -src-ovrg server -change -ns eaagt -set OPC_TRACE TRUE -set OPC_TRACE_AREA ALL,DEBUG -set OPC_DBG_EXCLUDE_AREA MUX -set OPC_DBG_PROCS ALL -set OPC_TRC_PROCS ALL -set OPC_TRACE_TRUNC FALSE -host <node>

Stop OA trace remotely:

/opt/OV/bin/ovconfpar -src-ovrg server -change -ns eaagt -clear OPC_TRACE -clear OPC_TRACE_AREA -clear OPC_DBG_EXCLUDE_AREA -clear OPC_DBG_PROCS -clear OPC_TRC_PROCS -clear OPC_TRACE_TRUNC -host <node>

Download trace file:

/opt/OV/bin/ovdeploy -ovrg server -down -file "OpC/trace" -sourcerootdir datatmp -targetdir $PWD -perm 644 -host <node>

Note: Do not forget to stop trace in time, the trace file grows indefinitely.

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.