Import the Customized Policy from OperationsConnector to OBM
As part of new release OBM 2020.05,Connector Policies are being maintained by the OBM itself.In order to achieve this functionality
Already I have the customized policy for SCOM is inplace with Operations Connector .Post this OBM upgrade ,I am planning to migrate the policy from Operations Connector to the OBM policy management since Ops connector UI will not work with Flash
1)Do I need to create the policy manually in OBM and deploy them on the Operations Connector server?
2)Can I import the customized policy which is already in place with Operations Connector to OBM?
3)Or Do I need to deploy the Content pack policy which is available with SCOM Content pack on OBM? and to which I need to customize the policy again?
Please find the versions of the products as below:
Operations Connector version :2019.05
OBM :2020.05 Classic Deployment
Thats not that big thing. there are a few ways to do this.
for me the easiest one is to grap the policy files itself from the Agent. These are under /var/opt/OV/datafiles/polices/TYPE_OF_POLICY on Windows this should be %%OVDATADIR%\datafiles\policies.
Use an Editor to find the correct files you need. The xml files are not needed:
[root@omi-lin1 OpC]# ls -l /var/opt/OV/datafiles/policies
drwxrwxr-x. 2 root root 4096 Jun 21 14:13 configfile
drwxrwxr-x. 2 root root 4096 Jun 21 14:13 configfiletmpl
drwxrwxr-x. 2 root root 4096 May 27 22:49 configsettings
drwxrwxr-x. 2 root root 4096 Jun 21 13:52 le
drwxrwxr-x. 2 root root 4096 Jun 21 13:52 letmpl
drwxrwxr-x. 2 root root 4096 Jun 21 13:52 metricstruct
drwxrwxr-x. 2 root root 8192 Jun 19 16:13 monitor
drwxrwxr-x. 2 root root 8192 Jun 19 16:13 monitortmpl
drwxrwxr-x. 2 root root 4096 May 27 15:23 msgi
drwxrwxr-x. 2 root root 4096 Jun 21 14:34 sched
drwxrwxr-x. 2 root root 4096 Jun 21 14:34 schedtmpl
drwxrwxr-x. 2 root root 4096 Jun 19 16:13 svcdisc
drwxrwxr-x. 2 root root 4096 Jun 19 16:13 svcdisctmpl
drwxrwxr-x. 2 root root 4096 May 15 22:39 trapi
The Policyfiles look like this:
copy them to a n empty folder on the OBM server then run the ConfigExchange tool to upload them to OBM.
ConfigExchange.sh -ex shows me this:
Upload OMW|U policies + instrumentation from directory /tmp/myOMDownload:
ConfigExchange.sh -username user -password passwd -uploadOM -input
another way is to select the BSMC node in OBM an leftclick -> Syncronice packages. Will upload the policies to OBM. But here is a pitfall, too. Didnt woked for me with older versions of OBM. Polices of BSMC were created but empty. size zero. not deployable.
so be carefull!