Update Spectrum Event and Alarm Files via wget not working
search cancel

Update Spectrum Event and Alarm Files via wget not working

book

Article ID: 279009

calendar_today

Updated On:

Products

DX NetOps CA Spectrum

Issue/Introduction

the method to update the OneClick EvFormat / Probcause files via command line does not work as described in the kb article or the documentation:

https://knowledge.broadcom.com/external/article/9994/update-spectrum-event-and-alarm-files-vi.html /

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/23-3/administrating/oneclick-administration/oneclick-administration-pages.html#concept.dita_99bd4cd8af497f4501d74d0457df4a5fc66ed4b4_ReloadEvFormatPCauseConfiguration).



A tcpdump shows that Spectrum returns the login screen when issuing the command

wget http://<OC_host>:8080/spectrum/admin/ecds.jsp?reload=Reload --user <user> --password <password>
--2024-01-16 13:42:27--  http://<OC_host>:8080/spectrum/admin/ecds.jsp?reload=Reload
Resolving <OC_host>(<OC_host>)... IPv4, IPv6
Connecting to <OC_host> (<OC_host>)|IPv4|:8080... connected.
HTTP request sent, awaiting response... 200
Length: 2251 (2.2K) [text/html]
Saving to: ‘ecds.jsp?reload=Reload.1’

100%[=========================================================================================================================================================>] 2,251       --.-K/s   in 0s

What is the correct way to update the EvFormat / PCause files without having to use the GUI button?

Environment

Spectrum 23.3.1-23.3.6

Cause

DE589489

Resolution

  1. Modify the <SPEC_INSTAL>/Spectrum\tomcat\webapps\spectrum\WEB-INF\web.xml

    Find the 

    <filter-mapping xmlns="">
        <filter-name>struts2</filter-name>
        <url-pattern>/topo/modelrep</url-pattern>
      </filter-mapping>

    and ADD the following just after above:

    <filter-mapping xmlns="">
        <filter-name>struts2</filter-name>
        <url-pattern>/admin/ecds.jsp</url-pattern>
      </filter-mapping>

  2. Restart Tomcat