Beruflich Dokumente
Kultur Dokumente
Abstract
This manual describes the OEM Server and Enterprise Management Adapter components of the Open Enterprise Management (OEM) Gateway product. It tells how to install, configure, and customize the OEM Server to monitor OEM objects, and it documents the application programmatic interfaces (APIs) for both client applications and enterprise management framework adapters as a reference for developers planning to use the OEM Server in their own development efforts.
Product Version
Open Enterprise Management (OEM) Version 3.0 (T8486)
Part Number
520330-001
Published
April 2001
Document History
Part Number 520330-001 Product Version OEM Version 3.0 Published April, 2001
Ordering Information
For manual ordering information: domestic U.S. customers, call 1-800-243-6886; international customers, contact your local sales representative.
Document Disclaimer
Information contained in a manual is subject to change without notice. Please check with your authorized representative to make sure you have the most recent information.
Export Statement
Export of the information contained in this manual may require authorization from the U.S. Department of Commerce.
Examples
Examples and sample programs are for illustration only and may not be suited for your particular purpose. The inclusion of examples and sample programs in the documentation does not warrant, guarantee, or make any representations regarding the use or the results of the use of any examples or sample programs in any documentation. You should verify the applicability of any example or sample program before placing the software into productive use.
Glossary
Index
Figures
Whats New in This Manual xi Manual Information xi New and Changed Information About This Manual xiii Audience xiii Organization xiii Your Comments Invited xiii Notation Conventions xiv xi
Contents
Including Intermediate-Level State Values in Frameworks and Display Windows 3-2 Example 3-3 3-3 3-4 3-4 3-5 3-6 Reusing Display Windows
Automatically Closing Max Alerts Windows as They Are Used Using Custom View Windows for Alerts and Max Alerts Automatically Saving Custom View Definitions 3-5 Synchronizing the OEM Alerts Window and Client Applications Setting the Icon Size 3-7 3-8 Choosing a New Icon Set 3-7 Choosing the Default Tiling Scheme Adapter Options 3-8 Viewing the Adapter List 3-9 Adding an Adapter Entry Updating an Adapter Entry Deleting an Adapter Entry Adjusting Adapter Priority 3-9 3-10 3-10 3-11 3-11
Configuring a Framework Adapter 3-10 Restoring Default Adapter Settings Logging Options 3-12 Opening the OEM Logging Dialog Box Setting the Size of the Log 3-13 Enabling API and Error Tracing Enabling OEM Timer Tracing Font Options 3-14 Advanced Options 3-15 Opening the OEM Advanced Options Dialog Box 3-15
OEM Users Guide520330-001 ii
3-13 3-14
Contents
4. OEM Windows
The Alerts Window 4-1 4-2 4-2 4-3 Opening an Alerts Window Alerts Window Fields Alerts Window Menus View Menu 4-3 Help Menu 4-3 4-3 Sorting Alerts Window Items Aligning Alerts Windows Locking the Alerts Window 4-4 4-4 4-5
Keeping the Alerts Window on Top 4-5 Refreshing Alerts Window Contents Creating a New Alerts Window Closing the Alerts Window The Max Alerts Window 4-6 4-6 4-7 4-7 4-6 4-5
Opening a Max Alerts Window Max Alerts Window Fields Max Alerts Window Menus View Menu 4-7 Help Menu 4-8
Sorting Max Alerts Window Items Aligning Max Alerts Windows Locking the Max Alerts Window 4-9
4-8 4-8
Keeping the Max Alerts Window on Top 4-10 Refreshing Max Alerts Window Contents Creating a New Max Alerts Window 4-10 Navigating to Client Applications 4-10
OEM Users Guide520330-001 iii
4-10
Contents
Clients Window Fields 4-11 Clients Window Menus 4-12 View Menu 4-12 Help Menu 4-13 4-13 Sorting Clients Window Items 4-13 Sizing Clients Window Columns Aligning Clients Windows 4-13 Locking the Clients Window 4-14 4-14 4-15 Keeping the Clients Window on Top Refreshing Clients Window Contents Closing the Clients Window The Objects Window 4-15 4-15 Opening an Objects Window Objects Window Fields 4-16 Objects Window Menus 4-17 View Menu Help Menu 4-18 4-18 4-18 4-15
Sorting Objects Window Items Aligning Objects Windows Locking the Objects Window
Keeping the Objects Window on Top 4-20 Refreshing Objects Window Contents Closing the Objects Window The Popups Window 4-21 Opening a Popups Window 4-21 Popups Window Fields 4-21 Popups Window Menus 4-22 View Menu 4-22
OEM Users Guide520330-001 iv
4-20
Contents
Popup Navigation Window Fields Popup Navigation Window Menus View Menu 4-26 Help Menu 4-27
Sorting Popup Navigation Window Items 4-27 Sizing Popup Navigation Window Columns Aligning Popup Navigation Windows Locking the Popup Navigation Window 4-27 4-28 4-28 4-29 4-27
Keeping the Popup Navigation Window on Top Refreshing Popup Navigation Window Contents Navigating to Client Applications 4-29 Closing the Popup Navigation Window 4-29 The Log Window 4-29 4-29 Opening a Log Window
Log Window Fields 4-29 Log Window Menus 4-30 View Menu 4-30 Help Menu 4-31 4-31 Sorting Log Window Items
Sizing Log Window Columns 4-31 Aligning Log Windows 4-31 Locking the Log Window 4-32 Keeping the Log Window on Top 4-32
OEM Users Guide520330-001 v
Contents
Statistics Window Fields 4-34 Statistics Window Menus 4-34 View Menu 4-35 Help Menu 4-35 4-35 4-35 4-36 Sorting Statistics Window Items 4-35 Sizing Statistics Window Columns Automatically Refreshing Displayed Statistics Manually Refreshing Displayed Statistics Closing the Statistics Window 4-36 OEM Server Statistics The Icons Window 4-38 4-38 4-39 4-39 4-39 4-40 4-40 4-36
Opening the Icons Window Closing the Icons Window The Trace Window 4-39 Opening the Trace Window Closing the Trace Window The About Window 4-40 Opening the About Window Closing the About Window
5. Custom Views
Custom Grouping of Objects State Filtering 5-1 Independent State Propagation and Arbitration for Each View Hierarchical and Object-based Display of Data Alerts and Max Alerts Custom Views Custom View Window Layout 5-3 5-3 5-2 Display of All Clients or Max Client Modes 5-2 5-1 5-1
Contents
The MinState Field 5-7 The Status Bar Configuring Custom View Properties 5-7 Setting Object Specifiers and State Filters Viewing Existing Specifiers Adding a New Specifier 5-9 Updating an Existing Specifier Deleting an Existing Specifier Clearing All Existing Specifiers Choosing the Display Mode 5-12 Selecting the View Format Altering the Window Layout Working With Custom Views Creating a New Custom View 5-13 5-14 5-16 Selecting the Client State Reporting Option 5-14 5-15 5-9 5-10 5-11 5-12 5-8
Opening an Existing Custom View 5-16 Saving a Custom View Configuration 5-17 Sorting Custom View Window Items 5-17 Sizing Custom View Window Columns 5-17 5-18 5-19 Locking the Custom View Window 5-18 Keeping the Custom View Window on Top Refreshing Custom View Window Contents
Contents
Architecture and Design Considerations for the OEM Server OEM Request API (Client Application to OEM) ReportingLevels Popup.Add A-6 Popup.Delete A-9 Popup.Cleanup A-10 Object.Add A-11 Object.Delete Object.Cleanup LogMessage SetIcons A-16 DebugDisplayPopups DebugTraceDisable DebugQueuePause DebugQueueResume Command A-23 A-25 A-27 A-17 A-20 A-21 A-22 A-23 DebugDisplayObjects A-18 A-13 A-14 A-15 A-5
Contents
FrameworkWindowPosition A-50 SetIcons A-51 CloseAdapter Command A-52 A-53 OEM Callback API (Adapter to OEM) A-53 A-55 A-57 A-58 ClientMessage RefreshObjects RefreshPopups Tile A-59 A-61 A-62 A-63 A-64 A-66 A-66 A-67
OEM Users Guide520330-001 ix
Cascade RestoreAll
MinimizeAll LogMessage
Contents
Rule #1 - Hierarchical Name Space Rule #2 - Path Delimiter Rule #3 - Null Classes and Objects Rule #4 - Case Sensitivity A-73 Rule #5 - Class Names State Conventions A-74 A-73
Abstract This manual describes the OEM Server and Enterprise Management Adapter components of the Open Enterprise Management (OEM) Gateway product. It tells how to install, configure, and customize the OEM Server to monitor OEM objects, and it documents the application programmatic interfaces (APIs) for both client applications and enterprise management framework adapters as a reference for developers planning to use the OEM Server in their own development efforts. Product Version Open Enterprise Management (OEM) Version 3.0 (T8486)
Part Number 520330-001 Published April 2001
Document History
Part Number 520330-001 Product Version OEM Version 3.0 Published April, 2001
Audience
This manual addresses two audiences:
System managers, network managers, and operators who install, configure, and customize the OEM Server to monitor OEM objects Developers planning to use the OEM Server in their own development efforts
Organization
This manual consists of five sections and an appendix, as follows:
Section 1, Introducing the Open Enterprise Management Server, provides an overview of the OEM product and lists hardware and software requirements. Section 2, Installing the Open Enterprise Management Server, provides information about setup, files installed, and system registry changes. Section 3, Configuring the Open Enterprise Management Server, describes how to customize the behavior of the OEM Server and the appearance of OEM windows. Section 4, OEM Windows, describes the OEM Server windows that are created either in response to direct user requests from OEM menus or as a result of callbacks from framework adapters. Section 5, Custom Views, describes how to create your own logical groupings of OEM objects based on any criteria you choose and including only objects whose states fall within the range you specify. Appendix A, OEM External Specification, serves as a reference detailing the OEM architecture and providing descriptions of the APIs for both client applications and enterprise management framework adapters for developers wanting to use the OEM Server in their own development efforts.
Notation Conventions
A Reader Comment Card is located at the back of printed manuals and as a separate file on the User Documentation disc. You can either fax or mail the card to us. The fax number and mailing address are provided on the card. Also provided on the Reader Comment Card is an Internet mail address. When you send an Internet mail message to us, we immediately acknowledge receipt of your message. A detailed response to your message is sent as soon as possible. Be sure to include your name, company name, address, and phone number in your message. If your comments are specific to a particular manual, also include the part number and title of the manual. Many of the improvements you see in manuals are a result of suggestions from our customers. Please take this opportunity to help us improve future manuals.
Notation Conventions
Hypertext Links
Blue underline is used to indicate a hypertext link within text. By clicking a passage of text with a blue underline, you are taken to the location described. For example: This requirement is described under Backup DAM Volumes and Physical Disk Drives on page 3-2.
lowercase italic letters. Lowercase italic letters indicate variable items that you supply. Items not enclosed in brackets are required. For example:
file-name
A group of items enclosed in brackets is a list from which you can choose one item or none. The items in the list may be arranged either vertically, with aligned brackets on each side of the list, or horizontally, enclosed in a pair of brackets and separated by vertical lines. For example:
FC [ num ] [ -num] [ text] K [ X | D ] address-1
OEM Users Guide520330-001 xiv
{ } Braces. A group of items enclosed in braces is a list from which you are required to choose one item. The items in the list may be arranged either vertically, with aligned braces on each side of the list, or horizontally, enclosed in a pair of braces and separated by vertical lines. For example:
LISTOPENS PROCESS { $appl-mgr-name } { $process-name } ALLOWSU { ON | OFF }
| Vertical Line. A vertical line separates alternatives in a horizontal list that is enclosed in brackets or braces. For example:
INSPECT { OFF | ON | SAVEABEND }
Ellipsis. An ellipsis immediately following a pair of brackets or braces indicates that you can repeat the enclosed sequence of syntax items any number of times. For example:
M address-1 [ , new-value ]... [ - ] {0|1|2|3|4|5|6|7|8|9}...
An ellipsis immediately following a single syntax item indicates that you can repeat that syntax item any number of times. For example:
"s-char..."
Punctuation. Parentheses, commas, semicolons, and other symbols not previously described must be entered as shown. For example:
error := NEXTFILENAME ( file-name ) ; LISTOPENS SU $process-name.#su-name
Quotation marks around a symbol such as a bracket or brace indicate the symbol is a required character that you must enter as shown. For example:
"[" repetition-constant-list "]"
Item Spacing. Spaces shown between items are required unless one of the items is a punctuation symbol such as a parenthesis or a comma. For example:
CALL STEPMOM ( process-id ) ;
If there is no space between two items, spaces are not permitted. In the following example, there are no spaces permitted between the period and any other items:
$process-name.#su-name
Line Spacing. If the syntax of a command is too long to fit on a single line, each continuation line is indented three spaces and is separated from the preceding line by a blank line. This spacing distinguishes items in a continuation line from items in a vertical list of selections. For example:
ALTER [ / OUT file-spec / ] LINE [ , attribute-spec ]...
OEM Users Guide520330-001 xv
!i and !o. In procedure calls, the !i notation follows an input parameter (one that passes data to the called procedure); the !o notation follows an output parameter (one that returns data to the calling program). For example:
CALL CHECKRESIZESEGMENT ( segment-id , error ) ; !i !o
!i,o. In procedure calls, the !i,o notation follows an input/output parameter (one that both passes data to the called procedure and returns data to the calling program). For example:
error := COMPRESSEDIT ( filenum ) ; !i,o
!i:i. In procedure calls, the !i:i notation follows an input string parameter that has a corresponding parameter specifying the length of the string in bytes. For example:
error := FILENAME_COMPARE_ ( filename1:length , filename2:length ) ; !i:i !i:i
!o:i. In procedure calls, the !o:i notation follows an output buffer parameter that has a corresponding input parameter specifying the maximum length of the output buffer in bytes. For example:
error := FILE_GETINFO_ ( filenum , [ filename:maxlen ] ) ; !i !o:i
The user must press the Return key after typing the input. Nonitalic text. Nonitalic letters, numbers, and punctuation indicate text that is displayed or returned exactly as shown. For example:
Backup Up.
lowercase italic letters. Lowercase italic letters indicate variable items whose values are displayed or returned. For example:
p-register process-name
[ ] Brackets. Brackets enclose items that are sometimes, but not always, displayed. For example:
Event number = number [ Subject = first-subject-value ]
A group of items enclosed in brackets is a list of all possible items that can be displayed, of which one or none might actually be displayed. The items in the list might be arranged either vertically, with aligned brackets on each side of the list, or horizontally, enclosed in a pair of brackets and separated by vertical lines. For example:
proc-name trapped [ in SQL | in SQL file system ]
{ } Braces. A group of items enclosed in braces is a list of all possible items that can be displayed, of which one is actually displayed. The items in the list might be arranged either vertically, with aligned braces on each side of the list, or horizontally, enclosed in a pair of braces and separated by vertical lines. For example:
obj-type obj-name state changed to state, caused by { Object | Operator | Service } process-name State changed from old-objstate to objstate { Operator Request. } { Unknown. }
| Vertical Line. A vertical line separates alternatives in a horizontal list that is enclosed in brackets or braces. For example:
Transfer status: { OK | Failed }
% Percent Sign. A percent sign precedes a number that is not in decimal notation. The % notation precedes an octal number. The %B notation precedes a binary number. The %H notation precedes a hexadecimal number. For example:
%005400 P=%p-register E=%e-register
lowercase letters. Words in lowercase letters are words that are part of the notation, including Data Definition Language (DDL) keywords. For example:
token-type
!r.
The !r notation following a token or field name indicates that the token or field is required. For example:
ZCOM-TKN-OBJNAME token-type ZSPI-TYP-STRING. !r
!o.
The !o notation following a token or field name indicates that the token or field is optional. For example:
ZSPI-TKN-MANAGER token-type ZSPI-TYP-FNAME32. !o
1
Introducing the Open Enterprise Management Server
The OEM Gateway (OEM) provides client applications with an encapsulated interface layer to enterprise management frameworks. The OEM consists of a Server component and one or more Adapter components. Client applications communicate with the Server component. The Server communicates with the Adapter or Adapters on behalf of the clients, while the Adapters handle communication to and from the enterprise management framework. Interfaces are implemented as ActiveX OLE servers/components. ActiveX minimizes the impact and effort required to integrate existing clients. The interface provides clients such as Compaq state monitoring, performance monitoring, and command and control graphical user interfaces (GUIs) with a simplified, encapsulated layer to operations management frameworks. The OEM layer handles all details of the interface to enterprise management frameworks. As a result, clients effectively communicate information in a uniform and consistent manner with minimal impact to existing code.
OEM Architecture
The Open Enterprise Management architecture allows clients such as the Compaq Availability Statistics and Performance (ASAP) monitor to communicate with Enterprise Management frameworks through a standard ActiveX interface. As a result, client applications do not have to be framework aware. Conversely, framework commands are sent back to applications through callbacks to the OEM, with the OEM routing these commands to the appropriate client by encapsulated state arbitration. The clients themselves are not required to have knowledge of the proprietary callback formats of any given framework; the OEM translates callbacks from all frameworks to a standard OEM command format. Clients need only integrate with the OEM Server to participate in any management framework. The OEM Server and framework adapters are responsible for all routing and translation functions.
The following figure shows the basic Open Enterprise Management architecture and component pieces:
Encapsulates the client interface Minimizes the impact on client applications wanting to participate in enterprise management Provides an adapter interface to enterprise management frameworks Provides client integration with enterprise management frameworks Provides state arbitration between multiple clients
The ability to supply user-configurable icons for OEM entity and state information. All OEM windows, including Alerts and Custom Views, will utilize the specified icons. In addition, any change to the OEM icon set is automatically communicated to all clients and adapters, making it easy to keep the icon sets within the various components in sync. Enhanced Client Request API, Adapter Request API, OEM Callback API, and Client Callback API. All of these APIs now include a SetIcons method, which adapters or clients can utilize to cause the OEM to utilize a different icon set.
Hardware Requirements
IBM-compatible PC, Pentium-166 or higher 16 MB of RAM Mouse or compatible pointing device 10 MB of available disk space (20 MB during installation)
Software Requirements
Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows NT 4.0 (any version), Microsoft Windows 2000 (any version), or Microsoft Windows ME. An optional framework adapter if you want to integrate OEM data with your enterprise management framework
Obtaining Support
Support for the OEM Server is available from the Compaq Computer Corporation Global Customer Support Center at (800) 255-5010.
Obtaining Support
2
Installing the Open Enterprise Management Server
Setup
The OEM Server is installed as an ActiveX component as part of the setup of any client application that uses it. There is no need to perform a stand-alone setup of the OEM.
Files Installed
The OEM Server is installed in the Program Files\Tandem\OEM directory. System and library files are installed in your Windows system directory. On Windows 95 or 98, this is Windows Directory\SYSTEM. On Windows NT, this is Windows Directory\SYSTEM32. The following files are installed: File Name
OEMSERV.CNT OEMSERV.DOC OEMSERV.EXE OEMSERV.HLP OEMSUPP.EXE README.TXT ALL CPUS.OEM ALL DISKS.OEM OBJECTS IN ERROR.OEM COMCTL32.OCX CTL3D32.DLL MFC40.DLL MSVCIRT.DLL MSVCRT.DLL MSVCRT20.DLL MSVCRT40.DLL
Install Location
Application directory\OEM Application directory\OEM Application directory\OEM Application directory\OEM Application directory\OEM Application directory\OEM Application directory\OEM\Views Application directory\OEM\Views Application directory\OEM\Views
Windows system directory Windows system directory Windows system directory Windows system directory Windows system directory Windows system directory Windows system directory
Registry Changes
File Name
OLEPRO32.DLL VB40032.DLL VEN2232.OLB
Install Location Windows system directory Windows system directory Windows system directory
Registry Changes
The OEM Server updates the system registry with installation and configuration data. This information is stored under the HKEY_CURRENT_USER\SOFTWARE\TANDEM\OEM Server key.
3
Configuring the Open Enterprise Management Server
The behavior of the OEM Server and the appearance of the OEM windows can be tailored to fit the needs of any user. The following subsections describe the five main categories of OEM Server settings in detail:
General Options on page 3-1 Adapter Options on page 3-8 Logging Options on page 3-12 Font Options on page 3-14 Advanced Options on page 3-15
General Options
Use the OEM General Options dialog box to control the basic behavior of the OEM Server by:
Specifying the Number of Reporting Levels on page 3-2 Including Intermediate-Level State Values in Frameworks and Display Windows on page 3-2 Reusing Display Windows on page 3-3 Keeping Display Windows on Top on page 3-4 Automatically Closing Max Alerts Windows as They Are Used on page 3-4 Using Custom View Windows for Alerts and Max Alerts on page 3-5 Automatically Saving Custom View Definitions on page 3-5 Synchronizing the OEM Alerts Window and Client Applications on page 3-6 Setting the Icon Size on page 3-7 Choosing a New Icon Set on page 3-7
Right-click the OEM icon in the system tray. From the menu, choose Options. From the View menu of any OEM display window, choose Options.
The OEM Options dialog box appears. 2. Click the General tab if it is not already selected.
To allow intermediate values to be passed to adapters and included in display windows, in the State Reporting panel, select the Include Intermediate Values check box. Any intermediate values supplied by client applications are included in updates to framework adapters, and this state information displays in OEM Alerts, Max Alerts, and Custom View windows.
OEM Users Guide520330-001 3 -2
To ignore intermediate values, in the State Reporting panel, uncheck the Include Intermediate Values check box. No intermediate values are included in updates to framework adapters, and this state information does not appear in OEM Alerts, Max Alerts, or Custom View windows. However, the OEM Server retains this data internally so that you can choose to include it at a later time.
Example
As an example of how the Include Intermediate Values feature works, assume the following:
The OEM Server Reporting Levels value has been set to 3. Client A reports \London\Disk\$System with state 7. Client B reports \London\Disk with state 5.
In this situation, Client A reports at the correct level. However, Client B supplies only two levels of detail. Furthermore, the information Client B supplies specifies state information on an intermediate level of the object hierarchy - \London\Disk. This is considered to be an intermediate level because Client A has already reported more detailed information on \London\Disk, namely that $System has a state of 7. Given this information, what data should be passed to the framework adapters, and what data should appear in Alerts, Max Alerts, and Custom View windows?
If Include Intermediate Values is checked, the \London\Disk\$System state of 7 and the \London\Disk state of 5 are passed to the framework adapters, and both values appear in the appropriate display windows. If Include Intermediate Values is not checked, only the \London\Disk\$System state of 7 are passed through to the framework adapters, and only that value appears in any display windows.
To enable or disable display window reuse: 1. Open the OEM Options dialog box and click the General tab. (See Opening the OEM General Options Dialog Box on page 3-2.) 2. Set the Re-Use Display Forms option:
To enable display window reuse, in the Display panel, select the Re-Use Display Forms check box. All subsequent requests to display a particular type of data use an existing window of that type if one exists. A new window is created if necessary.
To disable display window reuse, in the Display panel, clear the Re-Use Display Forms check box. A new window is created for all subsequent requests to display any type of data.
To enable creation of on top display windows, in the Display panel, check the Display Forms Stay On Top check box. All subsequent display windows created by the OEM Server are created with the On Top attribute set. This option remains in effect until another On Top window is created.
To disable creation of On Top display windows, in the Display panel, clear the Display Forms Stay On Top check box. All subsequent display windows are created without the On Top attribute set.
1. Open the OEM Options dialog box and click the General tab. (See Opening the OEM General Options Dialog Box on page 3-2.) 2. Set the Close Max Alerts Window On Click option:
To close Max Alerts windows once an object has been selected, in the Display panel, check the Close Max Alerts Window On Click check box. Each Max Alerts window closes after you select an object in it. To leave Max Alerts windows open after an object has been selected, in the Display panel, clear the Close Max Alerts Window On Click check box. Max Alerts windows are not closed as you select objects from them.
To use a Custom View window to display Alerts and Max Alerts data, in the Display panel, check the Use Custom View Alerts Window check box. Alerts and Max Alerts are displayed using a predefined Custom View window. To use the standard Alerts and Max Alerts display windows, in the Display panel, clear the Use Custom View Alerts Window check box. Alerts and Max Alerts are displayed using the standard object list format.
To specify whether Custom View definitions are automatically saved: 1. Open the OEM Options dialog box and click the General tab. (See Opening the OEM General Options Dialog Box on page 3-2.) 2. Set the Auto Save View Definitions option:
To save view definitions automatically when a Custom View window closes, in the Display panel, check the Auto Save View Definitions check box. Each Custom View definition file is updated when the corresponding window is closed. To prevent the OEM from automatically saving view definitions, in the Display panel, clear the Auto Save View Definitions check box. To save view definitions , click Save on the Custom View window toolbar or choose Save from the File menu of the Custom View window.
To keep the OEM Alerts window and clients synchronized, in the Display panel, check the Synchronize Alerts And Clients check box. The OEM automatically passes all Alerts and Max Alerts callbacks received from EM frameworks on to client applications. For other callbacks, the OEM Server still updates its Alerts window to contain information on the target object in addition to passing the callback to the appropriate client application. To prevent the OEM from updating client applications automatically whenever an Alerts or Max Alerts callback is received from an enterprise management framework, in the Display panel, clear the Synchronize Alerts And Clients check box. The OEM updates only its own Alerts/Max Alerts windows; no notification is passed to client applications. Any other callbacks received are
OEM Users Guide520330-001 3 -6
routed to the appropriate client, but OEM windows are not updated to show data for the target object. 3. Click OK or Apply to save the change, or click Cancel to discard it.
To set the icon size: 1. Open the OEM Options dialog box and click the General tab. (See Opening the OEM General Options Dialog Box on page 3-2.) 2. Set the Use Large Icons option:
To use the larger 32 by 32 icons, in the Display panel, check the Use Large Icons check box. All Alerts, Max Alerts, and Custom View windows display the large icons. The Custom View windows Small Icon view still uses small icons, but the Large Icon, List, and Details views use large icons. To use the smaller 16 by 16 icons, in the Display panel, clear the Use Large Icons check box. All Alerts, Max Alerts, and Custom View windows display the small icons. The Custom View windows Large Icon view still uses large icons, but the Small Icon, List, and Details views use small icons.
To tile windows from top to bottom first and then left to right, in the Tiling panel, click the Top Down option. When a new window is created, the OEM tries to place it below an existing window of the same type. If no space is available, the OEM tries to place the window beside an existing window of the same type. To tile windows first from left to right and then top to bottom, in the Tiling panel, click the Side By Side option. When a new window is created, the OEM tries to place it beside an existing window of the same type. If no space is available, the OEM tries to place the window below an existing window of the same type.
Adapter Options
Framework adapters allow the OEM to communicate with various enterprise management frameworks. This subsection describes the adapter options and how to work with them:
Viewing the Adapter List on page 3-9 Adding an Adapter Entry on page 3-9 Updating an Adapter Entry on page 3-10 Deleting an Adapter Entry on page 3-10 Configuring a Framework Adapter on page 3-10 Adjusting Adapter Priority on page 3-11 Restoring Default Adapter Settings on page 3-11 Using the Add/Update Adapter Dialog on page 3-12
Right-click the OEM icon in the system tray and choose Options from the menu. From the View menu of any OEM display window, choose Options.
The OEM Options dialog box appears. 2. Click the Adapters tab to display the currently defined adapters.
Click Yes if you want the adapter to be activated. Click No if you want to configure the adapter now but activate it at a later time.
5. Click OK in the OEM Server: Add Adapter dialog box to add the new entry to the adapter list. Click Cancel to cancel the operation. 6. Click OK or Apply in the OEM Options dialog box to save the changes. Click Cancel to discard any changes you have made. For more information about specifying adapter properties, see Using the Add/Update Adapter Dialog on page 3-12.
If the Configure option is disabled, the selected adapter does not support any user-configurable options. If the Configure option is enabled, the selected adapter supports user-configurable options. a. Click Configure to open the adapter configuration dialog. b. In the adapter configuration dialog, change any values as needed. These settings are specific to the selected adapter and are outside the control of the OEM Server. c. Click either OK or Apply in the adapter configuration dialog box to save the changes. Click Cancel to discard any changes you have made.
3. Click OK or Apply in the OEM Options dialog box to save the changes. Click Cancel to discard any changes you have made.
3. Click OK or Apply in the OEM Options dialog box to save the changes. Click Cancel to discard any changes you have made.
Note. This operation does not restore any adapter-specific settings. Use the adapter configuration to restore these settings.
Adapter Name The Adapter Name field defines the name of the adapter within the OEM Server environment. This name is used only within the OEM itself and can be any value you choose. It cannot contain a backslash (\) or a period (.), and it is limited to 255 characters. It is not case-sensitive.
Class Name The Class Name field specifies the name of the adapters externally accessible OLE interface class. The OEM Server uses this interface to communicate with the adapter. The vendor of the adapter can supply you with the correct class name for the particular adapter.
Active Flag The Active flag controls whether the adapter is activated or deactivated by the OEM.
If you select Yes, the OEM attempts to start the adapter. If successful, the
adapter is marked as Active in the Adapter List. The OEM passes all object and pop-up information to the adapter and passes all process callbacks from it. If the adapter cannot be started because it was not found or an error occurred, it is marked as Not Installed in the Adapter List. The entry remains in the list, but the OEM does not attempt to communicate with the adapter until the problem is corrected and the adapter is reactivated. Inactive in the Adapter List. The entry remains in the list, but the OEM does not attempt to communicate with the adapter until it is reactivated.
If you select No, the OEM shuts down the adapter if it is running and marks it
Logging Options
The OEM Server maintains an in-memory log of error and status information related to the OEM environment and also provides detailed tracing capabilities for interactions with client applications and framework adapters. You can work with the logging and tracing options by:
Setting the Size of the Log on page 3-13 Enabling API and Error Tracing on page 3-13
OEM Users Guide520330-001 3- 12
Right-click the OEM icon in the system tray and choose Options from the menu. From the View menu of any OEM display window, choose Options.
The OEM Options dialog box appears. 2. Click the Logging tab if it is not already selected.
To enable or disable API and error tracing: 1. Open the OEM Options dialog box and click the Logging tab. (See Opening the OEM Logging Dialog Box on page 3-13.) 2. Set the API/Error Trace Enabled option:
To enable API call and error tracing, in the Tracing panel, check the API/Error Trace Enabled check box. To disable API call and error tracing, in the Tracing panel, clear the API/Error Trace Enabled check box.
To enable or disable timer tracing: 1. Open the OEM Options dialog box and click the Logging tab. (See Opening the OEM Logging Dialog Box on page 3-13.) 2. Set the Timer Event Trace Enabled option:
To enable timer tracing, in the Tracing panel, check the Timer Event Trace Enabled check box. To disable timer tracing, in the Tracing panel, clear the Timer Event Trace Enabled check box.
Font Options
Use the Fonts tab to alter the display font used in Alerts, Max Alerts, Clients, Objects, Pop-ups, and Log display windows. You can change the font itself, adjust the font size, and specify the bold, italic, strikethrough, and underline styles. To alter the OEM font settings: 1. Do one of the following:
Right-click the OEM icon in the system tray and choose Options from the menu. From the View menu of any OEM display window, choose Options.
OEM Users Guide520330-001 3- 14
Advanced Options
The OEM Options dialog box appears. 2. Click the Fonts tab. 3. Set the desired font options. The list of font names varies from system to system, depending on which fonts are installed in the given environment. The available font sizes can also vary. If a particular size is invalid for a specific font, the OEM automatically uses the closest available font size. 4. Click OK or Apply to save the changes, or click Cancel to discard them.
Advanced Options
Use the Advanced Options dialog box to access OEM Server advanced configuration settings and windows that display information about the OEMs internal data and status. This subsection describes:
Limiting the Number of Icons Used on page 3-15 Supplementary Display Windows on page 3-16
Right-click the OEM icon in the system tray and choose Options from the menu. From the View menu of any OEM display window, choose Options.
The OEM Options dialog box appears. 2. Click the Advanced tab if it is not already selected.
By default, both entity and state icons are shown on Windows NT systems. On Windows 95 and 98 systems, only state icons are shown by default. In either case, you can change the default behavior. To alter the icon set used by the OEM: 1. Open the OEM Options dialog box and click the Advanced tab. (See Opening the OEM Advanced Options Dialog Box on page 3-15.) 2. Set the Show State Icons Only option:
To show state icons alone, check the Show State Icons Only check box. Entity icons are not displayed, greatly reducing GDI resource consumption under Windows 95 and 98. To show both entity and state icons, clear the Show State Icons Only check box. The full OEM entity and state icon matrix is used. On Windows 95 and 98 systems, this option can consume a large amount of the available GDI resources, making it difficult to run other applications concurrently with the OEM and its associated clients and adapters.
OEM Windows
The OEM Server can display several different types of windows, each containing a particular class of OEM data. These windows are created either in response to direct user requests from OEM menus or as a result of callbacks from framework adapters. The behavior of a given type of window is always the same, regardless of the reason for its creation. The following subsections describe each of these OEM window types: The Alerts Window on page 4-1 The Max Alerts Window on page 4-6 The Clients Window on page 4-11 The Objects Window on page 4-15 The Popups Window on page 4-21 The Popup Navigation Window on page 4-26 The Log Window on page 4-29 The Statistics Window on page 4-34 The Icons Window on page 4-38 The Trace Window on page 4-39 The About Window on page 4-40
OEM Windows
Right-click the OEM icon in the system tray and choose Alerts from the menu. From an OEM Max Alerts window View menu, choose Alerts. From an enterprise management framework menu, choose Alerts.
The Re-Use Display Forms option setting affects how Alerts windows are created: If Re-Use Display Forms is checked, an Alerts window is created the first time you choose Alerts from a menu. If you subsequently choose Alerts from a menu again, the existing Alerts window is used to display the newly requested data. If Re-Use Display Forms is cleared, a new Alerts window is created every time you choose Alerts from a menu.
Client Name
OEM Windows
View Menu
Items in the View menu control the Alerts window and how data is displayed in it. Menu Item Alerts Max Alerts New Locked Stay On Top Refresh Size Columns Align Windows Options Close Close All Display Windows Action Performed Displays a list of all objects and their states Displays a list of all objects whose state is equal to the highest state recorded in the OEM database Creates a new Alerts or Max Alerts window Locks or unlocks the window Enables or disables the On Top property of the window Refreshes the data in the window Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions Aligns OEM windows using the dimensions of the current window Opens the OEM options dialog Closes this window Closes all OEM display windows
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents Displays the Help file search dialog Displays OEM Server version information
Click once to sort objects in ascending order. Click twice to sort objects in descending order.
OEM Users Guide520330-001 4 -3
OEM Windows
To resize each of the columns in the window, select the divider between column headings and drag it right or left as desired. To resize all columns at once: 1. From the View menu, choose Size Columns. 2. Choose Defaults, Size To Window, or Size To Contents. The behavior of each of these options is as follows: Menu Item Defaults Size To Window Size To Contents Action Performed Sizes each column using the saved value for that column Sizes each column using a fixed percentage of available space Sizes each column based on the largest item in the column
The OEM saves the adjusted column widths in the system registry. These values are used the next time an Alerts window is created.
To align Alerts windows, from the View menu, choose Align Windows. All Alerts windows are tiled and resized to match the current window. To specify the tiling method, choose Top Down or Side By Side from the OEM Options window General tab.
To lock a display window, from the View menu, choose Locked. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu.
OEM Windows
To unlock a display window and re-enable updates, choose Locked from the View menu again. The (Locked) indicator disappears, and the OEM updates the window the next time new data is received.
Repeatedly choosing Locked from the View menu toggles the locked attribute on and off.
If Display Forms Stay On Top is checked, the new window is created with its On Top property enabled. If Display Forms Stay On Top is not checked, the new window is created with its On Top property disabled. If Stay On Top is checked on the View menu, the current window is an On Top window. Choose Stay On Top from the View menu to disable the On Top attribute. If Stay On Top is not checked on the View menu, the current window is not an On Top window. From the View menu, choose Stay On Top to enable the On Top attribute. Repeatedly selecting Stay On Top from the View menu toggles the On Top attribute on and off.
To override the default value and toggle the On Top property of an individual window:
OEM Windows
Right-click the OEM icon in the system tray and choose Max Alerts from the menu. From an OEM Alerts window View menu, choose Max Alerts. From an enterprise management framework menu, choose Max Alerts. In this case, a Max Alerts window is created only if more than one object is at the highest state. If a single object is at the highest state, the OEM automatically sends a Max Alert message to the client application that reported that object.
OEM Windows
The setting of the Re-Use Display Forms option affects how Max Alerts windows are created:
If the Include Intermediate Values option is checked, a Max Alerts window is created the first time you choose Max Alerts from a menu. If you subsequently choose Max Alerts from a menu again, the existing Max Alerts window displays the newly requested data. If Re-Use Display Forms is cleared, a new Max Alerts window is created every time you choose Max Alerts from a menu.
Client Name
View Menu
Items in the View menu control the Max Alerts window and how data is displayed in it. Menu Item Alerts Max Alerts New Locked Stay On Top Close On Use Action Performed Displays a list of all objects and their states. Displays a list of all objects whose state is equal to the highest state recorded in the OEM database. Creates a new Alerts or Max Alerts window. Locks or unlocks the window. Enables or disables the On Top property of the window. Enables or disables the Close On Use property of the window.
OEM Users Guide520330-001 4 -7
OEM Windows
Refresh Size Columns Align Windows Options Close Close All Display Windows
Refreshes the data in the window. Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions. Aligns OEM windows using the dimensions of the current window. Opens the OEM options dialog. Closes this window. Closes all OEM display windows.
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents. Displays the Help file search dialog. Displays OEM Server version information.
Clicking once sorts objects in ascending order. Clicking twice sorts objects in descending order.
To resize each of the columns in the window, select the divider between column headings and drag it right or left as desired. To resize all columns at once: 1. From the View menu, choose Size Columns.
OEM Windows
2. Choose Defaults, Size To Window, or Size To Contents. The behavior of each of these options is as follows: Menu Item Defaults Size To Window Size To Contents Action Performed Sizes each column using the saved value for that column. Sizes each column using a fixed percentage of available space. Sizes each column based on the largest item in the column.
The OEM saves the adjusted column widths in the system registry. These values are used the next time a Max Alerts window is created.
To align Max Alerts windows, choose Align Windows from the View menu. All Max Alerts windows are tiled and resized to match the current window. To specify the tiling method, from the OEM Options window General tab, choose Top Down or Side By Side.
To lock a display window, from the View menu, choose Locked. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu.
To unlock a display window and reenable updates, choose Locked from the View menu again. The (Locked) indicator disappears, and the OEM updates the window the next time new data is received.
Repeatedly selecting Locked from the View menu toggles the locked attribute on and off.
OEM Windows
If Display Forms Stay On Top is checked, the new window is created with its On Top property enabled. If Display Forms Stay On Top is not checked, the new window is created with its On Top property disabled. If Stay On Top is checked on the View menu, the current window is an On Top window. To disable the On Top attribute, choose Stay On Top from the View menu . If Stay On Top is not checked on the View menu, the current window is not an on top window. To enable the On Top attribute, choose Stay On Top from the View menu. Repeatedly selecting Stay On Top from the View menu toggles the On Top attribute on and off.
To override the default value and toggle the On Top property of an individual window:
OEM Windows
Right-click the OEM icon in the system tray and choose Show Clients from the menu. From the View menu of an OEM Objects window or Popups window, choose Clients. From the OEM Options window Advanced tab, choose Clients. If Re-Use Display Forms is checked, a Clients window is created the first time you choose Clients from a menu. If you subsequently choose Clients from a menu again, the existing Clients window is used to display the newly requested data.
The Re-Use Display Forms option setting affects how Clients windows are created:
If Re-Use Display Forms is cleared, a new Clients window is created every time you choose Clients from a menu.
App Name
OEM Windows
The name of the client applications OLE callback class, if one was supplied. A flag indicating whether the client will participate in window management callbacks (for example, tile or cascade) from the OEM. This value is updated whenever the OEM attempts to perform a window management operation, so the value displayed in the Clients window might not be current if the client application has changed its setting since the last window management callback. The index of the OLE object used by the client to communicate with the OEM.
Instance ID
View Menu
Items in the View menu control the Clients window and how data is displayed in it. Menu Item Clients Objects Popups Locked Stay On Top Refresh Size Columns Align Windows Options Close Close All Display Windows Action Performed Displays a list of all active client applications. Displays a list of all objects contained in the OEM database. Displays a list of all popup menu items defined in the OEM. Locks or unlocks the window. Enables or disables the On Top property of the window. Refreshes the data in the window. Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions. Aligns OEM windows using the dimensions of the current window. Opens the OEM options dialog. Closes this window. Closes all OEM display windows.
OEM Windows
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents. Displays the Help file search dialog. Displays OEM Server version information.
Clicking once sorts objects in ascending order. Clicking twice sorts objects in descending order.
To resize each of the columns in the window, select the divider between column headings and drag it right or left as desired. To resize all columns at once: 1. From the View menu, choose Size Columns. 2. Choose Defaults, Size To Window, or Size To Contents. The behavior of each of these options is as follows: Menu Item Defaults Size To Window Size To Contents Action Performed Sizes each column using the saved value for that column. Sizes each column using a fixed percentage of available space. Sizes each column based on the largest item in the column.
The OEM saves the adjusted column widths in the system registry. These values are used the next time a Clients window is created.
To align Clients windows, choose Align Windows from the View menu. All Clients windows are tiled and resized to match the current window.
OEM Windows
To specify the tiling method, choose Top Down or Side By Side from the OEM Options window General tab.
To lock a display window, choose Locked from the View menu. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu.
To unlock a display window and re-enable updates, choose Locked from the View menu again. The (Locked) indicator disappears, and the OEM updates the window the next time new data is received.
Repeatedly selecting Locked from the View menu toggles the locked attribute on and off.
If Display Forms Stay On Top is checked, the new window is created with its On Top property enabled. If Display Forms Stay On Top is not checked, the new window is created with its On Top property disabled. If Stay On Top is checked on the View menu, the current window is an On Top window. To disable the On Top attribute, choose Stay On Top from the View menu. If Stay On Top is not checked on the View menu, the current window is not an On Top window. To enable the On Top attribute, choose Stay On Top from the View menu. Repeatedly selecting Stay On Top from the View menu toggles the On Top attribute on and off.
To override the default value and toggle the On Top property of an individual window:
OEM Windows
Right-click the OEM icon in the system tray and choose Show Objects from the menu. Choose Objects from an OEM Clients window View menu or Popups window menu. Choose Objects from the OEM Options window Advanced tab.
The Re-Use Display Forms option setting affects objects window creation: If Re-Use Display Forms is checked, an Objects window is created the first time you choose Objects from a menu. If you subsequently choose Objects from a menu again, the existing Objects window is used to display the newly requested data.
If Re-Use Display Forms is cleared, a new Objects window is created every time you choose Objects from a menu.
OEM Windows
Path
Name Clients
State
Context
Client Name
OEM Windows
Callback
Indication of whether the client application has supplied a callback object. For Endpoints, this field contains the value <Present> if a callback object was supplied or <Nothing> if a callback object was not supplied. For Branches that have corresponding Endpoints at the same level, this field contains the callback indicator associated with the client that reported the maximum state of the object. For Branches that have no corresponding Endpoints at the same level, this field contains <n/a>. Indication of whether this object has been marked for removal from the OEM object database. This field applies only to Endpoints. For Branches, this field contains <n/a>. The number of Branch objects immediately after this object in the hierarchy. This field applies to Branches only. For Branches that contain no subobjects, this field contains NI or 0. For Endpoints, this field contains <n/a>. The propagated state of the object. This field applies to Branches only. The propagated state is the highest state of any subobject of the current object. For Endpoints, this field contains <n/a>. The propagated context of the object. This field applies to Branches only. The propagated context is the context string associated with the propagated state value. For Endpoints, this field contains <n/a>. The propagated client name of the object. This field applies to Branches only. The propagated client name is the name of the client that reported the propagated state value. For Endpoints, this field contains <n/a>. Indication of whether a callback object has been propagated. This field applies to Branches only. The propagated callback contains the value <Present> if the client that reported the propagated state value supplied a callback object. If no callback object was supplied, this field contains <Nothing>. For Endpoints, this field contains <n/a>. The name of the owner of this object. This value should match the name of the object one level above this object and applies to Branches only. For root-level Branches, this field is blank. For Endpoints, this field contains <n/a>.
Deleted
Sub Objects
Prop. State
Prop. Context
Prop. Callback
Parent Name
OEM Windows
View Menu
Items in the View menu control the Objects window and how data is displayed in it. Menu Item Clients Objects Popups Locked Stay On Top Refresh Size Columns Align Windows Options Close Close All Display Windows Action Performed Displays a list of all active client applications. Displays a list of all objects contained in the OEM database. Displays a list of all pop-up menu items defined in the OEM. Locks or unlocks the window. Enables or disables the On Top property of the window. Refreshes the data in the window. Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions. Aligns OEM windows using the dimensions of the current window. Opens the OEM options dialog. Closes this window. Closes all OEM display windows.
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents. Displays the Help file search dialog. Displays OEM Server version information.
Clicking once sorts objects in ascending order. Clicking twice sorts objects in descending order.
OEM Windows
To resize each of the columns in the window, select the divider between column headings and drag it right or left as desired. To resize all columns at once: 1. From the View menu, choose Size Columns. 2. Choose Defaults, Size To Window, or Size To Contents. The behavior of each of these options is as follows: Menu Item Defaults Size To Window Size To Contents Action Performed Sizes each column using the saved value for that column. Sizes each column using a fixed percentage of available space. Sizes each column based on the largest item in the column.
The OEM saves the adjusted column widths in the system registry. These values are used the next time an Objects window is created.
To align Objects windows, choose Align Windows from the View menu. All Objects windows are tiled and resized to match the current window. To specify the tiling method, choose Top Down or Side By Side from the OEM Options window General tab.
To lock a display window, choose Locked from the View menu. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu.
To unlock a display window and re-enable updates, choose Locked from the View menu again.
OEM Users Guide520330-001 4- 19
OEM Windows
The (Locked) indicator disappears, and the OEM updates the window the next time new data is received.
Repeatedly selecting Locked from the View menu toggles the locked attribute on and off.
If Display Forms Stay On Top is checked, the new window is created with its On Top property enabled. If Display Forms Stay On Top is not checked, the new window is created with its On Top property disabled. If Stay On Top is checked on the View menu, the current window is an On Top window. To disable the On Top attribute, choose Stay On Top from the View menu. If Stay On Top is not checked on the View menu, the current window is not an On Top window. To enable the On Top attribute, choose Stay On Top from the View menu. Repeatedly selecting Stay On Top from the View menu toggles the On Top attribute on and off.
To override the default value and toggle the On Top property of an individual window:
OEM Windows
Right-click the OEM icon in the system tray and choose Show Popups from the menu. From an OEM Clients window View menu or Objects window menu, choose Popups. From the OEM Options window Advanced tab, choose Popups. If Re-Use Display Forms is checked, an Popups window is created the first time you choose Popups from a menu. If you subsequently choose Popups from a menu again, the existing Popups window is used to display the newly requested data. If Re-Use Display Forms is cleared, a new Popups window is created every time you choose Popups from a menu.
The Re-Use Display Forms option setting impacts how the Popups window is created:
OEM Windows
The fully qualified name of the client applications program file. The name of the client applications OLE callback class, if one was supplied. Callback Type defines how you invoke this menu item and callback. Possible values are:
No value No value indicates that there is no special handling for this menu item. To cause the callback to be invoked, you must choose the item from a popup menu in the enterprise management framework.
<DoubleClick> "<DoubleClick>" causes the client to receive an automatic callback whenever you double-click an item in the enterprise management framework whose class name matches the popups Entity Name. For example, if you double-click DISK in a framework, the <DoubleClick> popup item associated with DISK is automatically invoked. This allows default actions to be associated with double-click events and allows you to bypass the step of bringing up the popup menu.
<Click> "<Click>" causes the client to receive an automatic callback whenever you click an item in the enterprise management framework whose class name matches the popups Entity Name. For example, if you click DISK in a framework, the <Click> popup item associated with DISK is automatically invoked. This allows default actions to be associated with click events and allows you to bypass the step of bringing up the pop-up menu.
View Menu
Items in the View menu control the Popups window and how data is displayed in it. Menu Item Clients Objects Popups Action Performed Displays a list of all active client applications. Displays a list of all objects contained in the OEM database. Displays a list of all popup menu items defined in the OEM.
OEM Users Guide520330-001 4- 22
OEM Windows
Locked Stay On Top Refresh Size Columns Align Windows Options Close Close All Display Windows
Locks or unlocks the window. Enables or disables the On Top property of the window. Refreshes the data in the window. Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions. Aligns OEM windows using the dimensions of the current window. Opens the OEM options dialog. Closes this window. Closes all OEM display windows.
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents. Displays the Help file search dialog. Displays OEM Server version information.
Clicking once sorts objects in ascending order. Clicking twice sorts objects in descending order.
To resize each of the columns in the window, select the divider between column headings and drag it right or left as desired. To resize all columns at once: 1. From the View menu, choose Size Columns.
OEM Windows
2. Choose Defaults, Size To Window, or Size To Contents. The behavior of each of these options is as follows: Menu Item Defaults Size To Window Size To Contents Action Performed Sizes each column using the saved value for that column. Sizes each column using a fixed percentage of available space. Sizes each column based on the largest item in the column.
The OEM saves the adjusted column widths in the system registry. These values are used the next time a Popups window is created.
To align Popups windows, choose Align Windows from the View menu. All Popups windows are tiled and resized to match the current window. To specify the tiling method, choose Top Down or Side By Side from the OEM Options window General tab.
To lock a display window, choose Locked from the View menu. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu.
To unlock a display window and re-enable updates, choose Locked from the View menu again. The (Locked) indicator disappears, and the OEM updates the window the next time new data is received.
Repeatedly selecting Locked from the View menu toggles the locked attribute on and off.
OEM Windows
If Display Forms Stay On Top is checked, the new window is created with its On Top property enabled. If Display Forms Stay On Top is not checked, the new window is created with its On Top property disabled. If Stay On Top is checked on the View menu, the current window is an On Top window. To disable the On Top attribute, choose Stay On Top from the View menu. If Stay On Top is not checked on the View menu, the current window is not an On Top window. To enable the On Top attribute, choose Stay On Top from the View menu. Repeatedly selecting Stay On Top from the View menu toggles the On Top attribute on and off.
To override the default value and toggle the On Top property of an individual window:
OEM Windows
View Menu
Items in the View menu control the Popup Navigation window and how data is displayed in it. Menu Item Locked Stay On Top Refresh Size Columns Align Windows Options Close Close All Display Windows Action Performed Locks or unlocks the window. Enables or disables the On Top property of the window. Refreshes the data in the window. Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions. Aligns OEM windows using the dimensions of the current window. Opens the OEM options dialog. Closes this window. Closes all OEM display windows.
OEM Windows
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents. Displays the Help file search dialog. Displays OEM Server version information.
Clicking once sorts objects in ascending order. Clicking twice sorts objects in descending order.
To resize each of the columns in the window, select the divider between column headings and drag it right or left as desired. To resize all columns at once: 1. From the View menu, choose Size Columns. 2. Choose Defaults, Size To Window, or Size To Contents. The behavior of each of these options is as follows: Menu Item Defaults Size To Window Size To Contents Action Performed Sizes each column using the saved value for that column. Sizes each column using a fixed percentage of available space. Sizes each column based on the largest item in the column.
The OEM saves the adjusted column widths in the system registry. These values are used the next time a Popup Navigation window is created.
To align Popup Navigation windows, choose Align Windows from the View menu. All Popup Navigation windows are tiled and resized to match the current window.
OEM Windows
To specify the tiling method, from the OEM Options window General tab, choose Top Down or Side By Side.
To lock a display window, choose Locked from the View menu. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu.
To unlock a display window and re-enable updates, choose Locked from the View menu again. The (Locked) indicator disappears, and the OEM updates the window the next time new data is received.
Repeatedly selecting Locked from the View menu toggles the locked attribute on and off.
If Display Forms Stay On Top is checked, the new window is created with its On Top property enabled. If Display Forms Stay On Top is not checked, the new window is created with its On Top property disabled. If Stay On Top is checked on the View menu, the current window is an On Top window. To disable the On Top attribute, choose Stay On Top from the View menu. If Stay On Top is not checked on the View menu, the current window is not an on top window. To enable the On Top attribute, choose Stay On Top from the View menu. Repeatedly selecting Stay On Top from the View menu toggles the On Top attribute on and off.
To override the default value and toggle the On Top property of an individual window:
OEM Windows
Right-click the OEM icon in the system tray and choose Show Log from the menu. From the OEM Options window Advanced tab, choose Log.
The Re-Use Display Forms option setting does not affect log window creation. The OEM always reuses an existing log window unless that window is locked.
OEM Windows
Severity
Indication of how critical the message is. The possible values are: 1 = Informational message only. 2 = Warning message. An error occurred, but the OEM can continue to function normally. One or more adapters or clients might be affected, however. 3 = Critical error. The ability of the OEM to continue functioning might be affected.
Msg #
The application-defined message number associated with the event. Because the OEM Server and each adapter and client exist independently, log message numbers could overlap between applications. The application-defined message text.
Msg Text
View Menu
Items in the View menu control the Log window and how data is displayed in it. Menu Item Locked Stay On Top Refresh Size Columns Align Windows Options Close Close All Display Windows Action Performed Locks or unlocks the window. Enables or disables the On Top property of the window. Refreshes the data in the window. Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions. Aligns OEM windows using the dimensions of the current window. Opens the OEM options dialog. Closes this window. Closes all OEM display windows.
OEM Windows
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents. Displays the Help file search dialog. Displays OEM Server version information.
Clicking once sorts objects in ascending order. Clicking twice sorts objects in descending order.
To resize each of the columns in the window, select the divider between column headings and drag it right or left as desired. To resize all columns at once: 1. From the View menu, choose Size Columns. 2. Choose Defaults, Size To Window, or Size To Contents. The behavior of each of these options is described in the following table: Menu Item Defaults Size To Window Size To Contents Action Performed Sizes each column using the saved value for that column. Sizes each column using a fixed percentage of available space. Sizes each column based on the largest item in the column.
The OEM saves the adjusted column widths in the system registry. These values are used the next time a Log window is created.
To align Log windows, choose Align Windows from the View menu. All Log windows are tiled and resized to match the current window.
OEM Windows
To specify the tiling method, from the OEM Options window General tab, choose Top Down or Side By Side.
To lock a display window, choose Locked from the View menu. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu.
To unlock a display window and re-enable updates, choose Locked from the View menu again. The (Locked) indicator disappears, and the OEM updates the window the next time new data is received.
Repeatedly selecting Locked from the View menu toggles the locked attribute on and off.
If Display Forms Stay On Top is checked, the new window is created with its On Top property enabled. If Display Forms Stay On Top is not checked, the new window is created with its On Top property disabled. If Stay On Top is checked on the View menu, the current window is an On Top window. To disable the On Top attribute, choose Stay On Top from the View menu. If Stay On Top is not checked on the View menu, the current window is not an On Top window. To enable the On Top attribute, choose Stay On Top from the View menu. Repeatedly selecting Stay On Top from the View menu toggles the on top attribute on and off.
To override the default value and toggle the On Top property of an individual window:
OEM Windows
OEM Windows
Description The OEM encountered an error while maintaining its popup menu table. The OEM encountered an error while maintaining its object tables. The OEM encountered an error while maintaining its client table. The OEM encountered an error while maintaining its adapter table. The OEM encountered an error while accessing the system registry. The OEM encountered an error while processing a Custom View definition file.
Right-click the OEM icon in the system tray and choose Show Stats from the menu. Choose Stats from the OEM Options window Advanced tab.
Statistics window creation is not impacted by the Re-Use Display Forms option setting. The OEM displays only one Statistics window.
OEM Windows
View Menu
Items in the View menu control the Statistics window and how data is displayed in it. Menu Item Auto Refresh Refresh Close Action Performed Enables or disables automatic refresh of data displayed in the window. Manually refreshes the data displayed in the window. Closes this window.
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file table of contents. Displays the Help file search dialog. Displays OEM Server version information.
Clicking once sorts objects in ascending order. Clicking twice sorts objects in descending order.
If Auto Refresh is checked on the View menu, the data in the Statistics window are refreshed automatically. To disable automatic refresh, choose Auto Refresh from the View menu. If Auto Refresh is not checked on the View menu, the data in the Statistics window are not refreshed automatically. To re-enable automatic refresh, choose Auto Refresh from the View menu.
OEM Users Guide520330-001 4- 35
OEM Windows
Repeatedly selecting Auto Refresh from the View menu toggles the auto refresh attribute on and off.
OEM Windows
Counter Name Custom View Forms Active Display Forms Active Log Message Class Instances Log Table Class Instances Message Class Instances Messages Logged Object Class Instances Object Hierarchy Class Instances Object Info Class Instances Object Table Class Instances Object Table Items Object-Client Class Instances Object-Client Collection Class Instances Objects Added Objects Deleted Objects Updated OEM Server Callback Class Instances OEM Server Request Class Instances
Description The number of OEM Custom View forms that are active. The number of OEM display forms that are active, not including Statistics, Icons, Trace, or About windows. The number of items contained in the activity log. The number of log tables in the OEM. This value should be 1 in most cases. The number of internal OEM message objects in existence. Except under load, this number should be 0. The total number of messages logged. This value could be greater than the Log Message Class Instances value if the number of messages logged exceeds the configured capacity of the OEM activity log. The number of active Object Interface objects. There should be one of these for each active client application. The number of Branch objects contained in the OEM Object database.
The number of temporary Object Info objects. These objects are used to store object data for display purposes. This value should be 0 in most cases. The number of object tables in the OEM. This value should be 1 in most cases. The number of entries in the OEM object database. The number of Endpoints in the OEM Object database. The number of collection objects used to store Endpoint data for the same object. The number of items added to the OEM Object database or to Custom Views. The number of items deleted from the OEM Object database or from Custom Views. The number of items updated in the OEM Object database or in Custom Views. The number of active OEM callback objects. There should be one of these for each active adapter. The number of active request class objects. There should be one of these for each active client application.
OEM Windows
Counter Name Options Class Instances Popup Class Instances Popup Info Class Instances Popup Query Class Instances Popup Table Class Instances Popup Table Items Popups Added Popups Deleted Popups Updated Queue Class Instances Request Queue Items Sends To Client Specifier Class Instances String Class Instances
Description The number of options objects in the OEM. This value should be 1 in most cases. The number of active Popup Interface objects. There should be one of these for each active client application. The number of objects created to track entries in the Popup database. This value should match the Popup Table Items value. The number of active Popup Query objects. These objects are used to track queries against the Popup database. In general, this value should be 0 unless a callback or menu command is being processed. The number of popup tables in the OEM. This value should be 1 in most cases. The number of entries in the OEM Popup database. The number of items added to the OEM Popup database. The number of items deleted from the OEM Popup database. The number of items updated in the OEM Popup database. The number of OEM internal queues. This value should be 2. The number of request items waiting to be processed by the OEM. Except when actually processing a request, this number should be 0. The number of messages sent to client applications. The number of active Specifier objects. These objects are used by Custom Views to filter data from the Object database. There should be one object for each specifier of each active Custom View. The number of active OEM String objects. These objects are normally used during initialization and update processing. This value should be 0 under most circumstances.
Right-click the OEM icon in the system tray and choose Options from the menu.
OEM Users Guide520330-001 4- 38
OEM Windows
From the View menu of any OEM display window, choose Options. The OEM Options dialog box displays.
2. Click the Advanced tab. 3. Click the Icons button in the Windows panel. An Icons window displays. The Re-Use Display Forms option setting does not affect icons window creation. The OEM will display only one Icons window.
Right-click the OEM icon in the system tray and choose Options from the menu. Choose Options from the View menu of any OEM display window. The OEM Options dialog box displays.
2. Click the Logging tab. To enable API Error tracing, check the API/Error Trace Enabled check box. To enable Timer Event tracing, check the Timer Event Trace Enabled check box.
The trace window is created automatically by the OEM when the first data is written to the window. The Re-Use Display Forms option setting does not affect trace window creation. The OEM will display only one Trace window.
OEM Windows
Right-click the OEM icon in the system tray and choose About from the menu. From the OEM Options window Advanced tab, choose About. From any OEM display window Help menu, choose About.
The Re-Use Display Forms option setting does not affect about window creation. The OEM will display only one About window.
Custom Views
The OEM Server provides a Custom View facility that you can use to create your own logical groupings of OEM objects. You can base these groupings on any criteria you choose, and can include only objects whose states fall within the range you specified. By creating Custom Views, you can form subsets of OEM objects that span different branches of the object hierarchy. For example, all objects related to a particular application can be added to one view, while all objects related to another application can be added to another. You can also create views that group all objects of a like type, such as all CPUs or all disks, and then display the states and relationships of these objects separately from any unassociated objects. These Custom Views can help you more easily determine the state of entire applications and subsystems so you can detect and diagnose problems more quickly.
State Filtering
In addition to providing logical grouping of objects, Custom Views also permit you to add state filters as part of the view configuration. Using this state filtering mechanism, you can choose to only include objects in the view whose states fall within a particular range of values. For example, you might create a view of all objects that have failed or are in danger of failing; another view of all objects whose state has degraded since the prior update; and maybe another view that shows all objects that are up. By combining state filtering and logical grouping of objects, it becomes relatively easy to create a very refined view configuration that quickly and efficiently alerts you to problems in an application or subsystem.
Custom Views
values of underlying objects within that view only, and not within the OEM object database as a whole. For example, suppose the objects \Chicago\Disk\$System and \Chicago\Disk\$Data are added to the OEM object database, $System with a state of 6 and $Data with a state of 4. Within the OEM database and standard Alerts displays, \Chicago\Disk reflects the highest state of any subordinate object in this case 6, the state of $System. However, if you created a Custom View that included \Chicago\Disk\$Data, but not \Chicago\Disk\$System, the state of \Chicago\Disk within that view is 4 the state of $Data. Because \Chicago\Disk\$System was not included in the view configuration, the state of that drive has no impact on the Custom View. The Custom View always reflects the states of objects contained within it only, regardless of what is occurring elsewhere.
Custom Views
amount of data displayed at any given time to those items that are of most critical interest. You can switch between all client and max client modes whenever you want. The underlying view data is not changed.
Custom Views
Client Name
Custom Views
File Menu
Items in the File menu control the Custom View window. Menu Item New Custom View Open Save Save As Action Performed Creates a new Custom View window configured with the default properties. Opens an existing Custom View definition file using the current window. Saves the current Custom View properties to the active configuration file. Saves the current Custom View properties to a view configuration file that you specify, and changes the active configuration file to the new file. Closes this window. Closes all OEM display windows.
View Menu
Items in the View menu control the Custom View configuration and how data is displayed in the window. Menu Item Up One Level Properties Properties As Text Locked Stay On Top Size Columns Refresh OEM Options Action Performed Ascends one level in the object hierarchy when in hierarchical view mode. Displays the configuration dialog box for this view. Displays the properties of this view in text format. Locks or unlocks the window. Enables or disables the On Top property of the window. Sizes the display columns according to their contents, saved dimensions, or OEM default dimensions. Refreshes the data in the window. Displays the OEM Options dialog box.
Custom Views
The Toolbar
Help Menu
Items in the Help menu provide access to information about using the OEM Server. Menu Item Contents Search About Action Performed Displays the Help file Table of Contents. Displays the Help file Search dialog box. Displays OEM Server version information.
The Toolbar
The Custom View toolbar provides quick access to common commands and operations. The buttons included on the toolbar are: Open View Definition File Save Configuration Up One Level Refresh Lock Window/Unlock Window Configure View Properties Hierarchical View Object View Large Icons Small Icons List Details Size Columns Using Default Settings Size Columns Based on Window Size Size Columns Based on Contents Opens an existing Custom View definition using the current window. Saves the current Custom View properties to the active configuration file. Ascends one level in the object hierarchy when in hierarchical view mode. Refreshes the data in the window. Locks or unlocks the window. Displays the configuration dialog box for this view. Switches to hierarchical display mode. Switches to object list display mode. Displays data using large icon format. Displays data using small icon format. Displays data using list format. Displays data using detailed report format (all columns). Sizes columns using the default/saved settings. Sizes columns using fixed percentages of the existing window size. Sizes columns using the size of the maximum item in each column.
Custom Views
Setting Object Specifiers and State Filters on page 5-7 Choosing the Display Mode on page 5-12 Selecting the View Format on page 5-13 Selecting the Client State Reporting Option on page 5-14 Altering the Window Layout on page 5-14
Custom Views
contain any number of specifiers, and only objects that match at least one of the specifiers will be included in the view. Object Specifiers consist of two separate parts: a template string and an optional state filtering expression. The format of the template string must adhere to the following rules:
It can contain any number of levels. A backslash path delimiter must separate levels (\). Any level can contain the wildcard characters *, ?, and #, where * corresponds to any number of characters, ? corresponds to any single character, and # corresponds to any single digit from 0 through 9. The OEM reserved characters backslash (\) and comma (,) cannot be included. If the final level of the template is *, you do not need to include it unless it is at the root level. For example, \Chicago\Disk\* is equivalent to \Chicago\Disk from a template standpoint. At the root level, however, you must include the * to get all objects because a null specifier template will not match any objects.
For example, the template \*\Process matches all Process objects on all nodes. The template \SanFran\Disk\$Data* matches all Disk objects on node SanFran whose names begin with $Data. And the template \A*\*\?ATM* matches all objects on any node beginning with the letter A whose name began with any character, followed by the letters ATM, and optionally followed by any other text. The state filtering portion of a specifier, if supplied, allows you to further limit the number of items within a view by only including those objects whose states fall within a specified range. This capability lets you target the items of highest interest to you. For example, a specifier might be \*\CPU, State >= 6. This matches all CPUs on any node whose state is greater than or equal to 6. The OEM evaluates each views specifiers whenever a client application updates the OEM. This process involves querying the central OEM database and comparing each object to each specifier for each active view. If an object in the OEM database matches the specifiers template, and that objects state falls within the range dictated by the specifiers state filter expression, that object is added to the Custom View in question. Because each specifier is re-evaluated whenever the OEM is updated by a client application, it is critical to note here that the set of objects contained within a particular Custom View can change as these updates occur. For example, if you specify a state filter, and an objects state changes as part of an update, that object can no longer pass the filter and is removed from the view as a result.
Custom Views
To include all objects regardless of state, select the All option under Include States. To filter based on the state value, select the Filter option under Include States. The filter expression consists of a series of dropdown lists and state input fields. Supply a filter expression by selecting a comparison operator (<, <=, =, >=, >, <>) from the first dropdown list and then enter the comparison state value in the adjoining field. The up and down arrow controls on this field operate only in the range of 0 through 9 (the standard OEM state values), but you can enter any positive integer value directly in the field. If this completes the filter expression, select Done from the second drop-down list. If you want to add a second comparison to the filter expression, choose AND or OR from the second drop-down list and repeat the previous procedure for the second comparison operator and associated state value field.
When the OEM evaluates this specifier as part of updating a Custom View, an object must pass the entire filter expression to be included in that view. 5. Click OK to accept the new specifier, or Cancel to discard the entry. The Add New Specifier dialog box closes. 6. Click OK or Apply in the properties dialog box to save the change, or Cancel to discard it.
Custom Views
The properties dialog box for the Custom View appears. 2. Select the specifier to be updated. 3. Click Update or double-click the selected item. The Update Specifier dialog box for the chosen specifier appears. 4. Enter a specifier template. This value must conform to the rules described in Setting Object Specifiers and State Filters on page 5-7. 5. Enter a state filter. To include all objects regardless of state, select the All option under Include States. To filter based on the state value, select the Filter option under Include States. The filter expression consists of a series of dropdown lists and state input fields. Supply a filter expression by selecting a comparison operator (<, <=, =, >=, >, <>) from the first dropdown list and then enter the comparison state value in the adjoining field. The up and down arrow controls on this field operate only in the range of 0 through 9 (the standard OEM state values), but you can enter any positive integer value directly in the field. If this completes the filter expression, select Done from the second drop-down list. To add a second comparison to the filter expression, choose AND or OR from this drop-down list and repeat the previous procedure for the second comparison operator and associated state value field. When the OEM evaluates this specifier as part of updating a Custom View, an object must pass the entire filter expression to be included in that view. 6. Click OK to accept the changes, or click Cancel to discard them. The Update Specifier dialog box closes. 7. Click OK or Apply in the properties dialog box to save the change, or click Cancel to discard it.
Custom Views
4. Click OK or Apply in the properties dialog box to save the change, or click Cancel to discard it.
Custom Views
To include all objects regardless of state, click All. To enter a filter expression, click Filter.
Filter expression
To include all objects regardless of state, select the All option under Include States. To filter based on the state value, select the Filter option under Include States. The filter expression is made up of a series of dropdown lists and state input fields. Supply a filter expression by selecting a comparison operator (<, <=, =, >=, >, <>) from the first dropdown list and then enter the comparison state value in the adjoining field. The up and down arrow controls on this field operate only in the range of 0 through 9 (the standard OEM state values), but you can enter any positive integer value directly into the field. If this completes the filter expression, select DONE from the second drop-down list. To add a second comparison to the filter expression, choose AND or OR from this drop-down list and repeat the previous procedure for the second comparison operator and associated state value field. When the OEM evaluates this specifier as part of updating a Custom View, an object must pass the entire filter expression to be included in that view.
Custom Views
The object-based display is virtually identical to the standard Alerts window: it shows a list of all lowest-level objects contained in the view. No navigation is needed to find the state of an object. All information is easily at hand, so there is no need to move through different levels of the hierarchy to find specific object-state information, but information for a specific object can be difficult to find as the number of entries increases. To choose a display mode: 1. Choose Properties from the View menu, or click the Configure View Properties button on the toolbar. The properties dialog box for the Custom View appears. 2. Specify the display mode:
To display objects hierarchically, click Hierarchical in the Mode panel. To display objects using a simple list, click Object in the Mode panel.
To quickly switch between hierarchical and object display modes, click the Hierarchical View and Object View buttons on the toolbar. 3. Click OK or Apply to save the change, or click Cancel to discard it.
Small Icons
List
Details
To specify the view format: 1. Choose Properties from the View menu, or click the Configure View Properties button on the toolbar. The properties dialog box for the Custom View appears.
Custom Views
To use large icon format, click Large Icon in the View panel. To use small icon format, click Small Icon in the View panel. To use list format, click List in the View panel. To use details format, click Details in the View panel.
To quickly switch between the various view formats, click the Large Icons, Small Icons, List, and Details buttons on the toolbar. 3. Click OK or Apply to save the change, or click Cancel to discard it.
To display all reported states for each object, click All Clients in the State Reporting panel. To display only the maximum reported state for each object, click Max Client in the State Reporting panel.
Custom Views
The properties dialog box for the Custom View appears. 2. Configure the window layout:
To enable the toolbar, check the Toolbar check box in the Display panel. To disable the toolbar, clear the Toolbar check box in the Display panel. To enable the status bar, check the Status Bar check box in the Display panel. To disable the status bar, clear the Status Bar check box in the Display panel. To enable the links bar, check the Links Bar check box in the Display panel. To disable the links bar, clear the Links Bar check box in the Display panel. You can change the Links Bar setting only while in hierarchical display mode; the links bar is automatically disabled when in object view display mode.
Note. As a shortcut, you can disable the links bar by dragging the divider located between the links bar and the object list off the left side of the window.
Creating a New Custom View on page 5-16 Opening an Existing Custom View on page 5-16 Saving a Custom View Configuration on page 5-17 Sorting Custom View Window Items on page 5-17 Sizing Custom View Window Columns on page 5-17 Locking the Custom View Window on page 5-18 Keeping the Custom View Window on Top on page 5-18 Refreshing Custom View Window Contents on page 5-19 Navigating to Client Applications on page 5-19 Closing a Custom View Window on page 5-19
Custom Views
Right-click the OEM icon in the system tray and choose New Custom View. From a Custom View windows File menu, choose New Custom View.
A new Custom View window named Default is created using the default configuration settings. 2. Alter these settings as desired. For example, you can add or remove specifiers and state filters or change the display mode. 3. Save the configuration to a new Custom View definition file by choosing Save As from the File menu. The new file name is used as the name of the new view. By default, view definition files are saved to the OEM_program_directory\Views folder, but you can change this location when you save the configuration.
Note. Saving the configuration using the default view name of Default updates the default configuration for all subsequent new views. This action can be useful if, for example, you want to use a certain set of configuration properties in all cases. By updating the default configuration settings, all new views pick up these options automatically, reducing the number of options you must set each time you create a new view.
Custom Views
properties of the window (such as view format and window position) are used rather than the settings stored in the view definition file. The Custom View window is updated with the new view name, and the data is refreshed using the specifiers defined in the view definition file. In addition, the view definition file becomes the active definition file for the view, and subsequent save operations default to that location. In addition, at startup the OEM Server automatically opens any Custom View windows that were active the last time the OEM was shut down.
Click once to sort objects in ascending order. Click twice to sort objects in descending order.
The sort order is preserved if you subsequently switch to Large Icons, Small Icons, or List view.
Custom Views
To resize all columns at once: 1. From the View menu, choose Size Columns. 2. Choose Defaults, Size To Window or Size To Contents: Menu Item Defaults Size To Windows Size To Contents Action Performed Sizes each column using the saved value for that column. Sizes each column using a fixed percentage of available space. Sizes each column based on the largest item in the column.
The OEM stores the adjusted column widths in the view definition file when you subsequently save the view configuration. The values are then restored the next time the view is opened.
To lock a Custom View window, choose Locked from the View menu from the menu, or click Lock Window on the toolbar. The indicator (Locked) is appended to the window title, and the OEM does not update the window contents if new data is received. You can manually update the window at any time by choosing Refresh from the View menu from the menu or by clicking Refresh on the toolbar. To unlock a display window and re-enable updates, choose Locked from the View menu from the menu, or click Unlock Window on the toolbar. The (Locked) indicator disappears, and the OEM updates the window the next time new data is received. Repeatedly selecting Locked from the View menu from the menu or clicking Lock Window/Unlock Window on the toolbar toggles the locked attribute on and off.
Custom Views
To override the default value and toggle the On Top property of an individual window:
If Stay On Top on the View menu is checked, the current window is an On Top window. Choose Stay On Top from the View menu to disable the On Top attribute. If Stay On Top on the View menu is not checked, the current window is not an On Top window. Choose Stay On Top from the View menu to enable the On Top attribute. Repeatedly selecting Stay On Top from the View menu toggles the On Top attribute on and off.
Custom Views
The OEM external specification serves as a reference for developers wanting to use the OEM Server in their own development efforts. The following sections detail the OEM architecture and provide descriptions of the APIs for both client applications and enterprise management framework adapters.
Component Terminology
The following component terms are used in this specification: Adapter- A generic term used to describe the general notion of an interface adapter. It can be either the EM Adapter or the OEM Adapter. Client - Client applications that use the OEM Server. Enterprise Management (EM) Adapter - Adapter that provides an encapsulated adapter interface between the enterprise management framework and the OEM Server. It is an ActiveX component. Enterprise Management (EM) Framework - The enterprise management framework currently operating on the workstation. For example, a framework can be the Compaq OIL or Tivoli. From the client and OEM Server perspective, it does not matter which framework is running. OEM Adapter - A generic adapter used by the OEM Gateway. This adapter also serves as an adapter skeleton as well as a means for development, test, and validation of an enterprise specific adapter. It is an ActiveX component. OEM Gateway - The overall Open Enterprise Management architecture described in this document, including the OEM Server, OEM Adapter, EM Adapter, and associated request and callback API calls. OEM Server - The Open Enterprise Management Server portion of the OEM Gateway described in this document. The OEM Server provides communication between the Clients and the EM Adapter. The EM Adapter in turn communicates with the enterprise management framework. It is an ActiveX component.
Interface Terminology
The following interface terms are used in this specification. Figure A-1 shows a possible information path.
Architectural Overview
EM Adapter
VST100.vsd
OEM Request API - the interface between the clients and the OEM Server. Adapter Request API - the interface between the OEM Server and the Adapter. Adapter Callback API - the callback interface between the EM framework and the EM Adapter. OEM Callback API - the callback interface between the EM Adapter and the OEM Server. Client Callback API - the callback interface between the OEM Server and the clients.
Architectural Overview
The OEM Gateway consists of two functional pieces:
The Open Enterprise Management Server (OEM Server) One or more Enterprise Management framework adapters (EM Adapters)
The OEM Server acts as the interface to client applications and includes the following features: Standard OEM Gateway Request API Standard Client Callback API Inbound and outbound queues to prevent application blocking and deadlocks
OEM Users Guide520330-001 A- 2
Architectural Overview
Management of EM framework updates, including object aggregation and state arbitration Client tracking to enable framework callbacks to client applications Servicing of EM framework alerts, automatically directing the user to the appropriate client for the highest alert level Debugging and trace mechanisms to assist in client application development Graphical user interface (GUI) to configure OEM options and view the OEM state User-definable views for custom filtering and logical grouping of objects
The EM Adapter is responsible for interfacing with a specific enterprise management framework It includes the following: Standard Adapter Request API Standard OEM Gateway Callback API Translation of requests to framework-specific operations State propagation in cases where the OEM Server reports on objects at a lower level than the framework Translation of EM framework notifications or callbacks to OEM Gateway standard callbacks and commands
Architecture and Design Considerations for the OEM Server (next) OEM Request API (Client Application to OEM) on page A-5 Client Callback API (OEM to Client Application) on page A-23
Use the OEM Request API to pass request information to the OEM. For more information, see OEM Request API (Client Application to OEM) on page A-5. Support OLE Automation callbacks, which effectively means it must run as an ActiveX EXE. Create a callback class that implements the Client Callback API to receive command information from the OEM. For more information, see Client Callback API (OEM to Client Application) on page A-23.
The OEM Request API allows client applications to add managed objects and their corresponding popup menus to the framework, set object state, and remove managed objects or popups from the framework. In addition, the OEM request API also supplies a set of debugging methods to assist in client application development. The intent is that this standardized interface be simple to use from a client standpoint; the EM Adapter portion of the OEM Gateway handles all framework-specific issues. The Client Callback API provides a standard means of communicating framework notification or command information back to client applications. The client is not required to have any knowledge of the workings of the framework; the only requirement is that the client must completely implement the set of methods and properties that make up the API. The OEM Server is a shared resource; as such, it could potentially become a bottleneck for client applications or the EM framework. To remedy this situation, the OEM Server maintains inbound and outbound queues on both the request and callback side. It immediately queues all requests received from clients and replies to them. This prevents clients from being blocked while the server is processing the request. The same mechanism is used when processing callbacks from the EM framework adapter; the server queues the commands and replies to the request. This allows the adapter (and potentially the framework) to continue with other operations while the callback is being handled by the server.
ReportingLevels
ReportingLevels returns the number of levels the OEM Server requires in the object hierarchy. All clients must ensure that they report objects at this level. For example, if ReportingLevels is 3, the OEM Server expects to receive objects in the form \node\entity_type\object_name, where:
node
is a node name.
entity_type
is the name of the actual object. If ReportingLevels is 1, only \node would be expected.
Function ReportingLevels() As Integer
Parameters None Return Value The number of levels in the OEM Server object hierarchy. Considerations All clients using the OEM must determine the supported ReportingLevels before reporting objects to the OEM and must report only at that level. Because ReportingLevels is user-configurable, clients should check the value before every OEM update. Example
Dim OEM As New OEMClass Dim Levels As Integer Levels = OEM.ReportingLevels
Popup.Add
Use Popup.Add to add a popup menu for a given entity (class or object) to the EM Framework. The framework subsequently uses the popup to direct commands back to the OEM Gateway, which in turn passes them through to the appropriate client application. In some cases, the framework might not support true dynamic menus, instead relying on static menus or other means of invoking commands against objects. In these cases, the popups might not be added to the framework, but popup menu definitions are still required by the OEM Gateway to route these commands to the correct client.
Function Popup.Add(EntityName As String, MenuCaption As String, CallbackCommand As String, CallbackObject As Object, CallbackAppName As String, CallbackClassName As String, CallbackType As String, ClientName As String) As Integer
Parameters
EntityName (input)
is the name of the entity to which the popup applies. This menu can be associated with entries at any level in the object hierarchy. For example, specifying CPU for EntityName associates the popup menu with all CPU objects. Specifying \Dallas\CPU\0 associates the menu only with CPU 0 on node Dallas.
MenuCaption (input)
is the caption that appears on the popup menu for this item.
CallbackCommand (input)
is the command returned to the client application when this menu item is selected. This command can be any text and is completely at the discretion of the client application. This allows clients to determine what command they receive when a particular menu item is chosen instead of requiring the OEM Gateway or EM framework to impose a set of rules.
CallbackObject (input)
is the clients instantiated callback object. This must be specified; otherwise the OEM Gateway cannot pass the command back to the client application.
CallbackAppName (input)
is the fully qualified (path included) name of the client application. This is retained by the OEM Gateway to programmatically start the client if needed.
CallbackClassName (input)
is the name of the clients callback class. This is required in cases where the CallbackObject reference has become invalid and the OEM Gateway must create a new callback object for the client to return command information.
OEM Users Guide520330-001 A- 6
CallbackType (input)
specifies whether this is a special type of menu item and callback, as follows:
'<DoubleClick>'
causes the client to receive an automatic callback when a user double-clicks an item in the framework where the object class name matches EntityName (for example, EntityName is Disk, and the user double-clicks Disk in the framework). This allows default actions to be associated with double-click events, rather than requiring a user to always bring up the complete popup menu.
'<Click>'
causes the client to receive an automatic callback when a user clicks an item in the framework where the object class name matches EntityName (for example, EntityName is Disk, and the user clicks Disk in the framework). This allows default actions to be associated with click events, rather than requiring a user to always bring up the complete popup menu.
'<Expand>'
causes the client to receive an automatic callback when a user expands a branch of the object hierarchy where the object class name matches EntityName (for example, EntityName is Disk, and the user expands the Disk branch of the hierarchy in the framework). This makes it easy for clients to dynamically populate frameworks on a demand basis as the user navigates to lower levels of the hierarchy.
'<Collapse>'
causes the client to receive an automatic callback when a user collapses a branch of the object hierarchy where the object class name matches EntityName (for example, EntityName is Disk, and the user collapses the Disk branch of the hierarchy in the framework). This makes it easy for clients to dynamically depopulate or clean up frameworks on a demand basis as the user ascends the hierarchy. Set this parameter to to disable any special handling for this menu item. Not all frameworks support this feature.
ClientName (input)
is a client-defined name used to identify the owner of the popup. For most clients this can simply be the application name. However, more complex clients might need to use more than one ClientName and CallbackObject to localize processing for different types of commands (for example, one ClientName and CallbackObject for DISK commands and another for CPU commands).
Return Value
0 if the request was queued successfully An OEM error number if an error occurred
Considerations For a client application to receive Max Alert callback commands, it must add a popup entry with the caption Max Alert. When the user selects Max Alert from the popup menu, the OEM Gateway determines which client is reporting the highest alert level for the selected object and callback to that client using the specified CallbackObject. For a client application to enable Alert callbacks, it must add a popup entry with the caption Alerts. When the user selects Alerts from the popup menu, the OEM Gateway displays a list of all clients reporting an alert for the selected object. The user can then choose which one is of interest, and the OEM Gateway calls back to the appropriate client using the specified CallbackObject. If the given MenuCaption already exists for this EntityName, the user can choose the desired client whenever that menu item is selected. For example, assume both NsxGem and OMF GUI add a menu item with caption Status to the CPU entity. If a user subsequently chooses Status from a popup menu in the framework, the OEM Gateway displays a dialog listing both clients. The user can then navigate to the appropriate client. Example
Dim OEM As New OEMClass Dim MyCallbackObject As New MyCallbackClass Dim RC As Integer RC = OEM.Popup.Add('DISK', 'Disk Performance', 'DISK PERFORMANCE COMMAND', MyCallBackObject, App.Path & App.EXEName, 'MyClient.MyCallbackClass', 'MyClientName')
In this example, a popup menu item is added for all DISK entities. The caption that appears on the menu is Disk Performance. When a user selects this item, the command DISK PERFORMANCE COMMAND is passed back to the client application.
Popup.Delete
Use Popup.Delete to remove a popup menu for a given entity (class or object) from the EM Framework. In some cases, the framework might not support true dynamic menus, instead relying on static menus or other means of invoking commands against objects. In these cases, the popups might not be removed from the framework, but the OEM Gateway still maintains popup menu definitions internally for popups added using the Popup.Add method. Removing one of these popups allows the OEM Gateway to alter its callback mechanism for the affected entity.
Function Popup.Delete(EntityName As String, MenuCaption As String, ClientName As String) As Integer
Parameters
EntityName (input)
is the name of the entity to which the popup applies. This menu can be associated with entries at any level in the object hierarchy. For example, specifying CPU for EntityName associates the popup menu with all CPU objects. Specifying \Dallas\CPU\0 associates the menu only with CPU 0 on node Dallas.
MenuCaption (input)
is the caption that appears on the popup menu for this item.
ClientName (input)
is a client-defined name used to identify the owner of the popup. For most clients this can simply be the application name. However, more complex clients might need to use more than one ClientName and CallbackObject to localize processing for different types of commands (for example, one ClientName and CallbackObject for DISK commands and another for CPU commands). Return Value
0 if the request was queued successfully An OEM error number if an error occurred
Considerations For a client application to remove a popup menu, it must first have added it using the Popup.Add method. Example
Dim OEM As New OEMClass Dim RC As Integer RC = OEM.Popup.Delete('DISK', 'Disk Performance', 'MyClientName')
OEM Users Guide520330-001 A- 9
In this example, the popup menu item Disk Performance is removed for all DISK entities.
Popup.Cleanup
Use Popup.Cleanup to remove all popup menus for a given client name. This is particularly useful when a client application is shutting down and all popups associated with it must be removed from the OEM Gateway and EM framework.
Function Popup.Cleanup(ClientName As String) As Integer
Parameters
ClientName (input)
is a client-defined name used to identify the owner of the popups. For most clients, this can simply be the application name. However, more complex clients might need to use more than one ClientName and CallbackObject to localize processing for different types of commands (for example, one ClientName and CallbackObject for DISK commands and another for CPU commands). Return Value
0 if the request was queued successfully An OEM error number if an error occurred
Considerations For a client application to remove any popup menus, it must first have added them using the Popup.Add method. If a client application is using multiple ClientNames, it should call Popup.Cleanup for each of these names when shutting down. Example
Dim OEM As New OEMClass Dim RC As Integer RC = OEM.Popup.Cleanup('MyClientName')
In this example, all popup menu items associated with MyClientName are removed.
Object.Add
Use Object.Add to add objects to the EM Framework. To add multiple objects as part of a single operation, block them together. Although the OEM Gateway could require that client applications report objects at level n, the EM framework adapter could report at a higher level. In these cases, only the higher-level objects are added to the framework.
Function Object.Add(Path As String, ObjectNames As String, CallbackObject As Object, ClientName As String) As Integer Path (input)
is the full path of all objects included in ObjectNames, for example \NewYork. If this value is not , it is prefixed to each item contained in the ObjectNames list. This simplifies building the ObjectNames list for client applications in cases where a large number of objects are to be added.
ObjectNames (input)
is a comma-separated list of all objects to be added, along with their states and any associated context. The format of ObjectNames is:
ObjectName[:State[:Context]] [,ObjectName[:State[:Context]], ]
ObjectName
is the fully qualified name of the object (unless a Path has been specified).
State
is optional text enclosed in double quotation marks (). Context is retained by the OEM Gateway for each object and displayed along with the object name during Alerts processing.
CallbackObject (input)
is the clients instantiated callback object. All framework notifications or commands associated with the objects added in this operation are returned through the supplied CallbackObject. If this value is Nothing, the callback object associated with the given ClientName is used.
ClientName (input)
is a client-defined name used to identify the owner of a particular object and determine the related client callback object. For most clients, this name can simply be the application name. However, more complex clients might need to use more than one ClientName and CallbackObject to localize processing for different types of commands (for example, one ClientName and CallbackObject for DISK commands and another for CPU commands).
OEM Users Guide520330-001 A -11
Return Value
0 if the request was queued successfully An OEM error number if an error occurred
Considerations You need not specify a State and Context for each object in ObjectNames. If you do not include State and/or Context information, the default values of 0 and , respectively, are used. However, you must include a State if you want to include Context. Example
Dim OEM As New OEMClass Dim MyCallbackObject As New MyCallbackClass Dim RC As Integer RC = OEM.Object.Add('\Chicago', 'CPU\0:4:'''High Swap Rate''', CPU\1:2:'''Moderate Busy Percent''' ', MyCallBackObject, 'MyClientName')
In this example, the Path \Chicago is prefixed to each object name. This causes the object \Chicago\CPU\0 to be added with state 4, and the object \Chicago\CPU\1 to be added with state 2.
Object.Delete
Use Object.Delete to remove objects from the EM Framework. To remove multiple objects as part of a single operation, block them together. Although the OEM Gateway could require that client applications report objects at level n, the EM framework adapter could report at a higher level. In these cases, the framework determines whether the higher level objects should be removed from the framework. In most cases, this decision is based on whether all subordinate objects have been removed.
Function Object.Delete(Path As String, ObjectNames As String, ClientName As String) As Integer
Parameters
Path (input)
is the full path of all objects included in ObjectNames; for example \NewYork. If this value is not , it is prefixed to each item contained in the ObjectNames list. This simplifies building the ObjectNames list for client applications in cases where a large number of objects are to be deleted.
ObjectNames (input)
is a comma-separated list of all objects to be deleted. While the standard ObjectNames format of:
ObjectName[:State[:Context]] [,ObjectName[:State[:Context]], ]
is supported, the State and Context values are ignored for delete operations.
ClientName (input)
is a client-defined name used to identify the owner of a particular object and determine the related client callback object. For most clients, this can simply be the application name. However, more complex clients might need to use more than one ClientName and CallbackObject to localize processing for different types of commands (for example, one ClientName and CallbackObject for DISK commands and another for CPU commands). Return Value
0 if the request was queued successfully An OEM error number if an error occurred
Considerations For an object to be deleted from the OEM Gateway and EM framework, it must first have been added using the Object.Add method. Example
Dim OEM As New OEMClass Dim RC As Integer
OEM Users Guide520330-001 A -13
In this example, the Path \Chicago is prefixed to each object name. This causes the objects \Chicago\CPU\0 and \Chicago\CPU\1 to be removed.
Object.Cleanup
Use Object.Cleanup to remove all objects for a given client name. This is particularly useful when a client application is shutting down and all objects associated with it must be removed from the OEM Gateway and EM framework.
Function Object.Cleanup(ClientName As String) As Integer
Parameters
ClientName (input)
is a client-defined name used to identify the owner of the objects. For most clients this can simply be the application name. However, more complex clients might need to use more than one ClientName and CallbackObject to localize processing for different types of commands (for example, one ClientName and CallbackObject for DISK commands and another for CPU commands). Return Value
0 if the request was queued successfully An OEM error number if an error occurred
Considerations For a client application to remove any objects, it must first have added them using the Object.Add method. If a client application is using multiple ClientNames, it should call Object.Cleanup for each of these names when shutting down. Example
Dim OEM As New OEMClass Dim RC As Integer RC = OEM.Object.Cleanup('MyClientName')
LogMessage
LogMessage is used to add an event message to the OEM event log. This log serves as a central source of information relating to the OEM environment and can be viewed by users through the OEM main window. Client applications can use this facility to keep a record of errors encountered interacting with the OEM, to log application state information regarding the OEM, or other such tasks.
Sub LogMessage(ClientName As String, ClientMessageNumber As Long, MessageText As String, Severity As Integer)
Parameters
ClientName (input)
is a client-defined message number for this event. The OEM Server does nothing with this value other than display it in the log, so multiple clients can use the same message numbers.
MessageText (input)
is the severity associated with the message, on a scale of 0 (lowest: informational message) to 3 (highest: critical problem). The OEM Server log display is sorted in descending order by event severity. Return Value None Considerations The OEM Server automatically adds the date and time to each logged message; clients do not need to include this information in the MessageText field. Example
Dim OEM As New OEMClass OEM.LogMessage 'MyClientName', 1312, 'Unknown command received from OEM', 1
In this example, the client application logs its message 1312 with severity 1.
SetIcons
Use SetIcons to inform the OEM that the user has changed the default icon set in a client application. The OEM subsequently passes this update to all other adapters and clients, and modifies its own icon set if the Use Common Icons option is enabled.
Function SetIcons(IconDirectoryName As String) As Integer
Parameters
IconDirectoryName (input)
is the name of the directory containing the object and state images to use. Return Value
0 if the OEM has accepted the call and handled the request (even if the icon set is not updated) Non-zero if the OEM cannot process the request
Considerations If the Use Common Icons option is disabled, the OEM still passes the update information to all clients and adapters. However, the OEM does not modify its own icon set to utilize the new icons given in IconDirectoryName. The client that called SetIcons receive a SetIcons callback from the OEM; the directory name passed is identical to that supplied on the initial call. Example
Dim OEM As New OEMClass Dim RC As Integer RC = OEM.SetIcons 'C:\MyIcons'
In this example, the client application sets the icon directory to C:\MyIcons.
DebugDisplayPopups
DebugDisplayPopups causes the OEM server to display a list of all popup menus currently maintained in the OEM configuration. This list is useful when you debug client applications to determine if Popup.Add, Popup.Delete, and Popup.Cleanup calls are having the desired results.
Sub DebugDisplayPopups()
DebugDisplayObjects
DebugDisplayObjects causes the OEM server to display a list of all objects currently maintained in the OEM configuration. This list is useful when you debug client applications to determine if Object.Add, Object.Delete, and Object.Cleanup calls are having the desired results.
Sub DebugDisplayObjects()
DebugTraceEnable
DebugTraceEnable causes the OEM server to display a trace window and log all request and command activity. This information can be useful in diagnosing client problems during development. Trace information includes all requests from clients, requests sent to the EM framework adapter, commands received from the EM framework adapter, commands passed through to clients, and key internal information.
Sub DebugTraceEnable()
DebugTraceDisable
DebugTraceDisable causes the OEM server to stop tracing.
Sub DebugTraceDisable()
Parameters None Return Value None Consideration Tracing must first have been enabled using DebugTraceEnable. Example
OEM.DebugTraceDisable
DebugQueuePause
DebugQueuePause suspends processing of the OEM servers request queue. This action allows a number of client requests to be queued without updating active adapters or display forms.
Sub DebugQueuePause()
Parameters None Return Value None Consideration Queue processing can be reactivated using DebugQueueResume. Example
OEM.DebugQueuePause
DebugQueueResume
DebugQueueResume activates processing of the OEM servers request queue. Sub DebugQueueResume() Parameters None Return Value None Consideration Queue processing must have been suspended previously using DebugQueuePause. Example
OEM.DebugQueueResume
Command
Use the Command method to return framework command information to the client application. This method is called for a given callback object whenever the user selects a popup menu item associated with that callback.
Function Command(Path As String, ObjectName As String, CallbackCommand As String) As Integer
Parameters
Path (input)
is the full path of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, Path is \NewYork\DISK.
ObjectName (input)
is the name of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, ObjectName is $SYSTEM.
CallbackCommand (input)
is the command corresponding to the menu item chosen by the user. Return Value
0 if the client has accepted and handled the command Non-zero if the client cannot or will not process the command
Considerations The value of CallbackCommand is set by the client application using the Popup.Add method. Whatever text was specified in the CallbackCommand parameter when the popup was added is returned, unaltered, to the client application when the user selects the menu item. The OEM Gateway evaluates the return value only as zero or non-zero. A zero return value from the call indicates that the client has accepted the command, and a non-zero value indicates the client cannot or will not process the command. It is important that client applications return the appropriate value, because the OEM Gateway could behave differently based on the outcome of the call.
OEM Users Guide520330-001 A -23
Example
Dim RC As Integer ClientCallbackObject was passed in a Popup.Add or Object.Add call RC = ClientCallbackObject.Command('\East\CPU', '3', 'CPU State')
In this example, the command CPU State is passed back to the client for object \East\CPU\3. The CPU State callback command was originally added by the client using the Popup.Add method.
ClientMessage
Use the ClientMessage method to pass framework-specific requests or commands to a client application. This allows a client to include custom features for a specific framework or a framework to include custom features for a specific client. In either case, the OEM Gateway acts as a simple router and pass-through server; any data sent from the framework is passed unaltered to the specified client.
Function ClientMessage(ClientName As String, Path As String, ObjectName As String, Message As String) As Integer
Parameters
ClientName (input)
is the full path of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, Path is \NewYork\DISK. This value can be if the message does not relate to a specific object.
ObjectName (input)
is the name of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, ObjectName is $SYSTEM. This value can be if the message does not relate to a specific object.
Message (input)
0 if the client has accepted and handled the message Non-zero if the client cannot or will not process the message
Considerations The OEM Gateway determines the callback object for the message based on the given ClientName; therefore, the client application must previously have made itself known to the OEM Gateway by specifying ClientName in a Popup.Add or Object.Add call. The OEM Gateway only evaluates the return value as zero or non-zero. A zero return value from the call indicates that the client has accepted the command, and a non-zero value indicates the client cannot or will not process the command. It is important that client applications return the appropriate value, because the OEM Gateway could behave differently based on the outcome of the call.
Example
Dim RC As Integer ClientCallbackObject was passed in a Popup.Add or Object.Add call RC = ClientCallbackObject.ClientMessage('MyClientName', 'Custom Framework Message')
In this example, the message Custom Framework Message is passed back to the client corresponding to MyClientName.
WindowManagementEnabled
The OEM Server uses the WindowManagementEnabled method to determine whether a client application needs to receive window management callbacks (for example, tile requests or minimize requests). The OEM queries this value for each client before sending a window management notification. If a client will participate in window management operations, this function should return True. If it will not participate in window management operations, this function should return False.
Function WindowManagementEnabled() As Boolean
True if the client will participate in window management operations False if the client will not participate in window management operations
Considerations This method is called by the OEM Gateway when the user or framework has invoked a window management function (for example, Tile or Cascade). The OEM first queries each client to determine whether that client will participate in the operation. For those that do take part, the appropriate callback method (for example, Move or Height) is then called. To maintain compatibility with OEM version 1.0, the OEM Server assumes that each client will accept window management notifications unless its WindowManagementEnabled function returns False. As a result, a client application that does not include this function in its callback class receives all window management messages. Example
Dim RC As Boolean ' ClientCallbackObject was passed in a Popup.Add or Object.Add call RC = ClientCallback.WindowManagementEnabled If RC = True Then ' Send appropriate window management callback to the client
Move
Use the Move method to inform the client application to move its display window so that its top left corner is at the specified coordinates.
Function Move(Left As Single, Top As Single) As Integer
Parameters
Left (input)
0 if the client has accepted and handled the request Non-zero if the client cannot or will not process the request
Considerations This method is called by the OEM Gateway when the user or framework has invoked a window management function (for example, Tile or Cascade). The client application determines which window should be positioned. It might be the main window for the application, or it might be a subordinate window that is responsible for displaying information relevant to the framework or callback object. This is a request only; the client can choose not to position the window if necessary (for example, if the user has already explicitly positioned the window). The OEM Gateway evaluates the return value only as zero or non-zero. A zero return value from the call indicates that the client has accepted the command, and a non-zero value indicates the client cannot or will not process the command. It is important that client applications return the appropriate value, because the OEM Gateway might behave differently based on the outcome of the call. If the client applications WindowManagementEnabled function returns False, this method is not called by the OEM. Example
Dim RC As Integer ' ClientCallbackObject was passed in a Popup.Add or Object.Add call ' Assume FrameworkWindow is defined elsewhere in the OEM RC = ClientCallbackObject.Move(FrameworkWindow.Left + 10, FrameworkWindow.Top + 10)
OEM Users Guide520330-001 A -28
In this example, the OEM Gateway has requested that the client position the upper left corner of its window 10 pixels to the right and 10 pixels down from the main framework window.
Height
Use the Height method to inform the client application to adjust the height of its display window to the new value.
Function Height(NewHeight As Single) As Integer
Parameters
NewHeight (input)
0 if the client has accepted and handled the request Non-zero if the client cannot or will not process the request
Considerations This method is called by the OEM Gateway when the user or framework has invoked a window management function (for example, Tile or Cascade). The client application determines which window should be adjusted. It might be the main window for the application, or it might be a subordinate window that is responsible for displaying information relevant to the framework or callback object. This is a request only; the client can choose not to adjust the window height if necessary (for example, if the user has already explicitly set the height of the window). The OEM Gateway evaluates the return value only as zero or non-zero. A zero return value from the call indicates that the client has accepted the command, and a non-zero value indicates the client cannot or will not process the command. It is important that client applications return the appropriate value because the OEM Gateway might behave differently based on the outcome of the call. If the client applications WindowManagementEnabled function returns False, this method is not called by the OEM. Example
Dim RC As Integer ' ClientCallbackObject was passed in a Popup.Add or Object.Add call ' Assume FrameworkWindow is defined elsewhere in the OEM RC = ClientCallbackObject.Height(FrameworkWindow.Height / 2)
In this example, the OEM Gateway has requested that the client adjust the height of its window to be half the height of the framework window.
Width
Use the Width method to inform the client application to adjust the width of its display window to the new value.
Function Height(NewWidth As Single) As Integer
Parameters
NewWidth (input)
0 if the client has accepted and handled the request Non-zero if the client cannot or will not process the request
Considerations This method is called by the OEM Gateway when the user or framework has invoked a window management function (for example, Tile or Cascade). The client application determines which window should be adjusted. It might be the main window for the application, or it might be a subordinate window that is responsible for displaying information relevant to the framework or callback object. This is a request only; the client can choose not to adjust the window width if necessary (for example, if the user has already explicitly set the width of the window). The OEM Gateway evaluates the return value only as zero or non-zero. A zero return value from the call indicates that the client has accepted the command, and a non-zero value indicates the client cannot or will not process the command. It is important that client applications return the appropriate value, because the OEM Gateway might behave differently based on the outcome of the call. If the client applications WindowManagementEnabled function returns False, this method is not called by the OEM. Example
Dim RC As Integer ' ClientCallbackObject was passed in a Popup.Add or Object.Add call ' Assume FrameworkWindow is defined elsewhere in the OEM RC = ClientCallbackObject.Width(FrameworkWindow.Width / 2)
In this example, the OEM Gateway has requested that the client adjust the width of its window to be half the width of the framework window.
WindowCaption
The WindowCaption method returns the caption of the client applications display window.
Function WindowCaption() As String
Parameters None Return Value The window caption of the client applications display window. Considerations This method is used by the OEM Gateway, EM framework, or both to assist users in navigating to the correct client application. The client application determines which windows caption is returned. It might be the main window for the application, or it might be a subordinate window that is responsible for displaying information relevant to the framework or callback object. Example
Dim ThisCaption As String ' ClientCallbackObject was passed in a Popup.Add or Object.Add call ThisCaption = ClientCallbackObject.WindowCaption
WindowState
The WindowState method should be implemented by the client application as a pair of property procedures: Property Get (read) and Property Let (write). The OEM Gateway retrieves this value to determine the current state (normal, minimized, maximized) of the clients display window and also sets the state of the window when requested by the user. Property Get WindowState
Property Get WindowState() As Integer
Parameters None Return Value The current state of the client applications display window, corresponding to standard VB window state constants (vbNormal, vbNormal, vbMaximized, vbMinimized) Considerations This property is used by the OEM Gateway when the user or framework has invoked a window management function (for example, Minimize All or Restore All). The client application determines the window for which it will return data. It might be the main window for the application, or it might be a subordinate window that is responsible for displaying information relevant to the framework or callback object. If the client applications WindowManagementEnabled function returns False, this property is not used by the OEM. Example
Dim WS As Integer ' ClientCallbackObject was passed in a Popup.Add or Object.Add call WS = ClientCallbackObject.WindowState
Parameters
vNewValue (input)
Return Value None Considerations This property is set by the OEM Gateway when the user or framework has invoked a window management function (for example, Minimize All or Restore All). The client application determines which window is affected by the operation. It might be the main window for the application, or it might be a subordinate window that is responsible for displaying information relevant to the framework or callback object. The client can choose to ignore the request and not alter the state of any window if necessary. If the client applications WindowManagementEnabled function returns False, this property is not used by the OEM. Example
' ClientCallbackObject was passed in a Popup.Add or Object.Add call ClientCallbackObject.WindowState = vbMinimized
SetIcons
SetIcons is used to inform the client that the user has changed the default icon set within a framework, the OEM, or a client application. The client can then update its own icon set to utilize the new images if applicable.
Function SetIcons(IconDirectoryName As String) As Integer
Parameters
IconDirectoryName (input)
is the name of the directory containing the object and state images to use. Return Value
0 if the client has accepted the call and handled the request (even if the icon set is not updated) Non-zero if the client cannot or will not process the request
Considerations The client determines whether or not it will honor the SetIcons request and update its icon set accordingly. In some cases you might want to allow users to specify different icons sets within different components of the OEM infrastructure; in these cases, the client can simply ignore the SetIcons request. A client that calls the OEMs SetIcons method receives a SetIcons callback from the OEM; the directory name passed is identical to that supplied on the initial call. Example
Dim RC As Integer ' ClientCallbackObject was passed in a Popup.Add or Object.Add call RC = ClientCallback.SetIcons 'C:\MyIcons'
Framework Adapter
Framework Adapter
This section describes:
Architecture and Design Considerations for Framework Adapters (next) Adapter Request API (OEM to Adapter) on page A-36 OEM Callback API (Adapter to OEM) on page A-53 Adapter Callback API (Framework to Adapter) on page A-68
Fully implement the Adapter Request API. For more information, see Adapter Request API (OEM to Adapter) on page A-36. Use the OEM Callback API to communicate with the OEM Server. For more information, see OEM Callback API (Adapter to OEM) on page A-53.
In some instances, the framework might not support the full set of features available in the OEM environment. In this case, the adapter still must implement the complete Adapter Request API, even if a particular request has no meaning for the framework. The adapter design should also take into account that some frameworks might take a significant amount of time to process a request, which blocks the requester as a result. If this is the case for a particular framework, develop the adapter as an ActiveX EXE so that it has its own thread of execution. In addition, it should queue requests from the OEM Server and immediately reply back to it to avoid blocking it while the framework services the request.
Popup.Add
Popup.Add is used to add a popup menu for a given entity (class or object) to the framework. The framework subsequently uses the popup to direct commands back to the OEM Gateway, which in turn passes them through to the appropriate client application. In some cases, the framework might not support true dynamic menus, instead relying on static menus or other means of invoking commands against objects. In these cases, the adapter could choose to do nothing with the information received, but it must support the method.
Function Popup.Add(EntityName As String, MenuCaption As String, CallbackObject As Object, CallbackAppName As String, CallbackClassName As String, CallbackType As String) As Integer
Parameters
EntityName (input)
is the name of the entity to which the popup applies. This menu can be associated with entries at any level in the object hierarchy. For example, specifying CPU for the EntityName associates the popup menu with all CPU objects. Specifying \Dallas\CPU\0 associates the menu only with CPU 0 on node Dallas.
MenuCaption (input)
is the caption that appears on the popup menu for this item.
CallbackObject (input)
is the fully qualified (path included) name of the OEM Server. This can be retained by the adapter to programmatically start the server if needed.
CallbackClassName (input)
is the name of the OEM Servers callback class. This is required in cases where the CallbackObject reference has become invalid and the adapter needs to create a new callback object for the server to return command information.
CallbackType (input)
specifies whether this is a special type of menu item and callback, as follows:
<DoubleClick>
causes the client to receive an automatic callback when a user double-clicks an item in the framework where the object class name matches EntityName (for example, EntityName is Disk, and the user double-clicks Disk in the
OEM Users Guide520330-001 A -37
framework). This allows default actions to be associated with double-click events, rather than requiring a user to always bring up the complete popup menu.
<Click>
causes the client to receive an automatic callback when a user clicks an item in the framework where the object class name matches EntityName (For example, EntityName is Disk, and the user clicks Disk in the framework.) This allows default actions to be associated with click events, rather than requiring a user to always bring up the complete popup menu. Set this parameter to to disable any special handling for this menu item. Not all frameworks support this feature. Return Value
0 if the request was accepted by the adapter Non-zero if the adapter cannot service the request
Considerations The OEM Gateway evaluates the return value only as zero or non-zero. A zero return value from the call indicates that the adapter has accepted the request, and a non-zero value indicates the adapter cannot or will not process the request. It is important that the adapter return the appropriate value because the OEM Server could behave differently based on the outcome of the call. Example
Dim Adapter As New EMAdapterClass Dim OEMServerCallbackObject As New OEMServerCallbackClass Dim RC As Integer RC = Adapter.Popup.Add('DISK', 'Disk Performance', OEMServerCallbackObject, App.Path & App.EXEName, 'OEMServer.OEMServerCallbackClass')
In this example, a popup menu item is added for all DISK entities. The caption that appears on the menu is Disk Performance.
Popup.Delete
Use the Popup.Delete method to remove a popup menu for a given entity (class or object) from the framework. In some cases, the framework might not support true dynamic menus, instead relying on static menus or other means of invoking commands against objects. In these cases, the adapter might choose to do nothing with the information received, but it must support the method.
Function Popup.Delete(EntityName As String, MenuCaption As String) As Integer
Parameters
EntityName (input)
is the name of the entity to which the popup applies. This menu can be associated with entries at any level in the object hierarchy. For example, specifying CPU for the EntityName associates the popup menu with all CPU objects. Specifying \Dallas\CPU\0 associates the menu only with CPU 0 on node Dallas.
MenuCaption (input)
is the caption that appears on the popup menu for this item. Return Value
0 if the request was accepted by the adapter Non-zero if the adapter cannot service the request
Considerations The OEM Gateway evaluates the return value only as zero or non-zero. A zero return value from the call indicates that the adapter has accepted the request, and a non-zero value indicates the adapter cannot or will not process the request. It is important that the adapter return the appropriate value, because the OEM Server might behave differently based on the outcome of the call. Example
Dim Adapter As New EMAdapterClass Dim RC As Integer RC = Adapter.Popup.Delete('DISK', 'Disk Performance')
In this example, the popup menu item Disk Performance is removed for all DISK entities.
Popup.Clear
Use the Popup.Clear method to remove all popup menus from the EM framework. This is particularly useful when the OEM Gateway and its clients are shutting down and nonfunctioning menu items must be removed from the framework.
Function Popup.Clear() As Integer
0 if the request was accepted by the adapter Non-zero if the adapter cannot service the request
Considerations The adapter should remove only popup menus added by the OEM and its clients. Popup menus added through other mechanisms should remain within the framework. Example
Dim Adapter As New EMAdapterClass Dim RC As Integer RC = Adapter.Popup.Clear
Object.Add
Use the Object.Add method to add objects to the EM Framework. Add multiple objects as part of a single operation by blocking them together. While the OEM Server can report objects at level n, the framework itself can report at a higher level. It is the adapters responsibility to roll up objects and propagate states as needed in this case.
Function Object.Add(Path As String, ObjectNames As String, CallbackObject As Object) As Integer
Parameters
Path (input)
is the full path of all objects included in ObjectNames; for example \NewYork. If this value is not , it is prefixed to each item contained in the ObjectNames list. This simplifies building the ObjectNames list for the OEM Server in cases where a large number of objects are to be added.
ObjectNames (input)
is a comma-separated list of all objects to be added, along with their states and potentially associated context. If the adapters IncludeContext method returns False (context is not to be included with object information), the format of ObjectNames is:
ObjectName[:State] [,ObjectName[:State], ] ObjectName
is the fully qualified name of the object (unless a Path has been specified).
State
is the numerical state of the object. If the adapters IncludeContext method returns True (context is to be included with object information), the format of ObjectNames is:
ObjectName[:State[:Context]][,ObjectName[:State[:Context]], ]
ObjectName
is the fully qualified name of the object (unless a Path has been specified).
State
CallbackObject (input)
is the OEM Servers instantiated callback object. The adapter uses this object to pass command information from the framework back to the OEM Server. Return Value
0 if the request was accepted by the adapter Non-zero if the adapter cannot service the request
Considerations State might not be specified for every object in the ObjectNames list. The OEM Gateway evaluates the return value only as zero or non-zero. A zero return value from the call indicates that the adapter has accepted the request, and a non-zero value indicates the adapter cannot or will not process the request. It is important that the adapter return the appropriate value because the OEM Server might behave differently based on the outcome of the call. Example
Dim Adapter As New EMAdapterClass Dim OEMServerCallbackObject As New OEMServerCallbackClass Dim RC As Integer RC = Adapter.Object.Add('\Chicago', 'CPU\0:4, CPU\1:2', OEMServerCallbackObject)
In this example, the Path \Chicago is prefixed to each object name. This causes the object \Chicago\CPU\0 to be added with state 4 and the object \Chicago\CPU\1 to be added with state 2.
Object.Delete
Use the Object.Delete is used to remove objects from the EM Framework. Remove multiple objects as part of a single operation by blocking them together. Although the OEM Server reports objects at level n, the framework itself could report at a higher level. In these cases, the adapter and framework determine whether the higher level objects should be removed from the framework. In most cases, this decision is based on whether all subordinate objects have been removed.
Function Object.Delete(Path As String, ObjectNames As String) As Integer
Parameters Path (input) is the full path of all objects included in ObjectNames; for example \NewYork. If this value is not , it is prefixed to each item contained in the ObjectNames list. This simplifies building the ObjectNames list for the OEM Server in cases where a large number of objects are to be deleted. ObjectNames (input) is a comma-separated list of all objects to be deleted. The standard ObjectNames format is supported:
ObjectName[:State] [,ObjectName[:State], ]
But the State values are ignored for delete operations. Return Value
0 if the request was accepted by the adapter Non-zero if the adapter cannot service the request
Considerations Delete requests from client applications first pass through the OEM Server. Once all references to a particular object have been removed, the OEM Server generates a delete request for that object and passes it to the adapter. Example Dim Adapter As New EMAdapterClass Dim RC As Integer RC = Adapter.Object.Delete('\Chicago', 'CPU\0, CPU\1') In this example, the Path \Chicago is prefixed to each object name. This causes the objects \Chicago\CPU\0 and \Chicago\CPU\1 to be removed.
Object.Clear
Use the Object.Clear method to remove all objects from the EM framework. This is particularly useful when the OEM Gateway and its clients are shutting down and objects must be removed from the framework.
Function Object.Clear() As Integer
0 if the request was accepted by the adapter Non-zero if the adapter cannot service the request
Considerations The adapter should remove only objects added by the OEM and its clients. Objects added through other mechanisms should remain within the framework. Example Dim Adapter As New EMAdapterClass Dim RC As Integer RC = Adapter.Object.Clear
AdapterName
Use the AdapterName method to allow the OEM Server to determine the name of a particular adapter. This is used by the OEM when displaying messages and performing other such tasks.
Function AdapterName() As String
SetCallback
Use the SetCallback method to inform an adapter of its OEM callback object. Usually, the adapter receives this object as part of an Object.Add or Popup.Add call. When the OEM Server must pass a callback object to an adapter outside the scope of either of these functions, however, SetCallback is used.
Sub SetCallback(CallbackObject As Object)
Parameters
CallbackObject (input)
is the OEM Servers instantiated callback object. The adapter uses this object to pass command information from the framework back to the OEM Server. Return Value None Considerations Because the OEM might need to update a callback object reference at any time, each adapter should implement the SetCallback method in addition to handling callback objects specified as part of a Popup.Add or Object.Add call. Example
Dim Adapter As New EMAdapterClass Dim OEMServerCallbackObject As New OEMServerCallbackClass Adapter.SetCallback OEMServerCallbackObject
IncludeContext
Use the IncludeContext method to inform the OEM Server that it should include each objects context data when calling the adapters Object.Add method. This allows the adapter to pass this additional information on to the enterprise management framework so it can be displayed to users.
Function IncludeContext() As Boolean
True if the adapter needs to receive context data for each object False if the adapter does not need to receive context data for each object
Considerations To maintain compatibility with earlier versions of adapters, the OEM Server assumes that each adapter does not accept context information. If an adapter needs to receive context as part of Object.Add calls, it must supply an IncludeContext method, and that method must return True. If the method is not supplied or it does not return True, context is not included by the OEM. The IncludeContext value is evaluated on a per-adapter basis. In environments where more than one adapter is active, a particular adapters IncludeContext setting has no impact on other adapters. Example
Dim Adapter As New EMAdapterClass Dim RC As Boolean RC = Adapter.IncludeContext If RC = True Then ' Build and send object list containing object names, states, and context Else ' Build and send object list containing object names and states only End If
IsConfigurable
Use the IsConfigurable method to allow the OEM Server to determine whether a particular adapter can be configured. If this value is true, the OEM Server calls the adapters Configure method when requested by the user. If this value is false, the user cannot alter the adapter.
Function IsConfigurable() As Boolean
True if the adapter can be configured False if the adapter cannot be configured
Considerations If this value is true, the adapters Configure method is called as needed. If this value is false, the adapters Configure method is not called. Example
Dim Adapter As New EMAdapterClass Dim Config As Boolean Config = Adapter.IsConfigurable
Configure
Use the Configure method to allow the user to set any adapter- specific options. The OEM Gateway contains a configuration interface; through this facility, users can also specify adapter properties. The adapters Configure method is called whenever the user attempts to set adapter options. At that point, the adapter can display a modal dialog to allow the user to alter adapter parameters as needed.
Function Configure() As Integer
0 if the adapter supports user-configurable options Non-zero if the adapter does not support user-configurable options
Considerations The adapter should return zero if it displayed a configuration dialog or non-zero if it did not. If a non-zero value is returned, the OEM Server informs the user that no userconfigurable options were available. Example
Dim Adapter As New EMAdapterClass Dim RC As Integer RC = Adapter.Configure
FrameworkWindowPosition
The FrameworkWindowPosition method is used to allow the OEM Server to determine the position and size of the main framework window. These values are subsequently used by the OEM when performing window management functions.
Function FrameworkWindowPosition(Left As Single, Top As Single, Width As Single, Height As Single) As Integer
Parameters
Left (output)
is the left position of the framework window. This value is returned to the OEM Server.
Top (output)
is the top position of the framework window. This value is returned to the OEM Server.
Width (output)
is the width of the framework window. This value is returned to the OEM Server.
Height (output)
is the height of the framework window. This value is returned to the OEM Server. Return Value
0 if the adapter accepted the request Non-zero if the adapter cannot accept the request
Consideration If the adapter cannot obtain the size or position of the framework window, it should set each of the parameters to -1 and return a non-zero value. Example
Dim Dim Dim Dim Dim Dim Adapter As New EMAdapterClass RC As Integer Left As Single Top As Single Width As Single Height As Single
SetIcons
Use SetIcons to inform the adapter that the user has changed the default icon set within a framework, the OEM, or a client application. The adapter can then update its own icon set to utilize the new images if applicable.
Function SetIcons(IconDirectoryName As String) As Integer
Parameters
IconDirectoryName (input)
is the name of the directory containing the object and state images to use. Return Value
0 if the adapter has accepted the call and handled the request (even if the icon set is not updated) Non-zero if the adapter cannot or will not process the request
Considerations The adapter determines whether or not it will honor the SetIcons request and update its icon set accordingly. In some cases, you might want to allow users to specify different icons sets within different components of the OEM infrastructure; in these cases, the adapter can simply ignore the SetIcons request. An adapter that calls the OEMs SetIcons callback method receives a SetIcons call from the OEM; the directory name passed is identical to that supplied on the initial call. Example
Dim Adapter As New EMAdapterClass Dim RC As Integer RC = Adapter.SetIcons 'C:\MyIcons'
CloseAdapter
The CloseAdapter method is used to inform the adapter that it can shut down. The OEM server calls this method for each adapter when exiting or for a specific adapter if that adapter is deactivated by the user. Once the OEM server has called this method for an adapter, it does not attempt to communicate with the adapter again without instantiating a new adapter interface object.
Sub CloseAdapter()
Parameters None Return Value None Considerations The adapter should destroy all references to OEM server objects when this method is called. Avoid situations in which the server or adapter cannot exit due to outstanding external references. Example
Dim Adapter As New EMAdapterClass Adapter.CloseAdapter
Command
The Command method is used to return framework command information to the OEM Server. This method is called whenever the user selects a popup menu item in the framework, or when some other means is used to invoke a command.
Function Command(Path As String, ObjectName As String, Caption As String) As Integer
Parameters
Path (input)
is the full path of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, Path is \NewYork\DISK.
ObjectName (input)
is the name of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, ObjectName is $SYSTEM.
Caption (input)
is the caption of the selected menu item. The OEM Server uses this value to determine which client application should receive the command. Return Value
0 if the OEM Server has accepted and handled the command. Non-zero if the OEM Server cannot or will not process the command
Considerations The Caption item is originally set by the client application using the Popup.Add method. The caption returned by the framework for that item must be identical to the caption specified by the client. The OEM Gateway returns 0 if it has accepted the command and non-zero if it has not. If a non-zero value is returned, the adapter is not required to do anything. However, it might choose to perform some sort of error processing if necessary.
Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call RC = OEMServerCallbackObject.Command('\East\CPU', '3', 'State')
In this example, the caption State is passed back to the OEM Server for object \East\CPU\3. The State popup menu was originally added by the client using the Popup.Add method.
ClientMessage
Use the ClientMessage method to pass framework-specific requests or commands to a client application through the OEM Server. This allows a client to include custom features for a specific framework or a framework to include custom features for a specific client. In either case, the OEM Gateway acts as a simple router and passthrough server; any data sent from the framework is passed unaltered to the specified client.
Function ClientMessage(ClientName As String, Path As String, ObjectName As String, Message As String) As Integer
Parameters
ClientName (input)
is the full path of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, Path is \NewYork\DISK. This value can be if the message does not relate to a specific object.
ObjectName (input)
is the name of the selected object. For example, if the selected object is \NewYork\DISK\$SYSTEM, ObjectName is $SYSTEM. This value can be if the message does not relate to a specific object.
Message (input)
0 if the OEM Server has accepted and handled the message Non-zero if the OEM Server cannot or will not process the message
Considerations The OEM Gateway determines the callback object for the message based on the given ClientName, so the client application must have made itself known previously to the OEM Gateway by specifying ClientName in a Popup.Add or Object.Add call. The OEM Gateway returns 0 if it has accepted the command and non-zero if it has not. If a non-zero value is returned, the adapter is not required to do anything. However, it might choose to perform some sort of error processing if necessary.
Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call RC = OEMServerCallbackObject.ClientMessage('MyClientName', 'Custom Framework Message')
In this example, the message Custom Framework Message is passed back to the OEM Server and then on to the client corresponding to MyClientName.
RefreshObjects
The RefreshObjects method causes the OEM Server to repopulate the requesting adapter with all object information. This method can be used by an adapter to ensure that its object information is synchronized with that of the OEM Server.
Function RefreshObjects() As Integer
0 if the OEM Server has accepted and handled the message Non-zero if the OEM Server cannot or will not process the message
Considerations The OEM Server queues the request from the adapter and replies immediately; this is necessary to prevent potential deadlocks. Subsequent queue processing causes the adapter to receive an object update through the standard Object.Add mechanism. The OEM Server does not first clear object information from the adapter. The adapter itself should do this before making the RefreshObjects call. Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call RC = OEMServerCallbackObject.RefreshObjects
RefreshPopups
The RefreshPopups method causes the OEM Server to repopulate the requesting adapter with all popup information. This method can be used by an adapter to ensure that its popup information is synchronized with that of the OEM Server.
Function RefreshPopups() As Integer
0 if the OEM Server has accepted and handled the message Non-zero if the OEM Server cannot or will not process the message
Considerations The OEM Server queues the request from the adapter and replies immediately; this is necessary to prevent potential deadlocks. Subsequent queue processing causes the adapter to receive popup updates through the standard Popup.Add mechanism. The OEM Server does not first clear popup information from the adapter. The adapter itself should do this before making the RefreshPopups call. Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call RC = OEMServerCallbackObject.RefreshPopups
Tile
The Tile method is used to allow the EM framework to tile all client application windows.
Function Tile(Left As Single, Top As Single, Width As Single, Height As Single) As Integer
Parameters
Left (input)
is the left position of the area in which client windows are to be tiled.
Top (input)
is the top position of the area in which client windows are to be tiled.
Width (input)
is the height of the area in which client windows are to be tiled. Return Value
0 if the OEM Server has accepted and handled the message Non-zero if the OEM Server cannot or will not process the message
Considerations When this method is called, the OEM Server uses each client callback objects Move, Height, and Width methods to tile client application windows. The OEM Gateway returns 0 if it has accepted the command and non-zero if it has not. If a non-zero value is returned, the adapter is not required to do anything. However, it might choose to perform some sort of error processing if necessary.
Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call ' Assume FrameworkWindow is defined elsewhere in the adapter RC = OEMServerCallbackObject.Tile(FrameworkWindow.Left + FrameworkWindow.Width, FrameworkWindow.Top, 200, 300)
In this example, the adapter requests that the OEM Server tile all client windows immediately to the right of the framework window, in an area 200 pixels wide x 300 pixels high.
Cascade
Use the Cascade method to allow the EM framework to cascade all client application windows.
Function Cascade(Left As Single, Top As Single, Width As Single, Height As Single) As Integer
Parameters
Left (input)
is the left position of the area in which client windows are to be cascaded.
Top (input)
is the top position of the area in which client windows are to be cascaded.
Width (input)
is the height of the area in which client windows are to be cascaded. Return Value
0 if the OEM Server has accepted and handled the message Non-zero if the OEM Server cannot or will not process the message
Considerations When this method is called, the OEM Server uses each client callback objects Move, Height, and Width methods to cascade client application windows. The OEM Gateway returns 0 if it has accepted the command and non-zero if it has not. If a non-zero value is returned, the adapter is not required to do anything. However, it might choose to perform some sort of error processing if necessary. Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call ' Assume FrameworkWindow is defined elsewhere in the adapter RC = OEMServerCallbackObject.Cascade(FrameworkWindow.Left, FrameworkWindow.Top + FrameworkWindow.Height, 600, 600)
In the previous example, the adapter requests that the OEM Server cascade all client windows immediately to below the framework window, in an area 600 pixels wide x 600 pixels high.
MinimizeAll
Use the MinimizeAll method to allow the EM Framework to minimize all client application windows.
Function MinimizeAll() As Integer
0 if the OEM Server has accepted and handled the message Non-zero if the OEM Server cannot or will not process the message
Considerations When this method is called, the OEM Server uses each client callback objects WindowState property to minimize client application windows. The OEM Gateway returns 0 if it has accepted the command and non-zero if it has not. If a non-zero value is returned, the adapter is not required to do anything. However, it might choose to perform some sort of error processing if necessary. Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call RC = OEMServerCallbackObject.MinimizeAll
RestoreAll
Use the RestoreAll method to allow the EM Framework to restore all client application windows.
Function RestoreAll() As Integer
0 if the OEM Server has accepted and handled the message Non-zero if the OEM Server cannot or will not process the message
Considerations When this method is called, the OEM Server uses each client callback objects WindowState property to restore client application windows. The OEM Gateway returns 0 if it has accepted the command and non-zero if it has not. If a non-zero value is returned, the adapter is not required to do anything. However, it might choose to perform some sort of error processing if necessary. Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call RC = OEMServerCallbackObject.MinimizeAll
LogMessage
LogMessage is used to add an event message to the OEM event log. This log serves as a central source of information relating to the OEM environment and can be viewed by users from the OEM main window. Adapters can use this facility to perform tasks such as keeping a record of errors encountered interacting with the OEM or framework or logging adapter state information.
Sub LogMessage(AdapterName As String, AdapterMessageNumber As Long, MessageText As String, Severity As Integer)
Parameters
AdapterName (input)
is an adapter-defined message number for this event. The OEM Server does nothing with this value other than display it in the log, so multiple adapters can use the same message numbers.
MessageText (input)
is the severity associated with the message, on a scale of 0 (lowest; informational message) to 3 (highest; critical problem). The OEM Server log display is sorted in descending order by event severity. Return Value None Considerations The OEM Server automatically adds the date and time to each logged message, so adapters do not need to include this information in the MessageText field. Example
' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call OEMServerCallbackObject.LogMessage 'MyAdapterName', 100, 'Adapter started', 0
In this example, the adapter logs its message 100 with severity 0.
OEM Users Guide520330-001 A -64
SetIcons
Use SetIcons to inform the OEM that the user has changed the default icon set in a framework adapter. The OEM subsequently passes this update to all other adapters and clients and modifies its own icon set if the Use Common Icons option is enabled.
Function SetIcons(IconDirectoryName As String) As Integer
Parameters
IconDirectoryName (input)
is the name of the directory containing the object and state images to use. Return Value
0 if the OEM has accepted the call and handled the request (even if the icon set is not updated) Non-zero if the OEM cannot process the request
Considerations If the Use Common Icons option is disabled, the OEM still passes the update information to all clients and adapters. However, the OEM does not modify its own icon set to utilize the new icons given in IconDirectoryName. The adapter that called SetIcons subsequently receives a SetIcons call from the OEM; the directory name passed is identical to that supplied on the initial call. Example
Dim RC As Integer ' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call RC = OEMServerCallbackObject.SetIcons 'C:\MyIcons'
DebugTraceEnable
DebugTraceEnable causes the OEM server to display a trace window and log all request and command activity. This can be useful in diagnosing adapter problems during development. Trace information includes all requests from clients, requests sent to the EM framework adapter, commands received from the EM framework adapter, commands passed through to clients, and key internal information.
Sub DebugTraceEnable()
DebugTraceDisable
DebugTraceDisable causes the OEM server to stop tracing.
Sub DebugTraceDisable()
Parameters None Return Value None Considerations Tracing must first have been enabled using DebugTraceEnable. Example
' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call OEMServerCallbackObject.DebugTraceDisable
DebugQueuePause
DebugQueuePause suspends processing of the OEM servers callback command queue. This allows a number of adapter callbacks to be queued without updating client applications.
Sub DebugQueuePause()
Parameters None Return Value None Consideration Queue processing can be reactivated using DebugQueueResume. Example
' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call OEMServerCallbackObject.DebugQueuePause
DebugQueueResume
DebugQueueResume activates processing of the OEM servers callback command queue.
Sub DebugQueueResume()
Parameters None Return Value None Consideration Queue processing must have been suspended previously using DebugQueuePause. Example
' OEMServerCallbackObject was passed in a Popup.Add or Object.Add call OEMServerCallbackObject.DebugQueueResume
OEM Users Guide520330-001 A -67
API Summary
This section lists the syntax for the API calls described previously. For detailed information about a particular API method or property, see the appropriate section of this document.
Hierarchical object class relationships Logical names of object class instances Association of operations with object classes Association of client callbacks with object classes Possibility for icon associations with object classes
These rules are voluntary constraints so that clients can share objects and class names. These are not limitations, and the name space constraints can be enhanced in the future as needed. The following sections summarize the abstract OEM name space conventions to be used by clients when communicating with the OEM.
name ::= hierarchical name of the object or class instance. class ::= name of the class instance. object ::= name of the object instance. Class and object instances indicated by class object pairing should adhere to what is generally accepted as the conventional hierarchical model for the object. For example, on NonStop Kernel systems, node names are listed first. When working with hierarchical name space organizations that refer to NonStop Kernel nodes, the node name should appear first in the name.
State Conventions
State Conventions
The OEM acts as a shared repository of state information for monitored objects. As such, each client must use an identical state reporting scheme to ensure that accurate information is reflected in the OEM and enterprise management frameworks. Client applications that use the OEM should adopt the following state reporting model: State 1 2 3 4 5 6 7 8 9 Meaning Exists, no state information is known Up or OK Low Usage Medium Usage High Usage Warning Critical Down State Degradation
Glossary
Adapter. Used as a generic term to describe the general notion of an interface adapter. It can be either the EM Adapter or the OEM Adapter. Client. Client applications that use the OEM Server. Enterprise Management (EM) Adapter. Provides an encapsulated adapter interface between the enterprise management framework and the OEM Server. It is an ActiveX component. Enterprise Management (EM) Framework. The enterprise management framework currently operating on the workstation. For example, a framework could be the Compaq OIL or Tivoli. From the client and OEM Server perspective, it does not matter which framework is running. OEM Adapter. The OEM Adapter is a generic adapter used by the OEM Gateway. This adapter also serves as an adapter skeleton as well as a means for development, test, and validation of an enterprise specific adapter. It is an ActiveX component. OEM Gateway. The term OEM Gateway refers to the overall Open Enterprise Management architecture described in this document, including the OEM Server, OEM Adapter, EM Adapter, and associated request and callback API calls. OEM Server. The term OEM Server refers to the Open Enterprise Management Server portion of the OEM Gateway described in this document. The OEM Server provides communication between the Clients and the EM Adapter. The EM Adapter in turn communicates with the enterprise management framework. It is an ActiveX component.
Glossary
OEM Server
Index
A
About window 4-40 ActiveX 1-1, 2-1, 2-2 Adapter Callback API A-68 Adapter entry adding 3-9 deleting 3-10 updating 3-10 Adapter list 3-9 Adapter priority 3-11 Adapter Request API A-36 AdapterName (Adapter Request API) A-45 Adding an adapter entry 3-9 Add/Update Adapter dialog box 3-12 Alerts window 4-1
D
DebugDisplayObjects (OEM Request API) A-18 DebugDisplayPopups (OEM Request API) A-17 DebugQueuePause (OEM Callback API) A67 DebugQueuePause (OEM Request API) A21 DebugQueueResume (OEM Callback API) A-67 DebugQueueResume (OEM Request API) A-22 DebugTraceDisable A-20 DebugTraceDisable (OEM Callback API) A-66 DebugTraceEnable (OEM Callback API) A-66 DebugTraceEnable (OEM Request API) A19 Default adapter settings, restoring 3-11
C
CA TNG Adapter 3-9, 3-11 Cascade (OEM Callback API) A-61 Client Callback API A-23 ClientMessage (Client Callback API) A-25 ClientMessage (OEM Callback API) A-55 Clients window 4-11 CloseAdapter (Adapter Request API) A-52 Command (Client Callback API) A-23 Command (OEM Callback API) A-53 Compaq Object Integration Layer (OIL) Adapter 3-9, 3-11 Configure (Adapter Request API) A-49 Configuring OEM server 3-1 Custom View facility 5-1 Custom View window 3-5 Custom View windows customizing properties 5-7 object list 5-3 working with 5-15
E
Error tracing 3-13
F
Files installed 2-1 Font settings 3-14 FrameworkWindowPosition (Adapter Request API) A-50
G
GDI resource consumption, reducing 3-15
H
Hardware requirements 1-3 Height (Client Callback API) A-30 Hierarchical display of data 5-2
Index
I
Icons limiting number used 3-15 size of 3-7 Icons window 4-38 IncludeContext (Adapter Request API) A47 Installation 2-1 Intermediate-level state information 3-2 IsConfigurable (Adapter Request API) A48
OEM Server statistics 4-36 OLE automation class name standards A-71 On Top property 3-4 Open Enterprise Management architecture 1-1
P
Popup Navigation window 4-26 Popups window 4-21 Popup.Add (Adapter Request API) A-37 Popup.Add (OEM Request API) A-6 Popup.Cleanup (OEM Request API) A-10 Popup.Clear (Adapter Request API) A-40 Popup.Delete (Adapter Request API) A-39 Popup.Delete (OEM Request API) A-9 Property Get WindowState (Client Callback API) A-33 Property Let WindowState (Client Callback API) A-33
L
Log setting size of 3-13 window 4-29 Logging and tracing options 3-12 LogMessage (OEM Callback API) A-64 LogMessage (OEM Request API) A-15
M
Max Alerts window 3-4, 4-6 MinimizeAll (OEM Callback API) A-62 Move (Client Callback API) A-28
R
RefreshObjects (OEM Callback API) A-57 RefreshPopups (OEM Callback API) A-58 Reporting levels, specifying 3-2 ReportingLevels (OEM Request API) A-5 RestoreAll (OEM Callback API) A-63 Re-Use Display Forms option 3-3
O
Object name standards A-72 Objects window 4-15 Object-based display of data 5-2 Object.Add (Adapter Request API) A-41 Object.Add (OEM Request API) A-11 Object.Cleanup (OEM Request API) A-14 Object.Clear (Adapter Request API) A-44 Object.Delete (Adapter Request API) A-43 Object.Delete (OEM Request API) A-13 OEM Callback API A-53 OEM Request API A-5 OEM Server log messages 4-33
S
SetCallback (Adapter Request API) A-46 SetIcons (Adapter Request API) A-51 SetIcons (Client Callback API) A-35 SetIcons (OEM Callback API) A-65 SetIcons (OEM Request API) A-16 Setting icon size 3-7 Software requirements 1-3 State arbitration 5-1 State filters 5-1 State reporting conventions A-74
Index
Statistics window 4-34 Supplementary display windows (for internal OEM components) 3-16 Synchronize Alerts and Clients option 3-6 System registry, changes to 2-2
T
Tile (OEM Callback API) A-59 Tiling option 3-8 Timer tracing 3-14 Trace window 4-39
U
Uninstalling OEM server 2-2
W
Width (Client Callback API) A-31 WindowCaption (Client Callback API) A32 WindowManagementEnabled (Client Callback API) A-27 WindowState (Client Callback API) A-33
Index