PERFMGR CUSTOMIZATION QUESTIONS

ITEM: RTA000038385



                                                                                
                                                                                
                                                                                
QUESTION:                                                                       
These are questions for the Pergmgr.                                            
                                                                                
1. Is there a way, probably via the API, to trigger recording of                
an instrument based on a threshold value?                                       
                                                                                
2. How do I display graphically system statistics that are not listed           
under the standard instruments? For example, I would like to monitor            
CPU utilization of a specific process, and have the information                 
displayed graphically.                                                          
                                                                                
---------- ---------- ---------- --------- ---------- ----------               
A:  In response to your questions:                                              
                                                                                
    1) Is there a way to trigger recording of an instrument based               
       on a threshold value?                                                    
                                                                                
       No, recording can only be initiated from the menu selections.            
       One possible solution would be to use an alarm to notify                 
       you when a threshold is surpassed.  You could then manually              
       start the recording.  If you write your own statistic recording          
       application, it too could be started by using the alarm                  
       facility.  The alarm facility is documented on pages 153-155             
       of the AIX Performance Toolbox/6000 User's Guide.                        
                                                                                
    2) How do I monitor a specific system process graphically?                  
                                                                               
       Follow these steps:                                                      
                                                                                
       1) From the main xmperf menu Select 'Monitor'.                           
       2) Select 'Add New Console'.                                             
       3) Give the new console a name and Select 'Proceed'                      
          to bring up the new console.                                          
       4) From the new console Select 'Edit Console'.                           
       5) Select 'Add Local Instrument' to bring up a local instrument          
          selection box.                                                        
       6) From this box, Select 'Process statistics' to bring up a              
          process selection window.                                             
       7) From this window, select the process you wish to monitor              
          by double-clicking.  This will bring up a window to allow             
          to select what characteristic of that process you wish                
          to monitor.                                                          
       8) Select 'Process CPU use in user mode (percent)'.  This will           
          bring up a 'Changing Properties of a Value' menu.                     
       9) Make any changes to the properties and Select 'Apply'.                
      10) Select 'End Selection' from the previous window.                      
                                                                                
       The new console will appear monitoring the process you selected.         
       You can repeat steps 3-10 to add other process monitors to               
       your console.  Simply make a different selection in step 8.              
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
QUESTION:                                                                       
What if the system resource that I want to monitor and display                  
is not on the list of available instruments?                                    
                                                                                
---------- ---------- ---------- --------- ---------- ----------               
A:  If the system resource that you want to monitor and display is not          
    on the list of available instruments, you can add it by using               
    the System Performance Measurement Interface API (Spmi).  Spmi              
    is documented in chapter 11 of "AIX Performance Toolbox/6000                
    User's Guide" (SC23-2579-00).  According to the User's Guide:               
                                                                                
       It allows you to write programs that extend the number of                
       statistics available from a host's xmservd daemon (Dynamic               
       Data Supplier programs) and to write programs that access                
       statistics on the local host without using the network                   
       interface.                                                               
                                                                                
    Chapter 11 takes you through a step-by-step example of how to use           
    the API to create your own Dynamic Data Supplier program.  A                
    Dynamic Data Supplier program is intended to extend the set of             
    statistics that data consumer programs can be supplied with,                
    either from the xmservd daemon of a host or directly from the               
    Spmi repository through local Data Consumer programs.  A Dynamic            
    Data Supplier can add statistics as permanent or dynamic contexts           
    with subcontexts and statistics.                                            
                                                                                
    Included is the code and Makefile of a complete Dynamic Data                
    Supplier program.                                                           
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q651988      CPKNG                      
                                                                                
Additional search words:                                                       
CPKNG CUSTOMIZATIO CUSTOMIZE FEB94 IX LPPS OZNEW PERFMGR QUESTION               
RISCO RISCSYSTEM SOFTWARE SUPT                                                  
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000038385 ITEM: RTA000038385
Dated: 01/1995 Category: RISCO
This HTML file was generated 99/06/24~12:43:15
Comments or suggestions? Contact us