sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

User Commands | 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

> Lpackagepath

>   The full path to the HADB software package.

> Hhosts

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

> w adminpassword

>   The actual HADBM administation password.

> W adminpasswordfile

>   The file from which the HADBM administration password is 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 V4402, 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 | Go To Top | Last Changed 22 Dec 2004

Company Info | Contact | Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.