I am transferring custom metric families and vendor certifications from an old system to my new environment using rest.
After importing the files, we are unable to see any VC’s under the MF in the console.
Release : 3.x
Component : IM Reporting / Admin / Configuration
The MF FacetType name value must be the same in the VC ExpressionGroup destCert value.
Each VC has 3 parts and they must be loaded in this exact order:
The metric family has a reference to what components if uses:
<ComponentFacets>
<Facet>{http://im.ca.com/inventory}YOUR_CUSTOM_NAME</Facet>
</ComponentFacets>
A custom MF can use both custom and OOTB components
……………
The vendor cert has a reference to what MF it is linked to:
<ExpressionGroup destCert="{http://im.ca.com/normalizer}YOUR_CUSTOM_NAME" name=" YOUR_CUSTOM_NAME ">
You get this from the MF:
<FacetType name="YOUR_CUSTOM_NAME" descriptorClass="com.ca.im.core.datamodel.certs.NormalizedFacetDescriptorImpl">
………….
You can use rest to copy the old certs from the old system.
You need the internal name to pull them.
Then you can just do a GET to:
http://DA:8581/typecatalog/components/internal-name
http://DA:8581/typecatalog/certifications/snmp/internal-name
http://DA:8581/typecatalog/metricfamilies/internal-name
……
Then you can post them to the new system:
If they are new use POST
If you are editing them once loaded, use PUT
You would only post them to the main tree, and it adds the name:
http://DA:8581/typecatalog/components/
http://DA:8581/typecatalog/certifications/snmp/
http://DA:8581/typecatalog/metricfamilies/
………..
Then they should be available in the new console with the correct VC listed under the desired MF.