Exploiting Web Publishing Technology To Enhance Performance Reporting
Exploiting Web Publishing Technology To Enhance Performance Reporting
Ja v P
ptTO ENHANCE PERFORMANCE REPORTING
EXPLOITING WEB PUBLISHING TECHNOLOGY
le s
tab for
Claude Aron ms
Chevron Information Technology Company
San Ramon, CA
hyp s
s erl me
in k fr a
•1
AGENDA
• Introduction
• Environment
• Using frame-based pages for report retrieval
• Exception reporting with embedded hyperlinks
• Server health reporting using color-coded table cells
• Server configuration reporting with query capability
• Summary
•2
AGENDA
• Introduction
• Environment
• Using frame-based pages for report retrieval
• Exception reporting with embedded hyperlinks
• Server health reporting using color-coded table cells
• Server configuration reporting with query capability
• Summary
•3
Introduction
•4
Introduction
•5
Introduction
• Assumptions:
– You don’t have the luxury of assigning or hiring an experienced
web application developer to design and implement a
performance reporting application
– The volume of your data & capabilities of your
hardware/software preclude dynamic report generation
– You have a basic understanding of programming principles
– You have some experience with SAS programming
– You have some experience with VBScript programming (optional)
•6
AGENDA
• Introduction
• Environment
• Using frame-based pages for report retrieval
• Exception reporting with embedded hyperlinks
• Server health reporting using color-coded table cells
• Server configuration reporting with query capability
• Summary
•7
Environment
•9
Frame-based pages for reports
• The “frame wars” are over
• Frames provide an excellent UI structure for report retrieval
– Form with selection criteria in one frame
– Report output in second frame
– User navigational interaction is kept to a minimum
• Sample frameset syntax:
<frameset rows=“15%,85%”>
<frame src=“xxx.html”>
<frame src=“yyy.html” name=“reportwin”>
</frameset>
• Sample form syntax:
<form method=“POST” action=“zzz.asp” target=“reportwin”
•10
Frame-based pages for reports
• Best practices:
– Establish a strict naming pattern for report files, to minimize
complexity of server scripts. Example:
servertype.servername.reporttype.interval.outputtype
– Use the report output frame to display useful information when the
page is first displayed, e.g. a high-level summary report or a help
page that explains report contents or selection criteria.
– Minimize the screen real estate used by the report selection frame
to maximize the viewing area for reports.
– Include a link to the site home page & to a help page in the report
selection frame.
– If you have multiple report framesets, include links to them in the
report selection frame (use javascript routines to create
dropdowns).
•11
AGENDA
• Introduction
• Environment
• Using frame-based pages for report retrieval
• Exception reporting with embedded hyperlinks
• Server health reporting using color-coded table cells
• Server configuration reporting with query capability
• Summary
•12
Exception reporting / hyperlinks
• Exception Report Design
– Large number of servers in a distributed environment
makes exception reporting imperative.
– Try to design exception reports so that all exceptions
appear on a single web page.
– Highlight exceptions that exceed thresholds (e.g. by
color-coding) so that they stand out clearly.
– Provide hyperlinks to detailed reports that provide
additional data on exceptions (length, severity,
potential causes, etc.)
•13
Exception reporting /hyperlinks
•14
Exception reporting /hyperlinks
• Embedding hyperlinks
– Build SAS variables formatted into html hyperlink syntax.
– Syntax is <a href=URL>text string</a>.
– Set length of SAS variable to a large value (e.g. 90).
– Concatenate literal strings to variables, e.g.:
cellval=“<a href=&pfx..” || trim(servname) || “.” || trim(date) ||
“.gif>” || servname || “</a>”;
– If a SAS macro variable needs to be followed by a period, you need to
insert an extra period, e.g. %pfx..
– Use the SAS trim function to remove trailing blanks.
•15
Exception reporting /hyperlinks
• Highlighting thresholds
– Same method as embedding hyperlinks - build SAS variables that
contain html syntax for specifying color properties.
– Syntax for specifying font color is <font color=colorname>
– Test threshold value when building variables:
if thresh=0 then exval = put(val,7.2);
else exval = “<font color=red>” || put(val, 7.2) || “</font>”;
– The SAS put function formats numeric variables as character
strings.
– If you don’t assign a <font color>, the default font color for that
page is used.
•16
AGENDA
• Introduction
• Environment
• Using frame-based pages for report retrieval
• Exception reporting with embedded hyperlinks
• Server health reporting using color-coded table cells
• Server configuration reporting with query capability
• Summary
•17
Server health reporting
•19
AGENDA
• Introduction
• Environment
• Using frame-based pages for report retrieval
• Exception reporting with embedded hyperlinks
• Server health reporting using color-coded table cells
• Server configuration reporting with query capability
• Summary
•20
Server configuration queries
• Server Configuration Query Design
– Be able to answer questions such as:
• What are the hardware/software configurations of a class of servers?
• Are there any servers that haven’t been upgraded to Service Pack n?
• Which servers are configured with over 1 GB of memory?
– Can use flat file or database table.
– Use form input boxes to allow text or numeric input.
– Pre-fill with values that retrieve all servers IF that’s practical.
– Allow case-insensitive input.
– Disregard leading or trailing blanks.
•21
Server configuration queries
•25
Summary
• Internet publishing of performance data has
some intrinsic advantages.
• With a little thought & effort, it’s possible to
design reports & report interfaces that enhance
the user experience.
• You don’t need to be a professional web
developer - even performance analysts
can do it!
•26