Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How can I monitor Server statistics for a Siebel 7 server?

How can I monitor Server statistics for a Siebel 7 server?

Siebel server stats for each defined Department can be obtained from an

"Apache-like" HTML page [ _stats.swe] that can be parsed and obtained by the normal HTML parsing functions.

For example, the Siebel test site has the following page available :-
[url]http://standardhost.mycompany.com/sales_enu/_stats.swe
where standardhost is the servername for the URL.

Sample format of page:-
SWE: /sales_enu/SWSE Statistics
System Stats:
Event Value General Stats(count,mean,stddev)Frequency(mean,stddev)
Anonymous sessions 48864 1.0000 16.0981
requested from 0.0000 37.9718
the pool

Applications:
Application Name Totals General Stats(count,mean,stddev)Frequency(mean,stddev)
3342.00003342
1.0000 136.1427
4585.0827

Current Sessions: EventTotal TimeGeneral Stats(count,mean,stddev)Frequency(mean,stddev)

This report produced by the Siebel Web Engine (SWE)
All times given in seconds.
Copyright ) Siebel Systems, Inc. 2001, 2002. All rights reserved.

Sample SilkPerformer script that parses values from the _stats.swe page:-
Note: The Project Attributes named in this example script will need to be created manually for the newly created project [ In SilkPerformer - Project | Project Attributes ].

benchmark SilkPerformerRecorder

use "WebAPI.bdh"

dcluser
  user
    VUser
  transactions
    TInit           : begin;
    NoTrt_TMain     : 1;

var
  sHost, App, sPage            : string;
  nPort                        : number;
  
fOldOpenSessionTime, fOldOpenSessionCount, fOpenSessionTime, fOpenSessionCount         : float;
fOldResponseTime, fOldResponseCount, fResponseTime, fResponseCount                     : float;
fOldSessionCloseTime, fOldSessionCloseCount, fSessionCloseTime, fSessionCloseCount     : float;
fOldRequestTime, fOldRequestCount, fRequestTime, fRequestCount                         : float;
fOldAnonSessionRemovedTimeoutetc, fAnonSessionRemovedTimeoutetc                        : float;
  
dclfunc
  function QueryValues
  var
    sOpenSessionTime, sOpenSessionCount, sResponseTime, sResponseCount    : string (100);
    sSessionCloseTime, sSessionCloseCount, sRequestTime, sRequestCount    : string (100);
    sAnonSessionRemovedTimeoutetc                                         : string (100);

  begin

    WebParseDataBoundEx(sOpenSessionTime, sizeof(sOpenSessionTime),"Open Session Time", 1, "");
    WebParseDataBoundEx(sOpenSessionCount, sizeof(sOpenSessionCount),"", 5, ""); 
    WebParseDataBoundEx(sAnonSessionRemovedTimeoutetc, sizeof(sAnonSessionRemovedTimeoutetc), 
    "Anon Session Removed (Timeout etc)	", 1, ""); 
    WebParseDataBoundEx(sResponseTime, sizeof(sResponseTime), "Response Time (waiting for service
    event)", 1, ""); 
    WebParseDataBoundEx(sResponseCount, sizeof(sResponseCount), "", 17, ""); 
    WebParseDataBoundEx(sSessionCloseTime, sizeof(sSessionCloseTime), "Close Session Time",   1,""); 
    WebParseDataBoundEx(sSessionCloseCount, sizeof(sSessionCloseCount), "", 20, ""); 
    WebParseDataBoundEx(sRequestTime, sizeof(sRequestTime), "Request Time (waiting for service method to process)", 1, "");
   WebParseDataBoundEx(sRequestCount, sizeof(sRequestCount), "", 23, "");
   WebUrl("http://" + sHost + ":" + string(nPort) + "/" + sApp + "/" + sPage); 
   fAnonSessionRemovedTimeoutetc := float(sAnonSessionRemovedTimeoutetc); 
   fOpenSessionTime := float(sOpenSessionTime); 
   fOpenSessionCount := float(sOpenSessionCount); 
   fResponseTime := float(sResponseTime); 
   fResponseCount := float(sResponseCount); 
   fSessionCloseTime := float(sSessionCloseTime); 
   fSessionCloseCount := float(sSessionCloseCount);
   fRequestTime := float(sRequestTime);
   fRequestCount := float(sRequestCount); 
   end QueryValues;

