ViPR SRM/Watch4Net: Unable to use REST-API services


   Article Number:     504150                                   Article Version: 2     Article Type:    Break Fix 




ViPR SRM,Watch4net





ViPR SRM/Watch4Net: Unable to use REST-API services    
    From the Frontend host get the following outputs:   
    in the URL below replace the frontend host with the details of the frontend hostname/ip   
    frontendhost:~ # curl --header "Authorization: Basic YWRtaW46Y2hhbmdlbWU=" "http://frontendhost:58080/APG-REST/metrics/properties/values/device"   
    frontendhost:~ #   
    the above output will indicate rest module is working fine but not fetching any data    
    frontendhost:~ # cd /opt/APG/bin   
    frontendhost:/opt/APG/bin # ./ list   
    frontendhost:/opt/APG/bin # ./ get "rest/EVENTS"   
    "type": "events",   
    "endpoint": "/events",   






APG-REST.xml file located on the Frontend Host within /opt/APG/Web-Servers/Tomcat/Default/conf/Catalina/localhost missing the resource links                                                           






Copy all the resource link information from APG.xml to APG-REST.xml file located on the Frontend Host within /opt/APG/Web-Servers/Tomcat/Default/conf/Catalina/localhost   
    Restart Tomcat service on Frontend Host   
    cd /opt/APG/bin ./ service restart tomcat