AnsweredAssumed Answered

Automating PDF Report

Question asked by suruchi.sharma on Feb 12, 2014
Latest reply on Jan 28, 2016 by Hiko_Davis

Hi All,

I have created a report in Wily under managament modules and associated certain data metrics and graphs with it. I ran this script :

runDate=`date +"%Y/%m/%d"`
reportDate=`date +"%d-%m-%Y"`
timestamp=`date +"%r"`
 

day=`date +"%Y/%m/%d" | cut -d/ -f3`
 

if [[ $day -lt 32 ]]
then
export X=`date +"%Y/%m/${day}"`
else
export X=`date +"%Y/%m/${day}"`
fi

startDate=`expr $day - 1`
 

if [[ $startDate -lt 32 ]]
then
export Y=`date +"%Y/%m/${startDate}"`
else
export Y=`date +"%Y/%m/${startDate}"`
fi


/root/Introscope9.1.0.2/jre/bin/java -Xmx128M -Djava.awt.headless=true -Duser=XYZ -Dpassword=XYZ -Dhost=HOSTNAME -Dport=PORT NUMBER -jar /root/Introscope9.1.0.2/lib/CLWorkstation.jar generate report named \"Performance Report\" in management module named "management_module" starting at \"${Y} $timestamp\" ending at \"${X} $timestamp\" to /root/Introscope9.1.0.2/Reports/Performance_Report_$reportDate.pdf

 

Through this script, I am able to generate the report in /root/Introscope9.1.0.2/Reports but when I view that PDF file, the graphs and data metrics associated wth it are not displayed.
Can Someone please tell me what I might be missing here.

 

Thanks,

Suruchi

Outcomes