dcltrans
transaction TInit
begin 
     AttributeGetString("host", sHost, sizeof(sHost)); 
     nPort := AttributeGetInt("port");
     AttributeGetString("application", sApp, sizeof(sApp));
     AttributeGetString("pagename", sPage, sizeof(sPage));
     MeasureSetBound("Pe_Request Time", MEASURE_COUNTER_CUSTOMCOUNTER, 1, 2.0);  
     MeasureSetBound("Pe_Request Time", MEASURE_COUNTER_CUSTOMCOUNTER, 2, 4.0);  
     MeasureSetBound("Pe_Session Close Time", MEASURE_COUNTER_CUSTOMCOUNTER, 1, 2.0); 
     MeasureSetBound("Pe_Session Close Time", MEASURE_COUNTER_CUSTOMCOUNTER, 2, 4.0);  
     MeasureSetBound("Pe_Response Time", MEASURE_COUNTER_CUSTOMCOUNTER, 1, 2.0); 
     MeasureSetBound("Pe_Response Time", MEASURE_COUNTER_CUSTOMCOUNTER, 2, 4.0); 
     MeasureSetBound("Pe_Open Session Time", MEASURE_COUNTER_CUSTOMCOUNTER, 1, 2.0); 
     MeasureSetBound("Pe_Open Session Time", MEASURE_COUNTER_CUSTOMCOUNTER, 2, 4.0); 
     QueryValues();
     fOldOpenSessionTime := fOpenSessionTime; 
     fOldOpenSessionCount := fOpenSessionCount; 
     fOldResponseTime := fResponseTime; 
     fOldResponseCount := fResponseCount;
     fOldSessionCloseTime := fSessionCloseTime; 
     fOldSessionCloseCount := fSessionCloseCount;
     fOldRequestTime := fRequestTime; 
     fOldRequestCount := fRequestCount; 
     fOldAnonSessionRemovedTimeoutetc := fAnonSessionRemovedTimeoutetc;
end TInit; 

transaction NoTRT_TMain
begin
     QueryValues();
     Print("Request Time: " + string(fRequestTime / fRequestCount)); if (fRequestCount > fOldRequestCount) then MeasureIncFloat("Pe_Request Time", (fRequestTime - fOldRequestTime) / (fRequestCount - fOldRequestCount)); 
end;
    Print("Session Close Time: " + string(fSessionCloseTime / fSessionCloseCount)); 
    if (fSessionCloseCount > fOldSessionCloseCount) then
         MeasureIncFloat("Pe_Session Close Time", (fSessionCloseTime - fOldSessionCloseTime) /               
        (fSessionCloseCount - fOldSessionCloseCount));
    end; 
    if (fResponseCount > fOldResponseCount) then 
       MeasureIncFloat("Pe_Response Time", fResponseTime - fOldResponseTime) / (fResponseCount -
       fOldResponseCount)); 
    end;
    Print("Open Session Time: " + string(fOpenSessionTime / fOpenSessionCount)); 
    if (fOpenSessionCount > fOldOpenSessionCount) then 
        MeasureIncFloat("Pe_Open Session Time", (fOpenSessionTime - fOldOpenSessionTime) /
        (fOpenSessionCount - fOldOpenSessionCount));  
    end;
    if (fAnonSessionRemovedTimeoutetc > fOldAnonSessionRemovedTimeoutetc) then 
        MeasureIncFloat("Av_Anon Session Removed (Timeout etc)", fAnonSessionRemovedTimeoutetc -
         fOldAnonSessionRemovedTimeoutetc);
    end;
    fOldOpenSessionTime := fOpenSessionTime;
    fOldOpenSessionCount := fOpenSessionCount; 
    fOldResponseTime := fResponseTime;
    fOldResponseCount := fResponseCount;
    fOldSessionCloseTime := fSessionCloseTime; 
    fOldSessionCloseCount := fSessionCloseCount; 
    fOldRequestTime := fRequestTime; 
    fOldRequestCount := fRequestCount; 
    fOldAnonSessionRemovedTimeoutetc := fAnonSessionRemovedTimeoutetc; 
end NoTrt_TMain;

Notes:-
Change the Project Attributes to the following example:-

host: standardhost.mycompany.com [your server/domain name for the URL]
port : 80
application : sales_enu
pagename : _stats.swe

Note: Attributes must be case sensitive.

SWE = Siebel Web Engine
All times given in seconds.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:57
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.