Service Operations Insight

 View Only
  • 1.  Policy Change Shows Field Name Instead of Value?

    Posted May 04, 2017 08:16 AM

    We modified the UIM connector policy to change the value of the Label shown for the Database class.

     

    We added this line in the Parse section to parse out a short name:
         <Field input='DatabaseName' pattern='.*\.(.*?)' output='shortDBname' />
    and this line in Format2 to use the short name in the Label
         <Field input='DeviceDnsName,shortDBname' output='Label' format='Database:{0}:{1}' />

     

    Instead of seeing Label set to the value of shortDBname, it is getting set to the literal string "shortDBname",
    so the entries look like
         Database:usdbserver1.north.ourdomain.net:shortDBname

     

    Any idea what's wrong?



  • 2.  Re: Policy Change Shows Field Name Instead of Value?

    Posted May 04, 2017 08:36 AM

    Hi Brian,

     

    when a variable contains it's own value, this means it is not set anywhere.

    Thus, your Parse does not seem to work.

    Can you give an example of the DatabaseName to see what the regular expression ".*\.(.*?)"  is supposed to extract.

     

    MichaelBoehm



  • 3.  Re: Policy Change Shows Field Name Instead of Value?

    Posted May 04, 2017 09:07 AM

    Thanks Michael – Now that I know why this is happening, I can fix it… but I’ll need to turn on the raw debug to see the values I’m trying to manipulate – unless these are visible somewhere else.



  • 4.  Re: Policy Change Shows Field Name Instead of Value?
    Best Answer

    Posted May 04, 2017 09:17 AM

    Hi Brian,

    you don't have to activate debug.

    You can also map DatabaseName to one of the UserAttributes in the policy to see the value.

     

    MichaelBoehm