Support Tip: UCMDB - SMAX - How to add a DATE/TIME related attribute from UCMDB to SMAX

0 Likes

Environment

Service Anywhere Push Adapter  (now known as   SMA-X Push Adapter in later versions)

Situation


When applying the advice in this link here : 

https://docs.microfocus.com/itom/Universal_Discovery_Content_Pack:2020.11/SAWAddMapping

a customer created  a mapping for a new UCMDB CI type of LastLogonTime (shown below) :which looks like this:

<target_mapping datatype="DATE" name="LastLogonTime_c"value="Root['b_last_logon_time']"/>

And when a push is attempted to the SMAX data (shown below) , the following error was thrown:

[AdHoc:AD_HOC_TASK_PATTERN_ID-37-1634907511955] (DataAdapterLoggerImpl.java:88) - >> Failed executing value [MaasPushFunctions.convertDate(Root['b_last_logon_time'])] of mapping <target_mapping name="LastLogonTime_c"> <target_ci_type name="Device"> , Root cmdbId [4eb6ae673099bd979543624243fa92a5]

Resolution

 In the OOTB MaasPushFunctions.groovy file, there is a function called dateToLong().

The resolution was to add this mapping:

<target_mapping datatype="LONG" name="LastLogonTime_c" value="MaasPushFunctions.dateToLong(Root['b_last_logon_time'])"/>

To the

MANUAL_<TENANTID>_pushMappingMaaSNode.xml file.

You can also read the full support tip here.

Tags:

Labels:

Support Tip
Comment List
Anonymous
Related Discussions
Recommended