Netcool/Impact Policy Reference Guide 6.1
Netcool/Impact Policy Reference Guide 6.1
Version 6.1.0.1
Policy Reference Guide
SC23-8831-04
Netcool/Impact
Version 6.1.0.1
Policy Reference Guide
SC23-8831-04
Note
Before using this information and the product it supports, read the information in Notices.
Edition notice
This edition applies to version 6.1.0.1 of IBM Tivoli Netcool/Impact and to all subsequent releases and
modifications until otherwise indicated in new editions.
Copyright IBM Corporation 2006, 2011.
US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract
with IBM Corp.
Contents
About this publication . . . . . . . . vii
Intended audience . . . . . . . . . . . . vii
Publications . . . . . . . . . . . . . . vii
Netcool/Impact library . . . . . . . . . vii
Accessing terminology online . . . . . . . vii
Accessing publications online . . . . . . . viii
Ordering publications . . . . . . . . . viii
Accessibility . . . . . . . . . . . . . . viii
Tivoli technical training . . . . . . . . . . viii
Support for problem solving . . . . . . . . . ix
Obtaining fixes . . . . . . . . . . . . ix
Receiving weekly support updates . . . . . . ix
Contacting IBM Software Support . . . . . . x
Conventions used in this publication . . . . . . xii
Typeface conventions . . . . . . . . . . xii
Operating system-dependent variables and paths xii
Chapter 1. Getting started . . . . . . . 1
Policies overview . . . . . . . . . . . . . 1
Using policies . . . . . . . . . . . . . 1
Creating policies . . . . . . . . . . . . 1
Running policies . . . . . . . . . . . . 1
Policy capabilities. . . . . . . . . . . . . 2
Event handling . . . . . . . . . . . . 2
Data handling . . . . . . . . . . . . . 2
E-mail . . . . . . . . . . . . . . . 2
Instant messages . . . . . . . . . . . . 2
Integration with external systems, applications,
and devices. . . . . . . . . . . . . . 3
Accessing Service-related information from a
policy. . . . . . . . . . . . . . . . 3
Policy language . . . . . . . . . . . . . 3
Data types . . . . . . . . . . . . . . 3
Variables. . . . . . . . . . . . . . . 4
Operators . . . . . . . . . . . . . . 4
Control structures . . . . . . . . . . . 4
Functions . . . . . . . . . . . . . . 4
External function libraries . . . . . . . . . 4
Exception handling . . . . . . . . . . . 4
Clear cache syntax . . . . . . . . . . . 4
Date/Time patterns . . . . . . . . . . . 5
Policy example . . . . . . . . . . . . 6
Policy triggers . . . . . . . . . . . . . . 7
Event readers as policy triggers . . . . . . . 7
Database listeners as policy triggers . . . . . 7
E-Mail readers as policy triggers. . . . . . . 7
Jabber readers as policy triggers . . . . . . . 7
Web services listeners as policy triggers . . . . 7
JMS listeners as policy triggers . . . . . . . 8
nci_trigger . . . . . . . . . . . . . . 8
Running policies in the graphical user interface. . 8
Policy editor . . . . . . . . . . . . . . 8
Chapter 2. Policy fundamentals . . . . 9
Differences between IPL and JavaScript . . . . . 9
Policy-level data types. . . . . . . . . . . 10
Simple data types . . . . . . . . . . . 10
Complex data types . . . . . . . . . . 11
Variables . . . . . . . . . . . . . . . 15
Built-in variables . . . . . . . . . . . 15
User-defined variables . . . . . . . . . . 18
Operators . . . . . . . . . . . . . . . 19
Assignment operator . . . . . . . . . . 19
Bitwise operators . . . . . . . . . . . 20
Boolean operators . . . . . . . . . . . 20
Comparison operators . . . . . . . . . . 20
Mathematic operators . . . . . . . . . . 21
String operators . . . . . . . . . . . . 21
Control structures . . . . . . . . . . . . 22
If statements . . . . . . . . . . . . . 22
While statements . . . . . . . . . . . 23
Functions . . . . . . . . . . . . . . . 25
Web services functions. . . . . . . . . . 25
SNMP functions . . . . . . . . . . . . 26
Java Policy functions . . . . . . . . . . 26
User-defined functions. . . . . . . . . . 27
Local transactions . . . . . . . . . . . 29
Function libraries . . . . . . . . . . . . 29
Creating function libraries . . . . . . . . 29
Calling functions in a library . . . . . . . 30
Synchronized statement blocks . . . . . . . . 30
Exceptions. . . . . . . . . . . . . . . 31
Raising exceptions . . . . . . . . . . . 31
Handling exceptions . . . . . . . . . . 31
Runtime parameters . . . . . . . . . . . 33
Setting policy runtime parameters in the editor 33
Running policies with parameters in the editor 34
Running a policy using the nci_trigger script . . 34
Chained policies . . . . . . . . . . . . . 34
Chaining policies . . . . . . . . . . . 35
Encrypted policies . . . . . . . . . . . . 35
Line continuation character . . . . . . . . . 35
Code commenting . . . . . . . . . . . . 36
Chapter 3. Local transactions . . . . . 37
Local transactions template . . . . . . . . . 37
Local transactions best practices . . . . . . . 39
Chapter 4. Stored procedures . . . . . 41
Oracle stored procedures . . . . . . . . . . 41
Writing policies with automatic schema discovery 41
Writing policies without automatic schema
discovery . . . . . . . . . . . . . . 49
Sybase and Microsoft SQL Server stored procedures 55
Calling procedures that return a single value . . 55
Calling procedures that return database rows . . 58
DB2 SQL stored procedures . . . . . . . . . 60
Calling procedures that return scalar values . . 61
Chapter 5. Filters . . . . . . . . . . 65
Copyright IBM Corp. 2006, 2011 iii
SQL filters . . . . . . . . . . . . . . . 65
LDAP filters . . . . . . . . . . . . . . 66
Mediator filters . . . . . . . . . . . . . 68
Chapter 6. Functions. . . . . . . . . 69
Activate . . . . . . . . . . . . . . . 69
ActivateHibernation . . . . . . . . . . . 70
AddDataItem. . . . . . . . . . . . . . 71
BatchDelete . . . . . . . . . . . . . . 72
BatchUpdate . . . . . . . . . . . . . . 73
BeginTransaction . . . . . . . . . . . . 74
CallDBFunction . . . . . . . . . . . . . 75
CallStoredProcedure . . . . . . . . . . . 76
ClassOf . . . . . . . . . . . . . . . . 77
CommandResponse. . . . . . . . . . . . 77
CommitTransaction. . . . . . . . . . . . 85
CurrentContext . . . . . . . . . . . . . 85
Decrypt. . . . . . . . . . . . . . . . 85
DeleteDataItem . . . . . . . . . . . . . 86
Deploy . . . . . . . . . . . . . . . . 87
DirectSQL . . . . . . . . . . . . . . . 89
Distinct . . . . . . . . . . . . . . . . 90
Encrypt. . . . . . . . . . . . . . . . 91
Eval . . . . . . . . . . . . . . . . . 92
EvalArray . . . . . . . . . . . . . . . 93
Exit . . . . . . . . . . . . . . . . . 94
Extract . . . . . . . . . . . . . . . . 95
Float. . . . . . . . . . . . . . . . . 96
FormatDuration . . . . . . . . . . . . . 97
GetByFilter . . . . . . . . . . . . . . 97
GetByKey . . . . . . . . . . . . . . . 99
GetByLinks . . . . . . . . . . . . . . 100
GetByXPath . . . . . . . . . . . . . . 102
GetClusterName . . . . . . . . . . . . 105
GetDate . . . . . . . . . . . . . . . 106
GetFieldValue . . . . . . . . . . . . . 106
GetGlobalVar . . . . . . . . . . . . . 107
GetHTTP . . . . . . . . . . . . . . . 108
GetHibernatingPolicies . . . . . . . . . . 109
GetScheduleMember . . . . . . . . . . . 110
GetServerName. . . . . . . . . . . . . 111
GetServerVar . . . . . . . . . . . . . 112
Hibernate. . . . . . . . . . . . . . . 112
Int . . . . . . . . . . . . . . . . . 113
JavaCall . . . . . . . . . . . . . . . 114
JRExecAction . . . . . . . . . . . . . 115
Keys . . . . . . . . . . . . . . . . 117
Length. . . . . . . . . . . . . . . . 117
Load . . . . . . . . . . . . . . . . 118
LocalTime . . . . . . . . . . . . . . 118
Log. . . . . . . . . . . . . . . . . 119
Merge . . . . . . . . . . . . . . . . 120
NewEvent . . . . . . . . . . . . . . 122
NewJavaObject . . . . . . . . . . . . . 122
NewObject . . . . . . . . . . . . . . 124
ParseDate . . . . . . . . . . . . . . 125
Random . . . . . . . . . . . . . . . 125
ReceiveJMSMessage . . . . . . . . . . . 126
RemoveHibernation . . . . . . . . . . . 127
Replace . . . . . . . . . . . . . . . 127
ReturnEvent . . . . . . . . . . . . . . 128
RExtract . . . . . . . . . . . . . . . 129
RExtractAll . . . . . . . . . . . . . . 130
RollbackTransaction . . . . . . . . . . . 132
SendEmail . . . . . . . . . . . . . . 132
SendInstantMessage . . . . . . . . . . . 134
SendJMSMessage . . . . . . . . . . . . 137
SetFieldValue . . . . . . . . . . . . . 137
SetGlobalVar . . . . . . . . . . . . . 138
SetServerVar. . . . . . . . . . . . . . 139
SnmpGetAction . . . . . . . . . . . . 139
SnmpGetNextAction . . . . . . . . . . . 143
SnmpSetAction . . . . . . . . . . . . . 146
SnmpTrapAction . . . . . . . . . . . . 149
Split . . . . . . . . . . . . . . . . 151
String . . . . . . . . . . . . . . . . 151
Strip . . . . . . . . . . . . . . . . 152
Substring. . . . . . . . . . . . . . . 153
Synchronized . . . . . . . . . . . . . 154
ToLower . . . . . . . . . . . . . . . 155
ToUpper . . . . . . . . . . . . . . . 155
Trim . . . . . . . . . . . . . . . . 156
TBSM functions . . . . . . . . . . . . 157
PassToTBSM. . . . . . . . . . . . . 157
RemoteTBSMShell . . . . . . . . . . . 158
TBSMShell . . . . . . . . . . . . . 158
UpdateEventQueue . . . . . . . . . . . 159
URLDecode . . . . . . . . . . . . . . 160
URLEncode . . . . . . . . . . . . . . 161
WSDMGetResourceProperty . . . . . . . . 161
WSDMInvoke . . . . . . . . . . . . . 163
WSDMUpdateResourceProperty . . . . . . . 164
WSInvokeDL . . . . . . . . . . . . . 166
WSNewArray . . . . . . . . . . . . . 168
WSNewEnum . . . . . . . . . . . . . 169
WSNewObject . . . . . . . . . . . . . 169
WSNewSubObject . . . . . . . . . . . . 170
WSSetDefaultPKGName. . . . . . . . . . 171
Appendix A. Accessibility . . . . . . 173
Appendix B. Notices . . . . . . . . 175
Trademarks . . . . . . . . . . . . . . 177
Glossary . . . . . . . . . . . . . 179
A . . . . . . . . . . . . . . . . . 179
B . . . . . . . . . . . . . . . . . 179
C . . . . . . . . . . . . . . . . . 179
D . . . . . . . . . . . . . . . . . 179
E . . . . . . . . . . . . . . . . . 180
F . . . . . . . . . . . . . . . . . 181
G . . . . . . . . . . . . . . . . . 181
H . . . . . . . . . . . . . . . . . 181
I. . . . . . . . . . . . . . . . . . 181
J. . . . . . . . . . . . . . . . . . 182
K . . . . . . . . . . . . . . . . . 182
L . . . . . . . . . . . . . . . . . 182
M . . . . . . . . . . . . . . . . . 183
N . . . . . . . . . . . . . . . . . 183
O . . . . . . . . . . . . . . . . . 183
P . . . . . . . . . . . . . . . . . 183
iv Netcool/Impact: Policy Reference Guide
S . . . . . . . . . . . . . . . . . 183
U . . . . . . . . . . . . . . . . . 185
V . . . . . . . . . . . . . . . . . 185
W . . . . . . . . . . . . . . . . . 185
X . . . . . . . . . . . . . . . . . 185
Index . . . . . . . . . . . . . . . 187
Contents v
vi Netcool/Impact: Policy Reference Guide
About this publication
The Netcool/Impact Policy Reference Guide contains descriptions and complete
syntax references for the Impact Policy Language (IPL) and JavaScript.
Intended audience
This publication is for users who are responsible for writing Netcool/Impact
policies.
Publications
This section lists publications in the Netcool/Impact library and related
documents. The section also describes how to access Tivoli
publications online
and how to order Tivoli publications.
Netcool/Impact library
v Quick Start Guide, CF39PML
Provides concise information about installing and running Netcool/Impact for
the first time.
v Administration Guide, SC23882904
Provides information about installing, running and monitoring the product.
v User Interface Guide, SC23883004
Provides instructions for using the Graphical User Interface (GUI).
v Policy Reference Guide, SC23883104
Contains complete description and reference information for the Impact Policy
Language (IPL).
v DSA Reference Guide, SC23883204
Provides information about data source adaptors (DSAs).
v Operator View Guide, SC23885104
Provides information about creating operator views.
v Solutions Guide, SC23883404
Provides end-to-end information about using features of Netcool/Impact.
v Integrations Guide, SC27283402
Contains instructions for integrating Netcool/Impact with other IBM
software
and other vendor software.
v Troubleshooting Guide, GC27283302
Provides information about troubleshooting the installation, customization,
starting, and maintaining Netcool/Impact.
Accessing terminology online
The IBM Terminology Web site consolidates the terminology from IBM product
libraries in one convenient location. You can access the Terminology Web site at the
following Web address:
http://www.ibm.com/software/globalization/terminology
Copyright IBM Corp. 2006, 2011 vii
Accessing publications online
Publications are available from the following locations:
v The Quick Start DVD contains the publications that are in the product library.
The format of the publications is PDF, HTML, or both. Refer to the readme file
on the DVD for instructions on how to access the documentation.
v Tivoli Information Center web site at http://publib.boulder.ibm.com/infocenter/
tivihelp/v8r1/topic/com.ibm.netcoolimpact.doc6.1/welcome.html. IBM posts
publications for all Tivoli products, as they become available and whenever they
are updated to the Tivoli Information Center Web site.
Note: If you print PDF documents on paper other than letter-sized paper, set
the option in the File Print window that allows Adobe Reader to print
letter-sized pages on your local paper.
v Tivoli Documentation Central at http://www.ibm.com/developerworks/wikis/
display/tivolidoccentral/Impact. You can also access publications of the
previous and current versions of Netcool/Impact from Tivoli Documentation
Central.
v The Netcool/Impact wiki contains additional short documents and additional
information and is available at https://www.ibm.com/developerworks/
mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Netcool%20Impact.
Ordering publications
You can order many Tivoli publications online at http://
www.elink.ibmlink.ibm.com/publications/servlet/pbi.wss.
You can also order by telephone by calling one of these numbers:
v In the United States: 800-879-2755
v In Canada: 800-426-4968
In other countries, contact your software account representative to order Tivoli
publications. To locate the telephone number of your local representative, perform
the following steps:
1. Go to http://www.elink.ibmlink.ibm.com/publications/servlet/pbi.wss.
2. Select your country from the list and click Go.
3. Click About this site in the main panel to see an information page that
includes the telephone number of your local representative.
Accessibility
Accessibility features help users with a physical disability, such as restricted
mobility or limited vision, to use software products successfully. With this product,
you can use assistive technologies to hear and navigate the interface. You can also
use the keyboard instead of the mouse to operate all features of the graphical user
interface.
For additional information, see Appendix A, Accessibility, on page 173.
Tivoli technical training
For Tivoli technical training information, refer to the following IBM Tivoli
Education Web site at http://www.ibm.com/software/tivoli/education.
viii Netcool/Impact: Policy Reference Guide
Support for problem solving
If you have a problem with your IBM software, you want to resolve it quickly. This
section describes the following options for obtaining support for IBM software
products:
v Obtaining fixes
v Receiving weekly support updates
v Contacting IBM Software Support on page x
Obtaining fixes
A product fix might be available to resolve your problem. To determine which
fixes are available for your Tivoli software product, follow these steps:
1. Go to the IBM Software Support Web site at http://www.ibm.com/software/
support.
2. Navigate to the Downloads page.
3. Follow the instructions to locate the fix you want to download.
4. If there is no Download heading for your product, supply a search term, error
code, or APAR number in the search field.
For more information about the types of fixes that are available, see the IBM
Software Support Handbook at http://www14.software.ibm.com/webapp/set2/sas/
f/handbook/home.html.
Receiving weekly support updates
To receive weekly e-mail notifications about fixes and other software support news,
follow these steps:
1. Go to the IBM Software Support Web site at http://www.ibm.com/software/
support.
2. Click the My IBM in the toobar. Click My technical support.
3. If you have already registered for My technical support, sign in and skip to
the next step. If you have not registered, click register now. Complete the
registration form using your e-mail address as your IBM ID and click Submit.
4. The Edit profile tab is displayed.
5. In the first list under Products, select Software. In the second list, select a
product category (for example, Systems and Asset Management). In the third
list, select a product sub-category (for example, Application Performance &
Availability or Systems Performance). A list of applicable products is
displayed.
6. Select the products for which you want to receive updates.
7. Click Add products.
8. After selecting all products that are of interest to you, click Subscribe to email
on the Edit profile tab.
9. In the Documents list, select Software.
10. Select Please send these documents by weekly email.
11. Update your e-mail address as needed.
12. Select the types of documents you want to receive.
13. Click Update.
If you experience problems with the My technical support feature, you can obtain
help in one of the following ways:
About this publication ix
Online
Send an e-mail message to [email protected], describing your problem.
By phone
Call 1-800-IBM-4You (1-800-426-4409).
World Wide Registration Help desk
For word wide support information check the details in the following link:
https://www.ibm.com/account/profile/us?page=reghelpdesk
Contacting IBM Software Support
Before contacting IBM Software Support, your company must have an active IBM
software maintenance contract, and you must be authorized to submit problems to
IBM. The type of software maintenance contract that you need depends on the
type of product you have:
v For IBM distributed software products (including, but not limited to, Tivoli,
Lotus
, and Rational
and WebSphere
in one of
the following ways:
Online
Go to the Passport Advantage Web site at http://www-306.ibm.com/
software/howtobuy/passportadvantage/pao_customers.htm .
By phone
For the phone number to call in your country, go to the IBM Worldwide
IBM Registration Helpdesk Web site at https://www.ibm.com/account/
profile/us?page=reghelpdesk.
v For customers with Subscription and Support (S & S) contracts, go to the
Software Service Request Web site at https://techsupport.services.ibm.com/ssr/
login.
v For customers with IBMLink, CATIA, Linux, OS/390
, iSeries
, pSeries
,
zSeries
, and other support agreements, go to the IBM Support Line Web site at
http://www.ibm.com/services/us/index.wss/so/its/a1000030/dt006.
v For IBM eServer
OMNIbus. To modify
events in Netcool OMNIbus, you need to use the ReturnEvent function.
To update events, you call UpdateEventQueue and pass the name of the event
reader, a filter string, and an update expression as input values. The filter string
specifies which events to update. It uses the SQL filter syntax, which is similar to
the syntax of the WHERE clause in an SQL SELECT statement. The update expression
is a comma-separated list of field assignments similar to the contents of the SET
clause in an SQL UPDATE statement. For more information about SQL filters, see
SQL filters on page 65.
To delete events, you call UpdateEventQueue and pass the name of the event reader,
a filter string, and a boolean value that indicates that you want to perform a delete
operation. As with the update operation above, the filter string uses the SQL filter
syntax and specifies which events you want to delete.
Syntax
The UpdateEventQueue function has the following syntax:
[Integer = ] UpdateEventQueue(EventReaderName, Filter, UpdateExpression, IsDelete)
Parameters
The UpdateEventQueue function has the following parameters.
Table 93. UpdateEventQueue function parameters
Parameter Type Description
EventReaderName String Name of the event reader whose queue you want
to update or delete.
Filter String SQL filter expression that specifies which events
in the queue to update or delete.
UpdateExpression String Update expression that specifies which fields and
corresponding values to update. If you want to
delete events, pass a null value for this
parameter.
IsDelete Boolean Boolean value that indicates whether to delete the
specified events. Possible values are true and
false.
Return value
Number of events updated or deleted. Optional.
Chapter 6. Functions 159
Examples
The following example shows how to update events in the event queue:
EventReaderName = "OMNIbusEventReader";
Filter = "Node = Node Name";
UpdateExpression = "Node = New Node Name";
IsDelete = false;
NumUpdatedEvents = UpdateEventQueue(EventReaderName, Filter, \
UpdateExpression, IsDelete);
Log("Number of updated events: " + NumUpdatedEvents);
The following example shows how to delete events in the event queue:
EventReaderName = "OMNIbusEventReader";
Filter = "Node = ORA_01";
IsDelete = true;
NumDeletedEvents = UpdateEventQueue(EventReaderName, Filter, null, IsDelete);
URLDecode
The URLDecode function returns a URL encoded string to its original
representation.
This function parallels the Java function java.net.URLDecoder.decode().
Syntax
The URLDecode function has the following syntax:
String = URLDecode(Expression,[Encoding])
Parameters
The URLDecode function has the following parameters.
Table 94. URLDecode function parameters
Parameter Format Description
Expression String The string that you want to decode.
Encoding String The encoding scheme you want to use. This
is optional. The recommended and default
encoding is UTF-8.
Return value
The decoded string.
Example
The following example shows how to decode a URL encoded string back to its
original representation.
ReceivedString = "System.out.println%28%22Hello+World%21%22%29%3B";
OriginalString = URLDecode(ReceivedString, "UTF-8");
Log(OriginalString);
This example prints the following message to the policy log:
160 Netcool/Impact: Policy Reference Guide
Parser Log:
System.out.printIn("Hello world!");
URLEncode
The URLEncode function converts a string to a URL encoded format.
This function parallels the Java function java.net.URLEncoder.encode().
Syntax
The URLEncode function has the following syntax:
String = URLEncode(Expression, [Encoding])
Parameters
The URLEncode function has the following parameters.
Table 95. URLEncode function parameters
Parameter Format Description
Expression String String that you want to encode.
Encoding String The encoding scheme you want to use. This
is optional. The recommended and default
encoding is UTF-8.
Return value
The URL encoded string.
Example
The following example shows how to encode the query string of a URL and form a
valid URL.
BaseURL = "http://hostname:port/query";
QName1 = "filter";
QVal1 = URLEncode("key=42ITA");
QName2 = "comment";
QVal2 = URLEncode("#$&@^%$!!","UTF-8");
Querystring = "?" + QName1 + "=" + QVal1 + "&" + QName2 + "=" + QVal2;
FullURL = BaseURL + Querystring;
Log(FullURL);
This example prints the following message to the policy log:
Parser Log:
http://hostname:port/query?filter=key%3D%2742ITA%27&comment
=%23%24%26%40%5E%25%24%21%21
WSDMGetResourceProperty
The WSDMGetResourceProperty function retrieves the value of a management
property associated with a WSDM (Web Services Distributed Management)
managed resource.
You can use this function to retrieve information about the state of a
WSDM-enabled system, application or device.
Chapter 6. Functions 161
To retrieve the property value, you call WSDMGetResourceProperty and pass the URI
of the WSDM endpoint reference and a flattened XML QName that specifies which
property to retrieve.
Syntax
Array = WSDMGetResourceProperty(endPointRef, methodName, propQName)
Parameters
The WSDMGetResourceProperty function has the following parameters.
Table 96. WSDMGetResourceProperty function parameters
Parameter Format Description
endPointRef String URI that specifies the endpoint where the WSDM resource
is located.
UserName String Optional. User name required by the Web service for
SOAP authentication, if any. If no username is required
omit this parameter.
Password String Optional. Password required by the Web service for SOAP
authentication, if any. If no password is required, omit this
parameter.
propQName String Flattened XML QName that specifies the management
property to retrieve. The format for the flattened QName
is namespace:localname [URI], where namespace is the
XML namespace where the property is defined, localname
is the name of the XML element that contains the property
and URI is the endpoint where the WSDM resource is
located. For more information about QNames, see the
XML specifications at http://www.w3.org.
Return Value
The WSDMGetResourceProperty function returns the property value to the policy as
an array. For properties that consist of a single value, the value is stored in the first
array element. For properties that consist of more than one value, the values are
stored in the array in the order that they are retrieved from the WSDM resource. In
most cases, this function returns an array that contains a single property value.
Example
The following example shows how to use WSDMGetResourceProperty to retrieve a
management property named MemoryInUse from the endpoint http://
www.example.com/wsdm-endpoint.
// Specify endpoint URI and flattened QName
MyEndPoint = "http://www.example.com/wsdm-endpoint";
MyQName = "wsrl:MyProperty [http://www.example.com/wsdm-endpoint]";
// Call WSDMGetResourceProperty and pass the endpoint
// and QName and input parameters
MyResult = WSDMGetResourceProperty(MyEndPoint, MyQName);
// Print the value of the property to the policy log
Log("Value of MyProperty is " + MyResult[0]);
162 Netcool/Impact: Policy Reference Guide
WSDMInvoke
The WSDMInvoke function sends a web services message to a WSDM (Web
Services Distributed Management) managed resource.
The structure and content of this message is defined by the receiving WSDM entity.
You can use this function to send other kinds of messages to a WSDM resource
besides those that retrieve or update a management property.
To retrieve the property value, you call WSDMInvoke and pass the URI of the WSDM
endpoint reference, the method name and a Java QName object that specifies
which property to retrieve.
Syntax
Array = WSDMInvoke(endPointRef, methodName, propQName)
Parameters
The WSDMInvoke function has the following parameters.
Table 97. WSDMInvoke function parameters
Parameter Format Description
endPointRef String URI that specifies the endpoint where the WSDM resource
is located.
Method String Name of the method exposed by the API located at the
WSDM resource endpoint.
propQName Object Java QName object that specifies the management
property to retrieve. You can create a new instance of this
object in the policy using a call to the NewJavaObject
function provided by the Java DSA.
UserName String Optional. User name required by the Web service for
SOAP authentication, if any. If no username is required
omit this parameter.
Password String Optional. Password required by the Web service for SOAP
authentication, if any. If no password is required, omit this
parameter.
Return Value
The WSDMInvoke function returns any values sent in the WSDM reply as an array.
For properties that consist of a single value, the value is stored in the first array
element. For properties that consist of more than one value, the values are stored
in the array in the order that they are retrieved from the WSDM resource. In most
cases, this function returns an array that contains a single property value.
Example
The following example shows how to use WSDMInvoke to remotely invoke a web
services method named GetResourceProperty. This method is exposed by the API
located at the specified WSDM endpoint.
Example using IPL.
Chapter 6. Functions 163
// Specify endpoint URI, method name and QName
MyEndPoint = "http://www.example.com/wsdm-endpoint";
MyMethodName = "GetResourceProperty";
MyQNameParams = {"http://docs.oasis-open.org/wsrf/rl-2", "CurrentTime", "wsrl"};
MyQName = NewJavaObject("javax.xml.namespace.QName", qnameParams);
// Call WSDMInvoke and pass the endpoint, the method name
// and the QName object
MyResult = WSDMInvoke(MyEndPoint, MyMethodName, MyQName);
// Print the value of the property to the policy log
Log("Value of MyProperty is " + MyResult[0]);
Example using JavaScript.
// Specify endpoint URI, method name and QName
MyEndPoint = "http://www.example.com/wsdm-endpoint";
MyMethodName = "GetResourceProperty";
MyQNameParams = ["http://docs.oasis-open.org/wsrf/rl-2", "CurrentTime", "wsrl"];
MyQName = NewJavaObject("javax.xml.namespace.QName", qnameParams);
// Call WSDMInvoke and pass the endpoint, the method name
// and the QName object
MyResult = WSDMInvoke(MyEndPoint, MyMethodName, MyQName);
// Print the value of the property to the policy log
Log("Value of MyProperty is " + MyResult[0]);
WSDMUpdateResourceProperty
The WSDMUpdatetResourceProperty function updates the value or values of a
management property associated with a WSDM (Web Services Distributed
Management) managed resource.
You can use this function to set information about the state of a WSDM-enabled
system, application, or device.
To update the property value, call WSDMUpdateResourceProperty and pass the URI
of the WSDM endpoint reference, a flattened XML QName that specifies the
property and an array of new property values.
Syntax
WSDMUpdateResourceProperty(endPointRef, propQName, params)
Parameters
The WSDMUpdateResourceProperty function has the following parameters.
Table 98. WSDMUpdateResourceProperty function parameters
Parameter Format Description
endPointRef String URI that specifies the endpoint where the WSDM resource
is located.
164 Netcool/Impact: Policy Reference Guide
Table 98. WSDMUpdateResourceProperty function parameters (continued)
Parameter Format Description
propQName String Flattened XML QName that specifies the management
property to update. The format for the flattened QName is
namespace:localname [URI], where namespace is the XML
namespace where the property is defined, localname is the
name of the XML element that contains the property and
URI is the endpoint where the WSDM resource is located.
For more information about QNames, see the XML
specifications at http://www.w3.org.
ArrayOfValues Array An array that contains the value or values of the property.
For properties that consist of a single value, you must
store the value in the first array element. For properties
that consist of more than one value, you must store the
values in the array in the order that they are managed by
the WSDM resource. In most cases, the property consists
of a single value.
UserName String Optional. User name required by the Web service for
SOAP authentication, if any. If no user name is required,
omit this parameter.
Password String Optional. Password required by the Web service for SOAP
authentication, if any. If no password is required, omit this
parameter.
Example
The following example shows how to use WSDMUpdateResourceProperty to update a
management property named MemoryInUse from the endpoint http://
www.example.com/wsdm-endpoint.
Example using IPL.
// Specify endpoint URI, flattened QName and property value
MyEndPoint = "http://www.example.com/wsdm-endpoint";
MyQName = "wsrl:MyProperty [http://www.example.com/wsdm-endpoint]";
Params = {"256"};
// Call WSDMUpdateResourceProperty and pass the endpoint
// and QName and property value
WSDMUpdateResourceProperty(MyEndPoint, MyQName, Params);
Example using JavaScript.
// Specify endpoint URI, flattened QName and property value
MyEndPoint = "http://www.example.com/wsdm-endpoint";
MyQName = "wsrl:MyProperty [http://www.example.com/wsdm-endpoint]";
Params = ["256"];
// Call WSDMUpdateResourceProperty and pass the endpoint
// and QName and property value
WSDMUpdateResourceProperty(MyEndPoint, MyQName, Params);
Chapter 6. Functions 165
WSInvokeDL
The WSInvokeDL function is used to make Web services calls when a WSDL file is
compiled with nci_compilewsdl, or when a Web services DSA policy wizard is
configured.
Syntax
This function has the following syntax:
[Return] = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, [callProps])
This function returns the value of your target Web services call.
Parameters
The WSInvokeDL function has the following parameters
Table 99. WSInvokeDL function parameters
Parameter Format Description
WSService String Web service name. This name is defined in the
/definitions/service element of the WSDL file.
WSEndPoint String The endpoint URL of the target Web service.
WSMethod String Defines which method you would like to call in WSInvokeDL().
WSParams Array An array that contains all of the parameters required by the
specified Web service operation. The operation parameters are
defined by /definitions/message/part elements in the WSDL
file.
callProps String,
boolean,
integer
Optional container in which you can set any of the following
properties listed after this table.
callProps properties
Remember: Any options set in callProps have to precede the actual call to
WSInvokeDL.
v Chunked specifies whether the request can be chunked or not.
v MTOM enables or disables the Message Optimization for the SOAP message.
v CharSet use it to set the encoding other than UTF-8.
v HTTP the default HTTP version is 1.1. You can use this property to set the
protocol version to 1.0.
v ReuseHttpClient enables the underlying infrastructure to reuse the HTTP client
if one is available. The ReuseHttpClient is useful if the client is using HTTPS to
communicate with the server. The ssl handshake is not repeated for each
request. The parameter must be set to true or false.
v EnableWSS enables Web Service Security. If you specify EnableWSS you must also
specify the following properties:
WSSRepository specifies the path location of WSS Repository.
WSSConfigFile specifies configuration file for EnableWSS.
v Username specifies the username for basic authentication.
166 Netcool/Impact: Policy Reference Guide
v Password specifies password for basic authentication. If the username and
password are specified, then the following optional parameters can also be
included:
NTLM specifies the use of NTLM authentication. Boolean (true or false).
NTLMDomain specifies the NTLM Domain. String.
NTLMHost specifies the NTLM Host. String.
NTLMPort specifies the NTLM Port. Integer.
v PreemptiveAuth enables Preemptive Authentication.
v Timeout this property is used in a blocking scenario. The client system times out
after waiting the specified amount of time.
You can optionally set a global Web Service DSA call timeout property called,
impact.server.dsainvoke.timeout. The property must be added to the
Netcool/Impact server property file, <servername>_server.props.
The value is set in milliseconds. For example,
impact.server.dsainvoke.timeout=30000 (30 seconds).
When you set the properties in any of the .props files, restart theNetcool/Impact
server to implement the changes.
If the impact.server.dsainvoke.timeout property is set, all WSInvokeDL calls
will use the same timeout setting.
v MaintainSession sets the session management to enabled status. When session
management is enabled, the system maintains the session-related objects across
the different requests. The parameter must be set to true or false.
v CacheStub caches generated stubs. This value must be set to true if either or
both of the following properties are enabled, ReuseHttpClient, MaintainSession.
Examples of usage:
callProps.CacheStub=true;
callProps.ReuseHttpClient = true;
Examples
Remember: Any options set in callProps have to precede the actual call to
WSInvokeDL.
Apart from its primary usage, the callProps container can be used to enable
security. For example, if the basic authentication is enabled through the wizard, the
sample policy contains the following lines:
callProps.Username="username";
callProps.Password="password";
The following example shows how to use the WSInvokeDL function to send a
message to the target Web service.
Example using IPL.
ServiceName = "StockQuote";
EndPointURL = "http://www.webservicex.net/stockquote.asmx"
MethodName = "GetQuote";
ParameterArray = { "IBM" }
[Return] = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, [callProps])
Example using JavaScript.
Chapter 6. Functions 167
ServiceName = "StockQuote";
EndPointURL = "http://www.webservicex.net/stockquote.asmx";
MethodName = "GetQuote";
ParameterArray = [ "IBM" ];
Results = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, [callProps])
WSNewArray
The WSNewArray function creates a new array of complex data type objects or
primitive values, as defined in the WSDL file for the Web service.
You use this function in cases where you are required to pass an array of complex
objects or primitives to a Web service as message parameters.
Syntax
This function has the following syntax:
Array = WSNewArray(ElementType, ArrayLength)
Parameters
The WSNewArray function has the following parameters.
Table 100. WSNewArray function parameters
Parameter Format Description
ElementType String Name of the complex object or primitive data type
defined in the WSDL file. The name format is
[Package.]TypeName, where Package is the name of the
package you created when you compiled the WSDL file,
without the .jar suffix. The package name is required
only if you did not previously call the
WSSetDefaultPKGName function in the policy.
ArrayLength Integer Number of elements in the new array.
Return Value
A new Web services array.
Examples
The following example shows how to use WSNewArray to create a new Web services
array, where you have previously called WSSetDefaultPKGName in the policy. This
example creates a new array of the data type String as defined in the mompkg.jar
file compiled from a WSDL file.
// Call WSSetDefaultPKGName
WSSetDefaultPKGName("mompkg");
// Call WSNewArray
MyArray = WSNewArray("String", 4);
The following example shows how to use WSNewArray to create a new Web services
array, where you have not previously called WSSetDefaultPKGName in the policy.
168 Netcool/Impact: Policy Reference Guide
// Call WSNewArray
MyArray = WSNewArray("mompkg.String", 4);
WSNewEnum
The WSNewEnum function returns an enumeration value to a target Web service.
Syntax
This function has the following syntax:
[Return] = WSNewEnum(EnumType, EnumValue);
Parameters
The WSNewEnum function has the following parameters.
Table 101. WSNewEnum function parameters
Parameter Format Description
EnumType String The enumeration class name that exists in the package
that is created by nci_compilewsdl.
EnumValue String The enumeration value to return.
Return Value
A new enumeration type and value.
Example
The following example shows how to use the WSNewEnum function to send a
message to the target Web service.
euro = WSNewEnum("net.webservicex.www.Currency", "EUR");
usd = WSNewEnum("net.webservicex.www.Currency", "USD");
WSNewObject
The WSNewObject function creates a new object of a complex data type as defined
in the WSDL file for the Web service.
You use this function in cases where you are required to pass data of a complex
type to a Web service as a message parameter.
Syntax
This function has the following syntax:
Object = WSNewObject(ElementType)
Chapter 6. Functions 169
Parameters
This WSNewObject function has the following parameter.
Table 102. WSNewObject function parameter
Parameter Format Description
ElementType String Name of the complex data type defined in the
WSDL file. The name format is
[Package.]TypeName, where Package is the name of
the package you created when you compiled the
WSDL file, without the .jar suffix.
Return Value
A new Web services object.
Examples
The following example shows how to use WSNewObject to create a new Web
services object, where you have previously called WSSetDefaultPKGName in the
policy. This example creates a new object of the data type ForwardeeInfo as
defined in the mompkg.jar file compiled from the corresponding WSDL.
// Call WSSetDefaultPKGName
WSSetDefaultPKGName("mompkg");
// Call WSNewObject
MyObject = WSNewObject("ForwardeeInfo");
The following example shows how to use WSNewObject to create a new Web
services object, where you have not previously called WSSetDefaultPKGName in the
policy.
// Call WSNewObject
MyObject = WSNewObject("mompkg.ForwardeeInfo");
WSNewSubObject
The WSNewSubObject function creates a new child object that is part of its parent
object and has a field or attribute name of ChildName.
Syntax
This function has the following syntax:
Object = WSNewSubObject(ParentObject, ChildName)
Parameters
This WSNewSubObject function has the following parameter.
Table 103. WSNewSubObject function parameters
Parameter Format Description
ParentObject String Name of the parent object.
ChildName String Name of the new child object.
170 Netcool/Impact: Policy Reference Guide
Return Value
A new Web services child object.
Examples
The following example shows how to use WSNewSubObject to create a new Web
services child object:
// Call WSNewSubObject
ticketId=WSNewSubobject(incident, TICKETID");
WSSetDefaultPKGName
The WSSetDefaultPKGName function sets the default package used by
WSNewObject and WSNewArray.
The package name is the name you supplied to the nci_compilewsdl script when
you compiled the WSDL file for the Web service. This is also the name of the jar
file created by this script, without the .jar suffix.
Syntax
This function has the following syntax:
WSSetDefaultPKGName(PackageName)
Parameters
The WSSetDefaultPKGName function has the following parameter.
Table 104. WSSetDefaultPKGName function parameter
Parameter Format Description
PackageName String Name of the default WSDL package used by
WSNewObject and WSNewArray.
Example
The following example sets the default package used by subsequent calls to
WSNewObject and WSNewArray to google.
WSSetDefaultPKGName("google");
Chapter 6. Functions 171
172 Netcool/Impact: Policy Reference Guide
Appendix A. Accessibility
Accessibility features help a user who has a physical disability, such as restricted
mobility or limited vision, to use software products successfully. These are the
major accessibility features you can use with Netcool/Impact when accessing it on
the IBM Personal Communications terminal emulator:
v You can operate all features using the keyboard instead of the mouse.
v You can read text through interaction with assistive technology.
v You can use system settings for font, size, and color for all user interface
controls.
v You can magnify what is displayed on your screen.
For more information about viewing PDFs from Adobe, go to the following web
site: http://www.adobe.com/enterprise/accessibility/main.html
Copyright IBM Corp. 2006, 2011 173
174 Netcool/Impact: Policy Reference Guide
Appendix B. Notices
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in
other countries. Consult your local IBM representative for information on the
products and services currently available in your area. Any reference to an IBM
product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product,
program, or service that does not infringe any IBM intellectual property right may
be used instead. However, it is the user's responsibility to evaluate and verify the
operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not give you
any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785 U.S.A.
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
Intellectual Property Licensing
Legal and Intellectual Property Law
IBM Japan Ltd.
1623-14, Shimotsuruma, Yamato-shi
Kanagawa 242-8502 Japan
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE.
Some states do not allow disclaimer of express or implied warranties in certain
transactions, therefore, this statement might not apply to you.
This information could include technical inaccuracies or typographical errors.
Changes are periodically made to the information herein; these changes will be
incorporated in new editions of the publication. IBM may make improvements
and/or changes in the product(s) and/or the program(s) described in this
publication at any time without notice.
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of those Web
sites. The materials at those Web sites are not part of the materials for this IBM
product and use of those Web sites is at your own risk.
Copyright IBM Corp. 2006, 2011 175
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
Licensees of this program who wish to have information about it for the purpose
of enabling: (i) the exchange of information between independently created
programs and other programs (including this one) and (ii) the mutual use of the
information which has been exchanged, should contact:
IBM Corporation
2Z4A/101
11400 Burnet Road
Austin, TX 78758 U.S.A.
Such information may be available, subject to appropriate terms and conditions,
including in some cases payment of a fee.
The licensed program described in this document and all licensed material
available for it are provided by IBM under terms of the IBM Customer Agreement,
IBM International Program License Agreement or any equivalent agreement
between us.
Any performance data contained herein was determined in a controlled
environment. Therefore, the results obtained in other operating environments may
vary significantly. Some measurements may have been made on development-level
systems and there is no guarantee that these measurements will be the same on
generally available systems. Furthermore, some measurement may have been
estimated through extrapolation. Actual results may vary. Users of this document
should verify the applicable data for their specific environment.
Information concerning non-IBM products was obtained from the suppliers of
those products, their published announcements or other publicly available sources.
IBM has not tested those products and cannot confirm the accuracy of
performance, compatibility or any other claims related to non-IBM products.
Questions on the capabilities of non-IBM products should be addressed to the
suppliers of those products.
All statements regarding IBM's future direction or intent are subject to change or
withdrawal without notice, and represent goals and objectives only.
All IBM prices shown are IBM's suggested retail prices, are current and are subject
to change without notice. Dealer prices may vary.
This information is for planning purposes only. The information herein is subject to
change before the products described become available.
This information contains examples of data and reports used in daily business
operations. To illustrate them as completely as possible, the examples include the
names of individuals, companies, brands, and products. All of these names are
fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
This information contains sample application programs in source language, which
illustrate programming techniques on various operating platforms. You may copy,
modify, and distribute these sample programs in any form without payment to
176 Netcool/Impact: Policy Reference Guide
IBM, for the purposes of developing, using, marketing or distributing application
programs conforming to the application programming interface for the operating
platform for which the sample programs are written. These examples have not
been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or
imply reliability, serviceability, or function of these programs. You may copy,
modify, and distribute these sample programs in any form without payment to
IBM for the purposes of developing, using, marketing, or distributing application
programs conforming to IBMs application programming interfaces.
Each copy or any portion of these sample programs or any derivative work, must
include a copyright notice as follows:
(your company name) (year). Portions of this code are derived from IBM Corp.
Sample Programs. Copyright IBM Corp. _enter the year or years_. All rights
reserved.
If you are viewing this information in softcopy form, the photographs and color
illustrations might not be displayed.
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of
International Business Machines Corp., registered in many jurisdictions worldwide.
Other product and service names might be trademarks of IBM or other companies.
A current list of IBM trademarks is available on the Web at Copyright and
trademark information at www.ibm.com/legal/copytrade.shtml.
Adobe, Acrobat, PostScript and all Adobe-based trademarks are either registered
trademarks or trademarks of Adobe Systems Incorporated in the United States,
other countries, or both.
Java and all Java-based trademarks and logos are trademarks or registered
trademarks of Oracle and/or its affiliates.
Linux is a trademark of Linus Torvalds in the United States, other countries, or
both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of
Microsoft Corporation in the United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Other product and service names might be trademarks of IBM or other companies.
Appendix B. Notices 177
178 Netcool/Impact: Policy Reference Guide
Glossary
This glossary includes terms and definitions for Netcool/Impact.
The following cross-references are used in this glossary:
v See refers you from a term to a preferred synonym, or from an acronym or
abbreviation to the defined full form.
v See also refers you to a related or contrasting term.
To view glossaries for other IBM products, go to www.ibm.com/software/
globalization/terminology (opens in new window).
A
assignment operator
An operator that sets or resets a value to a variable. See also operator.
B
Boolean operator
A built-in function that specifies a logical operation of AND, OR or NOT
when sets of operations are evaluated. The Boolean operators are &&, ||
and !. See also operator.
C
command execution manager
The service that manages remote command execution through a function in
the policies.
command line manager
The service that manages the command-line interface.
Common Object Request Broker Architecture (CORBA)
An architecture and a specification for distributed object-oriented
computing that separates client and server programs with a formal
interface definition.
comparison operator
A built-in function that is used to compare two values. The comparison
operators are ==, !=, <, >, <= and >=. See also operator.
control structure
A statement block in the policy that is executed when the terms of the
control condition are satisfied.
CORBA
See Common Object Request Broker Architecture.
D
database (DB)
A collection of interrelated or independent data items that are stored
together to serve one or more applications. See also database server.
Copyright IBM Corporation 2005, 2011 IBM 2006, 2011 179
database event listener
A service that listens for incoming messages from an SQL database data
source and then triggers policies based on the incoming message data.
database event reader
An event reader that monitors an SQL database event source for new and
modified events and triggers policies based on the event information. See
also event reader.
database server
A software program that uses a database manager to provide database
services to other software programs or computers. See also database.
data item
A unit of information to be processed.
data model
An abstract representation of the business data and metadata used in an
installation. A data model contains data sources, data types, links, and
event sources.
data source
A repository of data to which a federated server can connect and then
retrieve data by using wrappers. A data source can contain relational
databases, XML files, Excel spreadsheets, table-structured files, or other
objects. In a federated system, data sources seem to be a single collective
database.
data source adapter (DSA)
A component that allows the application to access data stored in an
external source.
data type
An element of a data model that represents a set of data stored in a data
source, for example, a table or view in a relational database.
DB See database.
DSA See data source adapter.
dynamic link
An element of a data model that represents a dynamic relationship
between data items in data types. See also link.
E
email reader
A service that polls a Post Office Protocol (POP) mail server at intervals for
incoming email and then triggers policies based on the incoming email
data.
email sender
A service that sends email through an Simple Mail Transfer Protocol
(SMTP) mail server.
event An occurrence of significance to a task or system. Events can include
completion or failure of an operation, a user action, or the change in state
of a process.
event processor
The service responsible for managing events through event reader, event
180 Netcool/Impact: Policy Reference Guide
listener and email reader services. The event processor manages the
incoming event queue and is responsible for sending queued events to the
policy engine for processing.
event reader
A service that monitors an event source for new, updated, and deleted
events, and triggers policies based on the event data. See also database
event reader, standard event reader.
event source
A data source that stores and manages events.
exception
A condition or event that cannot be handled by a normal process.
F
field A set of one or more adjacent characters comprising a unit of data in an
event or data item.
filter A device or program that separates data, signals, or material in accordance
with specified criteria. See also LDAP filter, SQL filter.
function
Any instruction or set of related instructions that performs a specific
operation. See also user-defined function.
G
generic event listener
A service that listens to an external data source for incoming events and
triggers policies based on the event data.
graphical user interface (GUI)
A computer interface that presents a visual metaphor of a real-world scene,
often of a desktop, by combining high-resolution graphics, pointing
devices, menu bars and other menus, overlapping windows, icons and the
object-action relationship. See also graphical user interface server.
graphical user interface server (GUI server)
A component that serves the web-based graphical user interface to web
browsers through HTTP. See also graphical user interface.
GUI See graphical user interface.
GUI server
See graphical user interface server.
H
hibernating policy activator
A service that is responsible for waking hibernating policies.
I
instant messaging reader
A service that listens to external instant messaging servers for messages
and triggers policies based on the incoming message data.
Glossary 181
instant messaging service
A service that sends instant messages to instant messaging clients through
a Jabber server.
IPL See Netcool/Impact policy language.
J
Java Database Connectivity (JDBC)
An industry standard for database-independent connectivity between the
Java platform and a wide range of databases. The JDBC interface provides
a call level interface for SQL-based and XQuery-based database access.
Java Message Service (JMS)
An application programming interface that provides Java language
functions for handling messages.
JDBC See Java Database Connectivity.
JMS See Java Message Service.
JMS data source adapter (JMS DSA)
A data source adapter that sends and receives Java Message Service (JMS)
messages.
JMS DSA
See JMS data source adapter.
K
key expression
An expression that specifies the value that one or more key fields in a data
item must have in order to be retrieved in the IPL.
key field
A field that uniquely identifies a data item in a data type.
L
LDAP See Lightweight Directory Access Protocol.
LDAP data source adapter (LDAP DSA)
A data source adapter that reads directory data managed by an LDAP
server. See also Lightweight Directory Access Protocol.
LDAP DSA
See LDAP data source adapter.
LDAP filter
An expression that is used to select data elements located at a point in an
LDAP directory tree. See also filter.
Lightweight Directory Access Protocol (LDAP)
An open protocol that uses TCP/IP to provide access to directories that
support an X.500 model and that does not incur the resource requirements
of the more complex X.500 Directory Access Protocol (DAP). For example,
LDAP can be used to locate people, organizations, and other resources in
an Internet or intranet directory. See also LDAP data source adapter.
link An element of a data model that defines a relationship between data types
and data items. See also dynamic link, static link.
182 Netcool/Impact: Policy Reference Guide
M
mathematic operator
A built-in function that performs a mathematic operation on two values.
The mathematic operators are +, -, *, / and %. See also operator.
mediator DSA
A type of data source adaptor that allows data provided by third-party
systems, devices, and applications to be accessed.
N
Netcool/Impact policy language (IPL)
A programming language used to write policies.
O
operator
A built-in function that assigns a value to a variable, performs an operation
on a value, or specifies how two values are to be compared in a policy. See
also assignment operator, Boolean operator, comparison operator,
mathematic operator, string operator.
P
policy A set of rules and actions that are required to be performed when certain
events or status conditions occur in an environment.
policy activator
A service that runs a specified policy at intervals that the user defines.
policy engine
A feature that automates the tasks that the user specifies in the policy
scripting language.
policy logger
The service that writes messages to the policy log.
POP See Post Office Protocol.
Post Office Protocol (POP)
A protocol that is used for exchanging network mail and accessing
mailboxes.
precision event listener
A service that listens to the application for incoming messages and triggers
policies based on the message data.
S
security manager
A component that is responsible for authenticating user logins.
self-monitoring service
A service that monitors memory and other status conditions and reports
them as events.
server A component that is responsible for maintaining the data model, managing
services, and running policies.
Glossary 183
service
A runnable sub-component that the user controls from within the graphical
user interface (GUI).
Simple Mail Transfer Protocol (SMTP)
An Internet application protocol for transferring mail among users of the
Internet.
Simple Network Management Protocol (SNMP)
A set of protocols for monitoring systems and devices in complex
networks. Information about managed devices is defined and stored in a
Management Information Base (MIB). See also SNMP data source adapter.
SMTP See Simple Mail Transfer Protocol.
SNMP
See Simple Network Management Protocol.
SNMP data source adapter (SNMP DSA)
A data source adapter that allows management information stored by
SNMP agents to be set and retrieved. It also allows SNMP traps and
notifications to be sent to SNMP managers. See also Simple Network
Management Protocol.
SNMP DSA
See SNMP data source adapter.
socket DSA
A data source adaptor that allows information to be exchanged with
external applications using a socket server as the brokering agent.
SQL database DSA
A data source adaptor that retrieves information from relational databases
and other data sources that provide a public interface through Java
Database Connectivity (JDBC). SQL database DSAs also add, modify and
delete information stored in these data sources.
SQL filter
An expression that is used to select rows in a database table. The syntax
for the filter is similar to the contents of an SQL WHERE clause. See also
filter.
standard event reader
A service that monitors a database for new, updated, and deleted events
and triggers policies based on the event data. See also event reader.
static link
An element of a data model that defines a static relationship between data
items in internal data types. See also link.
string concatenation
In REXX, an operation that joins two characters or strings in the order
specified, forming one string whose length is equal to the sum of the
lengths of the two characters or strings.
string operator
A built-in function that performs an operation on two strings. See also
operator.
184 Netcool/Impact: Policy Reference Guide
U
user-defined function
A custom function that can be used to organize code in a policy. See also
function.
V
variable
A representation of a changeable value.
W
web services DSA
A data source adapter that exchanges information with external
applications that provide a web services application programming interface
(API).
X
XML data source adapter
A data source adapter that reads XML data from strings and files, and
reads XML data from web servers over HTTP.
Glossary 185
186 Netcool/Impact: Policy Reference Guide
Index
Special characters
- 21
!= 20
/ 21
* 21
@ notation 16
% 21
+ 21
= 19, 20
== 20
A
Access Service-related information 3
accessibility viii, 173
Activate 69
ActivateHibernation 70
AddDataItem 71
AOL Instant Messenger 2
array 12
assignment operator 19
B
backslash
See line continuation character
BatchDelete 72
BatchUpdate 74
BeginTransaction 74
Bitwise operators 20
books
see publications vii, viii
boolean operators 20
C
CallDBFunction 75
calling procedures 47
returning database rows 58
returning single value 56
CallStoredProcedure 76
CallStoredProcedure variable 43, 45, 48,
51, 57, 59, 63
chained policy 34
ClassOf 77
clear cache syntax 4
code commenting 36
command line utility
nci_trigger 1
CommandResponse 77
commenting 36
CommitTransaction 85
comparison operators 20
concatenation
strings 21
context 11
control structures 4, 22
conventions
typeface xii
CurrentContext 85
custom code encapsulating 29
customer support x
D
data handling 2
data item 14
data types 4
complex 11
policy-level 10
simple 10
database listeners 7
DataItem (built-in variable) 17
DataItems (built-in variable) 17
date
format 10
date patterns 5
DB2 SQL Array 64
DB2 SQL automatic schema
discovery 60
DB2 SQL IN parameters 63
DB2 SQL INOUT parameters 63
DB2 SQL OUT parameters 63
DB2 SQL parameters 60
DB2 SQL result set 60, 63
DB2 SQL scalar values 61
DB2 SQL Stored Procedure 64
DB2 SQL stored procedure examples 63
DB2 SQL stored procedures 63
DB2 SQL stored procedures overview 60
Decrypt 86
DeleteDataItem 86
DeleteEvent 16
Deploy 87
directory names
notation xii
DirectSQL 89
disability 173
DiscoverProcedureSchema
setting 51
Distinct 91
E
e-mail reader service 7
education
See Tivoli technical training
Encrypt 92
encrypted policy 35
environment variables
notation xii
Eval 92
EvalArray 93
event container 15
event handling 2
event readers 7
event state variables 16
EventContainer (built-in variable) 16
example 6
exception handling 4
exceptions 31
handlers 31
raising 31
Exit 94
external function libraries 4
Extract 95
F
filters 65
LDAP filters 66
Mediator filters 68
SQL filters 65
fixes
obtaining ix
Float 96
FormatDuration 97
function
Activate 69
ActivateHibernation 70
AddDataItem 71
BatchDelete 72
BatchUpdate 74
BeginTransaction 74
CallDBFunction 75
CallStoredProcedure 76
ClassOf 77
CommandResponse 77
CommitTransaction 85
CurrentContext 85
Decrypt 86
DeleteDataItem 86
Deploy 87
DirectSQL 89
Distinct 91
Encrypt 92
Eval 92
EvalArray 93
Exit 94
Extract 95
Float 96
FormatDuration 97
GetByFilter 97
GetByKey 99
GetByLinks 100
GetByXPath 102
GetClusterName 105
GetDate 106
GetFieldValue 106
GetGlobalVar 107
GetHibernatingPolicies 109
GetHTTP 108
GetScheduleMember 110
GetServerName 111
GetServerVar 112
Hibernate 112
Int 113
JavaCall 114
JRExecAction 115
Keys 117
Copyright IBM Corp. 2006, 2011 187
function (continued)
Length 117
Load 118
LocalTime 118
Log 119
Merge 120
NewEvent 122
NewJavaObject 123
NewObject 124
ParseDate 125
Random 126
ReceiveJMSMessage 126
RemoveHibernation 127
Replace 127
ReturnEvent 128
RExtract 129
RExtractAll 130
RollbackTransaction 132
SendEmail 132
SendInstantMessage 134
SendJMSMessage 137
SetFieldValue 137
SetGlobalVar 138
SetServerVar 139
SnmpGetAction 139
SnmpGetNextAction 143
SnmpSetAction 146
SNMPTrapAction 149
Split 151
String 151
Strip 152
Substring 153
Synchronized 154
ToLower 155
ToUpper 155
Trim 156
UpdateEventQueue 159
URLDecode 160
URLEncode 161
WSDMGetResourceProperty 161
WSDMInvoke 163
WSDMUpdatetResourceProperty 164
WSInvokeDL 166
WSNewArray 168
WSNewEnum 169
WSNewObject 169
WSNewSubObject 170
WSSetDefaultPKGName 171
function libraries 29
calling 30
creating 29
functions 4, 25
SNMP 26
TBSMShell 158
user-defined 27
Web services 25
G
GetByFilter 97
GetByKey 99
GetByLinks 100
GetByXPath 102
GetClusterName 105
GetDate 106
GetFieldValue 106
GetGlobalVar 107
GetHibernatingPolicies 109
GetHTTP 108
GetScheduleMember 110
GetServerName 111
GetServerVar 112
glossary 179
H
Hibernate 112
I
ICQ 2
if
See control structures
If statements 22
Impact policy language 3
Int 113
IPL
See Impact policy language
J
Jabber messaging service 2
Jabber reader service 7
Java Policy functions
GetFieldValue 106
JavaCall 114
NewJavaObject 123
overview 26
SetFieldValue 137
JavaCall 114
JMS listener 8
JournalEntry 16
JRExec server 115
JRExecAction 115
K
Keys 117
L
LDAP filters 66
Length 117
LIKE 20
line continuation character 35
local transactions 29, 37, 74, 85, 132
best practices 39
Local transactions template 37
LocalTime 118
Log 119
M
manuals
see publications vii, viii
mathematic operators 21
Mediator filters 68
Merge 120
Microsoft Messenger 2
N
nci_policy script 8
nci_trigger 1, 7, 34
nci_trigger script 8, 33
NewEvent 122
NewJavaObject 123
NewObject 124
notation
environment variables xii
path names xii
typeface xii
Num (built-in variable) 17
O
online publications
accessing viii
operators 4, 19
Operators 20
Oracle stored procedure
example 43, 46, 49
ordering publications viii
P
parameter contexts
creating 50
ParseDate 125
PassToTBSM 157
path names
notation xii
Polices 3
policies
chaining 35
creating 1
e-mail related tasks 2
integration with external systems 3
running 1
using 1
without automatic schema
discovery 49
writing with automatic schema
discovery 41
policy 6
capabilities 2
chained 34
disabling schema discovery 50
encrypted 35
language 3
overview 1
running 34
triggers 7
policy editor 8
Policy Editor
run policy option 34
setting runtime parameters 33
policy runtime parameter
attributes 33
policy triggers
See triggers
problem determination and resolution xi
procedures
returning an array 44
returning scalar values 42
publications vii
accessing online viii
188 Netcool/Impact: Policy Reference Guide
publications (continued)
ordering viii
R
Random 126
ReceiveJMSMessage 126
RemoteTBSMShell 158
RemoveHibernation 127
Replace 127
reserved words 31
return parameter context
creating 51
returned array
handling 46
returned cursor
handling 48
returned rows
handling 59
returned value
handling 57
ReturnEvent 128
RExtract 129
RExtractAll 130
RollbackTransaction 132
run policy option
See Policy Editor
runtime parameters 33
S
scalar values 42
schema
automatic discovery 41
schema discovery
disabling 50
SendEmail 132
SendInstantMessage 134
SendJMSMessage 137
SetFieldValue 137
SetGlobalVar 138
SetServerVar 139
setting runtime parameters
See Policy Editor
SNMP functions 26
SnmpGetAction 139
SnmpGetNextAction 143
SnmpSetAction 146
SNMPTrapAction 149
SOAP/XML messages 7
Software Support
contacting x
overview ix
receiving weekly updates ix
Sp_Parameter context
creating 42, 44, 47, 50, 56, 58, 62
Sp_Parameter member variables 42, 45,
47, 56, 58, 62
specifying schema
example 52
Split 151
SQL filters 65
statement blocks
synchronized 30
stored procedure 42, 43, 44, 45, 46, 47,
48, 51, 56, 57, 58, 59, 62, 63
stored procedures 41
Sybase database 55
String 151
string concatenation 21
string operators 21
Strip 152
Substring 153
Sybase stored procedure
example 57, 60
Synchronized 154
synchronized statement blocks 30
T
TBSM functions 157
TBSM Functions 157, 158
TBSM Functions overview 157
TBSMShell
function 158
time patterns 5
Tivoli Information Center viii
Tivoli technical training viii
ToLower 155
ToUpper 155
training
Tivoli technical viii
triggers 7
database listeners 7
e-mail reader service 7
event readers 7
GUI 8
Jabber reader service 7
JMS listener 8
nci_trigger script 8
Web services listener 7
Trim 156
typeface conventions xii
U
UpdateEventQueue 159
URLDecode 160
URLEncode 161
user-defined functions 27
V
variables 4, 15
built-in 15
notation for xii
user-defined 18
W
Web services functions 25
Web services listener 7
while
See control structures
While statements 23
WSDMGetResourceProperty 161
WSDMInvoke 163
WSDMUpdatetResourceProperty 164
WSInvokeDL 166
WSNewArray 168
WSNewEnum 169
WSNewObject 169
WSNewSubObject 170
WSSetDefaultPKGName 171
Y
Yahoo! Messenger 2
Index 189
190 Netcool/Impact: Policy Reference Guide
Printed in USA
SC23-8831-04