Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Reference Manual

## hadbm-registerpackage(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO

#### NAME

hadbm registerpackage– registers HADB packages in the management domain

#### SYNOPSIS

`hadbm registerpackage` `––packagepath=path` [`––hosts=host_list`] [`––adminpassword=password` | `––adminpasswordfile=filename` ] [`––agent=ma_url`] [`package_name`]

#### DESCRIPTION

Use the `hadbm registerpackage` command to register the HADB packages that are installed on the hosts in the management domain. Registering packages can also be done when creating a database with the `hadbm create` command. The default package name is a string starting with V and containing teh version number of the hadbm program. If the `––hosts` option is omitted, the package is registered on all enabled hosts in the domain.

Before using the `hadbm registerpackage` command, ensure that all management agents are configured and running on all the hosts in the hostlist, the repository of the management agent is available for updates, and no software package is already registered with the same package name.

#### OPTIONS

`–L` `––packagepath`

  The full path to the HADB software package.

`–H` `––hosts`

  A comma-separated or double quote enclosed list of hosts to register the package on.

`–w` `––adminpassword`

  The actual HADBM administration password.

`–W` `––adminpasswordfile`

  The file from which the passwords are read.

`–m` `––agent`

  Identifies the URL to the Management Agent. The default is localhost:1862.

#### OPERANDS

package_name

  The name of the package you are registering. If a package name is not specified, the default name of the software package is used. For example, if you are using the software release V4–4–02, the default package name is V4.4.

#### EXAMPLES

##### Example 1 Registering a software package named v4

    hadbm registerpackage --packagepath=hadb_install_dir/SUNWhadb/4.4/v4
    Package successfully registered

##### Example 2 Registering a software package namve v4 on a specific host in the domain

    hadbm registerpackage --packagepath=hadb_install_dir/SUNWhadb/4.4
    --hosts=host1,host2,host3 v4
    Package successfully registered

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### ERROR CODES

22170

  the software package could not be found at the specified path on the host

22171

  the software package already exists or is registered with the same name

#### SEE ALSO

hadbm(1m)hadbm-create(1), hadbm-listpackages(1), hadbm-unregisterpackage(1)

J2EE SDK 1.4 Last Revised 31 Jan 2005

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO

- © 2010, Oracle Corporation and/or its affiliates