Service Operations Insight

 View Only
  • 1.  Example of mapping a property to the CI UserAttribute#

    Posted Aug 31, 2015 06:17 PM

    I just searched for this but nothing came up which I found surprising.

    Does anyone give an example of how you map a property to one of the CI User Attribute #'s for a CI.

    I did this for the "Alert" section in each connector property but I never mapped to a CI UserAttribute #.

     

    Would it be:

    <Field conditional="USER_AssetOrganization" output="CIuserAttribute1" format="{0}" input="USER_AssetOrganization"/>


    Thank you,


    Dan




  • 2.  Re: Example of mapping a property to the CI UserAttribute#
    Best Answer

    Broadcom Employee
    Posted Sep 01, 2015 04:30 AM

    Hello Dan,

     

    Yes, that's correct. But this has to be added to <Format> section of a CI Event Class.

     

    Ex:

    <EventClass name="ComputerSystem" extends="GenericIPDevice">

       <Format>

          <Field conditional="PrincipalName" output="CIuserAttribute1" format="{0}" input="PrincipalName" />

       </Format>

    </EventClass>

     

    Hope this helps.

     

    Thanks

    Brahma



  • 3.  Re: Example of mapping a property to the CI UserAttribute#

    Posted Jan 12, 2016 11:04 PM

    This still didn't work and drove me crazy trying to figure it out then saw it.

    You have " " quotes around ="var". You must specify ' ' single quotes. 

     

          <!-- Computer System CI -->

          <EventClass name="ComputerSystem" extends="Item">

                <Normalize>     

                      <Field input='os_type,os_name' type='map' output='PrimaryOSType' >

                             ...

                      </Field>

                </Normalize>

                <Format>

                        ...

                   <Field conditional='origin' output='TenantID' format='{0}' input='origin' />

                   <Field conditional='origin' output='CIuserAttribute1' format='{0}' input='origin' />

                </Format>



  • 4.  Re: Example of mapping a property to the CI UserAttribute#

    Posted Jan 13, 2016 04:33 AM

    Hi Daniel,

     

    I just did several tests on my machine, using Double-Quotes ".

    Everything works fine using them.

    Do you have a copy of the policy that did not work previously?

    Possibly there are other problems in it.

     

    To come back to your original post:

    The attributes  "CIuserAttributeX" are only valid in the context of a CI.  They cannot be set when processing an Alert.

    Alerts have similar attributes, named "userAttributeX".

     

    You can also reach out to me directly in case of further questions: Michael.Boehm@ca.com

     

    MichaelBoehm