OO10.20 Shell Guide
OO10.20 Shell Guide
Legal Notices
Warranty
The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be
construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.
The information contained herein is subject to change without notice.
Copyright Notice
© Copyright 2005-2014 Hewlett-Packard Development Company, L.P.
Trademark Notices
Adobe™ is a trademark of Adobe Systems Incorporated.
Microsoft® and Windows® are U.S. registered trademarks of Microsoft Corporation.
UNIX® is a registered trademark of The Open Group.
This product includes an interface of the 'zlib' general purpose compression library, which is Copyright © 1995-2002 Jean-loup Gailly and Mark Adler.
Documentation Updates
The title page of this document contains the following identifying information:
l Software Version number, which indicates the software version.
l Document Release Date, which changes each time the document is updated.
l Software Release Date, which indicates the release date of this version of the software.
To check for recent updates or to verify that you are using the most recent edition of a document, go to: http://h20230.www2.hp.com/selfsolve/manuals
This site requires that you register for an HP Passport and sign in. To register for an HP Passport ID, go to: http://h20229.www2.hp.com/passport-registration.html
Or click the New users - please register link on the HP Passport login page.
You will also receive updated or new editions if you subscribe to the appropriate product support service. Contact your HP sales representative for details.
Support
Visit the HP Software Support Online web site at: http://www.hp.com/go/hpsoftwaresupport
This web site provides contact information and details about the products, services, and support that HP Software offers.
HP Software online support provides customer self-solve capabilities. It provides a fast and efficient way to access interactive technical support tools needed to manage your
business. As a valued support customer, you can benefit by using the support web site to:
l Search for knowledge documents of interest
l Submit and track support cases and enhancement requests
l Download software patches
l Manage support contracts
l Look up HP support contacts
l Review information about available services
l Enter into discussions with other software customers
l Research and register for software training
Most of the support areas require that you register as an HP Passport user and sign in. Many also require a support contract. To register for an HP Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
To find more information about access levels, go to:
http://h20230.www2.hp.com/new_access_levels.jsp
HP Software Solutions Now accesses the HPSW Solution and Integration Portal Web site. This site enables you to explore HP Product Solutions to meet your business
needs, includes a full list of Integrations between HP Products, as well as a listing of ITIL Processes. The URL for this Web site is
http://h20230.www2.hp.com/sc/solutions/index.jsp
Contents
Running HP OO Commands from the Command Line 5
Running Commands 6
Connecting to a Central 10.x server 7
Displaying information about a flow 8
Running a flow 8
Deploying a content pack 8
Displaying help about the OOSH utility 8
Creating a script to run HP OO commands from the OOSH utility 9
Adding OOSH as the parser of an executable file 9
Reference Material 9
l Run flows
See the reference section for a complete list of commands that can be used with the OOSH utility and
the options that can be used with each command.
The OOSH utility is located under <installation path>\central\bin and <installation path>\ras\bin.
Note: Users invoking commands from the OOSH utility must have the relevant Central
permissions (otherwise, they will face "Unauthorized" errors).
Running Commands
You can run commands within the OOSH utility or from a normal prompt/shell.
For example:
c:\hpoo\central\bin> oosh.bat trigger --uuid ABC --user ABC --password ABC --url
ABC
Note: If you used to work with RSFlowInvoke and JRSFlowInvoke with HP OO 9.x, note that
this is the alternative for HP OO 10.x.
If the connection is successful, consequent commands will use it (until you exit OOSH or the Central
session times out).
All other commands support basic connection properties: url, user, password.This enables you to
invoke them directly from the command line without using the connect command first.
Note: It is possible to specify the user name (with the user property) without specifying the
password (with the password) property. You will be prompted for the password upon making the
connection.
Note also that in a multi-LDAP environment, you should enter the user name in the following
format: domain\username. If you enter the user name without a domain, OOSH will try to
authenticate the user with the default LDAP first and if this fails, will to authenticate within the HP
OO internal domain.
The connect command has more options. It also allows connection via an HTTP proxy.
For a complete list of all the options you can use with the connect command, see the reference section
or type help connect in the command line.
Connected
Note: The UUID of the flow is displayed in the Flow Library information pane.
Running a flow
With the trigger command, you can use the options --user, --password, --url, and so on. For a
complete list of all the options you can use with the trigger command, see the reference section or
type help trigger in the command line.
help
help <command>
For example:
help trigger
2. To run the script, either set OOSH as its parser (Linux only, see the details below), or use the
script command in OOSH. For example:
#!/<install-dir>/oosh
<command-sequence>
./script-a
Reference Material
Available commands for the OOSH utility
connect
Default
Argument Description Value/Behavior Required
Connects to an OO 10.x
Central server
deploy
In a multi-LDP environment,
enter the user name in the
format domain\username.
disconnect
trigger
Runs a flow
In a multi-LDP environment,
enter the user name in the format
domain\username.
--inputs "title=my
title,message=my
message"
track
In a multi-LDP environment,
enter the user name in the
format domain\username.
finfo,flow-info
In a multi-LDP environment,
enter the user name in the
format domain\username.
lcp, list-content-packs
In a multi-LDP environment,
enter the user name in the
format domain\username.
lsc, list-sys-config
In a multi-LDP environment,
enter the user name in the
format domain\username.
ssc, set-sys-config
In a multi-LDP environment,
enter the user name in the
format domain\username.
show connection
historical-data-start-date
In a multi-LDP environment,
enter the user name in the
format domain\username.
historical-data-status
In a multi-LDP environment,
enter the user name in the
format domain\username.
import-historical-data
In a multi-LDP environment,
enter the user name in the
format domain\username.
import-permissions
In a multi-LDP environment,
enter the user name in the
format domain\username.
import-schedules
In a multi-LDP environment,
enter the user name in the
format domain\username.
permissions-status
In a multi-LDP environment,
enter the user name in the
format domain\username.
upload-permissions-file
In a multi-LDP environment,
enter the user name in the
format domain\username.
upgrade-execution-events
Note: : After an upgrade from HP OO 9.x to 10.x (earlier than 10.02), using the HP OO Shell Utility
to migrate historical data will get the result "Resolved" instead of "RESOLVED", as required in HP
OO 10.x. This causes duplicates in the results distribution on the Dashboard. If this occurs,
upgrade to HP OO 10.20.