The Spectrum Report Manager (SRM) scripts located in the $SPECROOT/Install-Tools/SRM-Tools directory fail to run in Spectrum 10.4.1. The following error is seen when trying to run the poll_devices.sh, reconcile_reporting_db.sh and poll_landscape_for_events.sh scripts:
[spectrum@spectrum SRM-Tools]$ ./poll_device.sh -s spectrum -p 8080 -u spectrum -w spectrum -m 0x100006d
Polling device "0x100006d" using SRM server at "spectrum:8080"
log4j:WARN No appenders could be found for logger (org.springframework.aop.
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.springframework.remoting.
at org.springframework.remoting.
at org.springframework.remoting.
at org.springframework.aop.
at org.springframework.aop.
at com.sun.proxy.$Proxy0.
at com.aprisma.spectrum.app.
at com.aprisma.spectrum.app.
Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.
at org.apache.http.impl.auth.
at org.apache.http.impl.auth.
at org.apache.http.impl.auth.
at org.apache.http.auth.
at org.apache.http.auth.
at org.apache.http.impl.client.
at org.apache.http.impl.client.
at org.apache.http.impl.auth.
at org.apache.http.impl.client.
at org.apache.http.impl.client.
at org.apache.http.impl.client.
at org.apache.http.impl.client.
at org.apache.http.impl.client.
at org.apache.http.impl.client.
at org.apache.http.impl.client.
at org.springframework.remoting.
at org.springframework.remoting.
at org.springframework.remoting.
at org.springframework.remoting.
at org.springframework.remoting.
at org.springframework.remoting.
... 5 more
ERROR - Error occurred while polling device
Spectrum version 10.4.1
Edit the $SPECROOT/Install-Tools/SRM-Tools/common.sh file.
Look for the line that reads as follows:
CLASSPATH="$FILE_SEP${COMMON_JARS}/httpclient-4.3.5.jar$FILE_SEP${COMMON_JARS}/httpcore-4.3.2.jar$FILE_SEP${COMMON_JARS}/commons-codec-1.10.jar$FILE_SEP$CLASSPATH"
Change the above line to read as follows:
CLASSPATH="$FILE_SEP${COMMON_JARS}/httpclient-4.3.5.jar$FILE_SEP${COMMON_JARS}/httpcore-4.3.2.jar$FILE_SEP${COMMON_JARS}/commons-codec-1.11.jar$FILE_SEP$CLASSPATH"