CA Service Management

  • 1.  Unable to cretae CMDB with Proc_type

    Posted May 03, 2017 07:00 AM

    Hi Team,

    I'm trying to create the CI using the attributes name, system_name, prco_type, virtual_processors  .. etc. But I was getting the below error if I use proc_type.

     

    Error setting attr 'proc_type' on object 'nr:8FFED66CD77777489A12A3E2BBED7268' to value 'Test Proc' AHD03066:Unknown name proc_type.

     

    If I removed the proc_type and virtual_processors, I was able to create the with name and systemname.

     

    Can you please help me how to populate these attributes as well.

     

    By the way I'm using below line of code.

     

    attrVal1.setString(new String[] { "name", "CITestwithAttr3", "class",

    "grc:1000157", "system_name", "CITestwithAttr3",

    "asset_count", "1", "description",

    "Test desc", "alarm_id", "780.208.09.93",

    "zComplianceType", "10001",

    "zenvironment", "Test","zPriority", "NO", "proc_type", "VirtualCPU",

    "virtual_processors", "4"});

     

    usd.createAsset(sid, attrVal1, attr1, createAssetResult, newAssetHandle, newExtensionHandle, newExtensionName);



  • 2.  Re: Unable to cretae CMDB with Proc_type

    Posted May 03, 2017 08:23 AM

    Hi,

    You will need to verify that the proc_type attribute is available for your referenced class/family like "Hardware.Server" as this attribute is not part of the common attributes.

    /J



  • 3.  Re: Unable to cretae CMDB with Proc_type

    Posted May 03, 2017 08:29 AM

    also looking to you class id this look like this is a one you created(not OOB)  therefore you rely on the family under where you created this class.

    /J



  • 4.  Re: Unable to cretae CMDB with Proc_type

    Posted May 03, 2017 09:05 AM

    This is family of Hardware.virtualmachine. and when I try to create cmdb with family I'm getting below error.

     

    Error setting attr 'family' on object 'nr:26010BA2C264444D820D929AFC020C12' to value '300003' AHD05206:Not allowed to modify this field.

     

    attrVal1.setString(new String[] { "name", "CITestwithAttr36", "class",

    "grc:1000157", "family", "300003", "system_name", "CITestwithAttr36",

    "asset_count", "1", "description",

    "test dec});

    usd.createAsset(sid, attrVal1, attr1, createAssetResult, newAssetHandle, newExtensionHandle, newExtensionName);

     

    Can you please help me on this how to provide family attribute as well.



  • 5.  Re: Unable to cretae CMDB with Proc_type
    Best Answer

    Posted May 03, 2017 09:36 AM

    in fact you can't specify/modify family there.

    That say proc_type seems to be a valid attribute for this family (har_virx)

    so don't see why you get your initial error

    /J