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.
Absent Member.
Absent Member.
1393 views

OML 9 pre_action, post_action auto granting certs issue

Jump to solution

I am relatively new to OML and am trying to incorporate automation into my environment.  My primary goals are auto granting certificates, assigning nodes to node groups, and deploying policies associated with the node groups.  I posted a similar question the other day and was fortunately pointed towards a document called "OMU agents using clone images".  This document is helpful, but I am having issues getting the pre and post actions working when the cert is granted.  I am able to get both scripts to run but the commands I have inserted into the post action script don't do what's expected.

 

These are the relevant commands in the post action script:

/opt/OV/bin/OpC/utils/opcnode -assign_node group_name=mygroup node_name=<Nodename> net_type=NETWORK_IP

/opt/OV/bin/OpC/opcragt -distrib <Nodename>

 

These commands should add ny node to my group and deploy the policies associated with it.  The info in the system.txt log was not helpful to me, but I have attached it in case it helps.

 

Thanks for your help,

Kris

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Absent Member.
Absent Member.

I resolved my own issue.  As it turns out my shell script was created in a windows machine and not converted to unix before copying to the server.  

View solution in original post

0 Likes
2 Replies
Absent Member.
Absent Member.

Hello.

 

So if I understand correctly, opcnode works, but distributing policies fails.  Is this right?

 

How is node added to the database?

 

Are you sure the certificate is installed on the node?  Verify with (run this on the node in question):

 

ovcert -list

ovcert -check

 

Are all the processes running on the node? There is an error about the certificate request, so verify its details:

 

ovcm -listPending -l

opccsa -list_pending_cr

 

Regards,

Goran

0 Likes
Absent Member.
Absent Member.

I resolved my own issue.  As it turns out my shell script was created in a windows machine and not converted to unix before copying to the server.  

View solution in original post

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.