vrops topology enrich node information

Dears

we have ucmdb 2022.11 and we  run successfully the Vmware Vrops topology by Webservice job

data created successfully on Ucmdb

we need now to enrich data in node level (windows and linux)

we create 2 fields in Vrops , Group owner and contact owner and we need to send this information to ucmdb 

any one can help me to know how to do it

Best Regards;

  • 0  

    We need to edit the script and do the changes. if your field is at every VM, then we should be editing the create_vm_osh function.

    But for sure needs to edit scripts and populate in host CIT

    BRK

  • 0 in reply to   

    thank you Kumar

    yes the 2 fields created on each VM

    SO i should edit Vmware_vrops_topology.py Go on 

    def create_vm_osh(oshv_handler, input_hypervisor_osh, virtual_machine, virtual_machine_properties, vrops_editon='', and add my new mapping vrops field name 1 = ucmdb field name 

    right ?

    it will be like belolw

    elif vm_property.get('name') == 'GroupOwner':
    host_resource_properties.update({"Group": vm_property['value']})

    where "GroupOwner" is the field name in vrops and Group is the name in Ucmdb

    and also i should add in the end of the function as below 

    host_resource_osh = host_resource.update_osh_attributes(host_resource_properties.get('vm_num_cpus'),
    host_resource_properties.get('vm_memory_size_kb'),
    host_resource_properties.get('vm_cpu_reservation'),
    host_resource_properties.get('vm_cpu_limit'),
    host_resource_properties.get('vm_memory_reservation'),
    host_resource_properties.get('vm_memory_limit')

    host_resource_properties.get('group'))

  • Suggested Answer

    0   in reply to 

    yes.. Exactly this way.

    I dont see any other way to do that. This is the best approach.

    BRK