UTABLE LNTBL 300 LVTBL 2500 O MONDATA * Sirius Software / Janus Web demonstration program * This routine uses data collected by the SirMon background monitor to present * web-based reports in a variety of formats. Users may select from the * available sample sets, requesting reports in html, xls or graphical format. * The xls output is in a special version of XML, supported by Microsoft Excel * as a native spreadsheet format. The graphical presentation is in VML, which * is only supported by Internet Explorer 5.5 and above. * Note that this code is in mixed-case, which is made possible via the Sirius * mods, when the "BEGIN" statement is specified in mixed or lower-case. Begin %action Is String Len 10 %cr Is String Len 2 %interval Is String Len 20 %html Is String Len 255 %junk Is String Len 20 dp 0 %name Is String Len 32 %sample Is String Len 20 %stat is String Len 12 array(100) %start Is String Len 20 %tab Is String Len 2 %values Is String Len 20 %headstyle Is LongString %output Is LongString %u Is Float %q Is Float %x Is Float %y Is Float %z is Float Call $web_flush Call $web_expire($web_date - 1) Call $web_response('pragma', 'no-cache') Call $web_type('text/html') %html = '' %action = $upcase($Web_Parm('a')) %sample = $Web_Parm('s') %tab = $x2c('05') %cr = $x2c('25') If %action eq 'V' then Call ViewSample ElseIf %action eq 'XLS' Then Call ExcelExtract ElseIf %action eq 'XML' Then Call XMLExtract ElseIf %action eq 'G' Then if $Web_Parm('GO') eq 'Graph' then Call GraphIt else Call StatTable end if ElseIf %action eq 'D' Then Call DeleteSample Else Call ListSample End If Stop * End Mainline * * ------------------ * * Begin Subroutines * * ------------------------------------------------------------ * * List the samples currently in the database * ------------------------------------------------------------ * ListSample: Subroutine Call Header Html
| Performance samples available in {$VIEW('JOBNM')} | |||
|---|---|---|---|
| Extract | Analyze | Maintain | Sample Details |
| Excel XML | Graphs | Delete | {$Sir_Ns2Date(SAMPLE,'MM/DD/YY HH:MI:SS')} @ {value in ndi} Secs. / ({count in ctc} records in set) |
SirMon Capture Features |
|||
|
This page is a demonstration of how the historical data, captured by SirMon can be displayed and manipulated. The graphs in this demo are generated using Vector Markup Language (VML), which is supported by Microsoft Internet Explorer, verion 5.5 and later. VML allows very precise line drawing and is an excellent, lightweight approach to client-side graphing, for shops that have standardized on IE. To see the graphs, click on the "Graph" link for a particular SirMon sample, then select the statistics you'd like to see graphed. The code for downloading the data into Excel and XML, and the code for deleting entries, has been disabled in this demo version. You can easily re-enable these features in the downloadable version. SirMon stores the captured data in file MONDATA -- an optional file in version 6.2 and later (6.5 and later of the Sirius Mods). The command that initiates the capture is SIRMON CAPTURE xxxx yyyyWhere xxxx is the number of seconds between sampling intervals, and yyyy is the number of intervals to capture. For instance, SIRMON CAPTURE 120 300Would capture a sample every 2 minutes (120 seconds) for 10 hours. Note that the SIRMON CAPTURE command runs in the thread that executes it, so if it's run on a terminal it will lock up the terminal. The suggested method of running the CAPTURE utility is to submit it to a background sdaemon like this: Each captured sample saves the stats displayed on the SirMon System Overview Screen (SIRMON 1). Each sample set is saved with a header record that shows the sample initiation time. |
|||
| {%name} on {$view('JOBNM')} From: {$Sir_Ns2Date(%start,'MM/DD/YY HH:MI:SS')} To: {$Sir_Ns2Date(%start+(%interval * %q),'MM/DD/YY HH:MI:SS')} at {INTERVAL} second intervals | |||||
|
| Start Time: {$Sir_Ns2Date(%start,'MM/DD/YY HH:MI:SS')} End Time: {$Sir_Ns2Date(%start+(%interval * %q),'MM/DD/YY HH:MI:SS')} Sample Interval: {INTERVAL} second | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {%name} | fdfxtstat: in MONDATA fd TYPE = 'S' and SAMPLE = %sample end find fr fdfxtstat Html Data{STAT(%y)} | end for release records in fdfx Html Data|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||