Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
StuffedBuffalo Frequent Contributor.
Frequent Contributor.
104 views

Ignore Serial Number update unless the CI is Virtual

Hi,

I am trying to ignore updates to serial numbers, unless the CI is virtual. My code is below, but it won't work for some reason. We're running UD 10.22 and HPAM 9.40 with the AM Push Adapter.

<attribute-reconciliation attribute-name="SerialNo" update-script="$iIsComputerAVM ? vNewVal : vOldVal"/>

I get the following error message.

Failed pushing to Asset Manager:
Failed executing Reconciliation Update Script [$iIsComputerAVM ? vNewVal : vOldVal], vNewVal [32M2XL1], vOldVal [32M2XL1]

com.hp.ucmdb.adapters.ampush.exception.AMPushDataException: Failed executing Reconciliation Update Script [$iIsComputerAVM ? vNewVal : vOldVal], vNewVal [32M2XL1], vOldVal [32M2XL1]

com.hp.ucmdb.adapters.ampush.exception.AMPushDataException: Failed executing Reconciliation Update Script [$iIsComputerAVM ? vNewVal : vOldVal], vNewVal [32M2XL1], vOldVal [32M2XL1]

Any help would be greatly appreciated.

Thank you

 

0 Likes
2 Replies
Outstanding Contributor.. Melissa_C_UCMDB Outstanding Contributor..
Outstanding Contributor..

Re: Ignore Serial Number update unless the CI is Virtual

Hello ,

I suggest to create a ticket support to work in this specific request .

 

Best Regards,

Melissa Carranza Mejias
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation. “
0 Likes
Honored Contributor.. Josh_MM Honored Contributor..
Honored Contributor..

Re: Ignore Serial Number update unless the CI is Virtual

$iIsComputerAVM is probably a malformed variable. Try using something like:
update-script="iIsComputerAVM ? vNewVal : vOldVal"

The ${var} is used within reconciliation-adavanced tags.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.