DX Unified Infrastructure Management

 View Only
  • 1.  UIMAPI doesn't write create alarm to UIMAPI log

    Posted Jun 12, 2025 02:51 AM

    when I do a create command using put methods to the uimapi it is not writing the action to the uimapi log under the wasp folder.

    the log is level 5.

    I can see other commands like get alarm or even invisible or visible and even ack command but not the create.

    What may be causing the issue?

    the commands are not very detailed even when the log is level 5.



  • 2.  RE: UIMAPI doesn't write create alarm to UIMAPI log

    Broadcom Employee
    Posted Jun 12, 2025 08:43 AM

    Hi Thierry,

    First make sure you have the correct version of the UIMAPI installed for the version of DX UIM CU you are currently running on your OC.

    On the Operator Console (OC) file system, navigate to:

    C:\Program Files (x86)\Nimsoft\probes\service\wasp\conf\

    Search for and set 'info' to debug in uimapi_log4j2.xml

    Deactivate wasp.

    Wait for port and PID to drop.

    Activate wasp.

    (or you can just stop and start the uimapi webapp using the wasp GUI).

    Best Regards,
    Steve



    ------------------------------
    Steve Danseglio
    Senior Principal Support Engineer (Technical Support Engineer 5)
    Broadcom Software-IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------



  • 3.  RE: UIMAPI doesn't write create alarm to UIMAPI log

    Posted Jun 12, 2025 09:55 AM

    I checked everything the version and performed the steps you shared, still the event of creating alarms using the uimapi is not written to the log.




  • 4.  RE: UIMAPI doesn't write create alarm to UIMAPI log

    Broadcom Employee
    Posted Jun 12, 2025 10:42 AM

    In that case this may be a defect, so please open a support case so we can troubleshoot it, test it and raise a defect to get a fix.

    Thanks,
    Steve



    ------------------------------
    Steve Danseglio
    Senior Principal Support Engineer (Technical Support Engineer 5)
    Broadcom Software-IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------



  • 5.  RE: UIMAPI doesn't write create alarm to UIMAPI log

    Broadcom Employee
    Posted Jun 12, 2025 10:53 AM

    Did you set it in the 2 sections?

    <!-- Logger Levels: all, trace, debug, info, warn, error, fatal, off -->
        <Loggers>
            <Root level="debug" additivity="false">
                <AppenderRef ref="ProbeFile"/>
            </Root>
            <Logger name="com.ca.uimapi" level="debug" additivity="false">
                <AppenderRef ref="ProbeFile"/>
            </Logger>

    etc

    etc



    ------------------------------
    Steve Danseglio
    Senior Principal Support Engineer (Technical Support Engineer 5)
    Broadcom Software-IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------



  • 6.  RE: UIMAPI doesn't write create alarm to UIMAPI log

    Broadcom Employee
    Posted Jun 12, 2025 12:29 PM

    I just tested this in DX UIM 23.4 CU3, after making sure the debug string was entered in the root and logger sections and cycling wasp.

    The uimapi log shows createalarm failures, but does not add an entry into the uimapi.log when the alarm was created successfully. In my test case it generated a 204 code which is a success, not an error.

    You could also use GET alarms for confirmation.

    Steve



    ------------------------------
    Steve Danseglio
    Senior Principal Support Engineer (Technical Support Engineer 5)
    Broadcom Software-IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------



  • 7.  RE: UIMAPI doesn't write create alarm to UIMAPI log

    Broadcom Employee
    Posted Jun 12, 2025 12:32 PM

    One of my comrades was testing this as well - here is an example of the 204 code I mentioned I received:

    2025-06-12 16:21:51.034 [http-nio-80-exec-3]  DEBUG org.springframework.core.log.LogFormatUtils:traceDebug:120 servlet.DispatcherServlet - POST "/uimapi/alarms/create", parameters={}
    2025-06-12 16:21:51.035 [http-nio-80-exec-3]  DEBUG org.springframework.web.servlet.handler.AbstractHandlerMapping:getHandler:523 annotation.RequestMappingHandlerMapping - Mapped to com.ca.uimapi.services.controller.AlarmResource#createAlarm(Alarm)
    2025-06-12 16:21:51.254 [http-nio-80-exec-3]  DEBUG org.springframework.core.log.LogFormatUtils:traceDebug:120 annotation.RequestResponseBodyMethodProcessor - Read "application/json" to [Alarm [id=null, level=5, prevLevel=null, hostname=null, source=null, timeOrigin=null, timeArrival=nu (truncated)...]
    2025-06-12 16:21:51.853 [http-nio-80-exec-3]  DEBUG org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor:writeWithMessageConverters:268 annotation.HttpEntityMethodProcessor - Using 'application/xml', given [application/xml] and supported [application/xml]
    2025-06-12 16:21:51.856 [http-nio-80-exec-3]  DEBUG org.springframework.web.servlet.FrameworkServlet:logResult:1131 servlet.DispatcherServlet - Completed 204 NO_CONTENT



    ------------------------------
    Steve Danseglio
    Senior Principal Support Engineer (Technical Support Engineer 5)
    Broadcom Software-IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------