11
NTSMF Web-Based Reporting Techniques Jim Quigley conEdison

NTSMF Web-Based Reporting Techniques

  • Upload
    kirk

  • View
    24

  • Download
    0

Embed Size (px)

DESCRIPTION

NTSMF Web-Based Reporting Techniques. Jim Quigley conEdison. Performance Reporting with the Microsoft Office 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. - PowerPoint PPT Presentation

Citation preview

Page 1: NTSMF Web-Based Reporting Techniques

NTSMF Web-BasedReporting Techniques

Jim Quigley

conEdison

Page 2: NTSMF Web-Based Reporting Techniques

Performance Reportingwith the MicrosoftOffice Web Components

Page 3: NTSMF Web-Based Reporting Techniques

CMG’93 Sunday Workshops

Page 4: NTSMF Web-Based Reporting Techniques

Agenda SasToOwc.htm

Historical Produce charts from SAS

WmiToOwc.htm Real-Time Produce charts from WMI

Page 5: NTSMF Web-Based Reporting Techniques

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

Page 6: NTSMF Web-Based Reporting Techniques

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

Page 7: NTSMF Web-Based Reporting Techniques

SasToOwc.htmDemo

Page 8: NTSMF Web-Based Reporting Techniques

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

Page 9: NTSMF Web-Based Reporting Techniques

Windows 2000Performance Monitoring

Page 10: NTSMF Web-Based Reporting Techniques

WmiToOwc.htmDemo

Page 11: NTSMF Web-Based Reporting Techniques

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