NTSMF Web-BasedReporting Techniques
Jim Quigley
conEdison
Performance Reportingwith the MicrosoftOffice Web Components
CMG’93 Sunday Workshops
Agenda SasToOwc.htm
Historical Produce charts from SAS
WmiToOwc.htm Real-Time Produce charts from WMI
Office Web Components ActiveX Objects Ship with Microsoft Office 2000
c:\Program Files\MicrosoftOffice\Office\MsOwc.dll
Spreadsheet - OWC.Spreadsheet Chart - OWC.Chart Pivot Table - OWC.PivotTable DSC - OWC.DataSourceControl
SasToOwc.htm Uses SAS OLE DB Provider
sas.LocalProvider \SAS Institute\Shared Files\SAS OLE DB Data Providers\sasafbas.dll
Auto-installs with SAS version 8 Allows direct SAS file access Does not support SQL Field label access is difficult from script
SasToOwc.htmDemo
WmiToOwc.htm Uses WMI scripting API WMI - Windows Management Interface
WBEM compliant CIM implementation? Complete systems management API
Including performance management Uses High-Performance Provider
Windows 2000 only
Windows 2000Performance Monitoring
WmiToOwc.htmDemo
WSH Script - WmiWss.vbsServer = InputBox("Enter the name of a server to query")Set Locator = CreateObject("WbemScripting.SWbemLocator")Set Service = Locator.ConnectServer(Server, "root\cimv2")Service.Security_.ImpersonationLevel = 3 'impersonationsql = "Select Name, WorkingSetSize From Win32_Process“Set ObjSet = Service.ExecQuery(sql, , 0)For Each i In ObjSet
x = i.WorkingSetSizeif isnull(x) then x = 0Msg = Msg + i.Name + " = " + CStr(x) + vbCrLfNext
MsgBox Msg