Update Spectrum Events and Alarm Files via curl command does not work on 21.2.8
search cancel

Update Spectrum Events and Alarm Files via curl command does not work on 21.2.8

book

Article ID: 238880

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

With 21.2.6 we could Reload Events and Alarm files via curl command but in version 21.2.8 we get an error !

 

Our command was:

curl -1 --cacert /opt/Spectrum/custom/keystore/cacerts -u localhost:blabla --insecure --tlsv1 --max-time 5 -v -X GET "https://spmlseu:8443/spectrum/admin/ecds.jsp?reload=blabla"

Now we get the follow error:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Error</title>
        <link href="/spectrum/console/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <style>
        *{margin:0;padding:0}
        html{font:15px/24px arial,sans-serif;background:#fff;color:#3272D9;padding:15px}
        p{overflow:hidden}
        ins{display:inline-block;text-decoration:none;font:22px/22px arial,sans-serif;font-weight:600; margin-bottom:22px;}
        #logo{background:url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21 6V19C22.1046 19 23 18.1046 23 17V6C23 4.89543 22.1046 4 21 4H3C1.89543 4 1 4.89543 1 6V17C1 18.1046 1.89543 19 3 19V6H21ZM19 21V20C19 19.1716 17.9534 18 17.125 18H6.875C6.04657 18 5 19.1716 5 20V21H19Z' fill='%233272D9'/%3E%3Ccircle cx='8' cy='10' r='1' fill='%233272D9'/%3E%3Ccircle cx='16' cy='10' r='1' fill='%233272D9'/%3E%3Cpath d='M6.5 16C6.5 16 8.46429 14 12 14C15.5357 14 17.5 16 17.5 16' stroke='%233272D9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
        #logo{background-repeat:no-repeat; background-size: 62px 64px; background-position: 0 0; margin-left:-2px}
        #logo{display:inline-block;height:64px;width:64px; margin-bottom:12px;}
    </style>
</head>
<body>

<table style="width:100%;height:100%">
    <td style="width:40%"> </td>
    <td valign="middle" style="height:90vh;min-width:300px;">
        <span id=logo aria-label='HTTP Error'></span>
        <p><ins>This page isn't working.</ins></p>
        <p><b>500.</b> That's an error.</p>
                <p>Please check the logs for more details.</p>
                <a href="/spectrum" class="btn btn-outline-secondary">Go Home</a>
    </td>
    <td width="40%"> </td>
</table>
</body>
* Closing connection 0
</html>

 

Environment

Release : 21.2

Component :

Resolution

I ran this alternative command successfully on 21.2.8 with https as follows:

[spectrum@muntest000896 ~]$     /usr/bin/curl -u spectrum:spectrum http://localhost:8080/spectrum/restful/action/0x100a2?mh=0x7000000
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><action-response xmlns="http://www.ca.com/spectrum/restful/schema/response" error="Success"/>