Sun Java System Portal Server 7.2 Command-Line Reference

Chapter 9 Search psadmin Subcommands - Search Database Management

This chapter describes the following subcommands:

psadmin analyze-search-database

Description

Analyzes a database for a search server.

Syntax

Long Format

psadmin analyze-search-database --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name [--refresh]

Short Format

psadmin analyze-search-db -s search-server-ID -u uid [-f password-filename] -d database-name [-r]

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

The following options are optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

[--refresh]

Refreshes the analysis cache.

psadmin create-search-database

Description

Creates a search database.

Syntax

Long Format

psadmin create-search-database --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name [--attributes] '"key1=value1" "key2=value2" ...'

Short Format

psadmin create-search-db -s search-server-ID -u uid [-f password-filename] -d database-name [-A] '"key1=value1" "key2=value2" ...'

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

The following options are optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

[--attributes | -A] '"key1=value1" "key2=value2" ...'

Specifies a list of attributes for the database.

psadmin expire-search-database

Description

Expires a database for a search server.

Syntax

Long Format

psadmin expire-search-database --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name

Short Format

psadmin expire-search-db -s search-server-ID -u uid [-f password-filename] -d database-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin list-search-databases

Description

Lists all databases of a search server.

Syntax

Long Format

psadmin list-search-databases --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename]

Short Format

psadmin list-search-dbs -s search-server-ID -u uid [-f password-filename]

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin purge-search-database

Description

Purges the database for a search server.

Syntax

Long Format

psadmin purge-search-database --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name

Short Format

psadmin purge-search-db -s search-server-ID -u uid [-f password-filename] -d database-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin reindex-search-database

Description

Reindexes a database for a search server.

Syntax

Long Format

psadmin reindex-search-database --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name

Short Format

psadmin reindex-search-db -s search-server-ID -u uid [-f password-filename] -d database-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin get-search-database-attribute

Description

Displays a search database attribute.

Syntax

Long Format

psadmin get-search-database-attribute --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name --attribute attribute-name

Short Format

psadmin get-search-db-attribute -s search-server-ID -u uid [-f password-filename] -d database-name -a attribute-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

[--attribute | -a] attribute-name

Specifies the attribute name.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin list-search-database-attributes

Description

Lists a database's attributes.

Syntax

Long Format

psadmin list-search-database-attributes --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name

Short Format

psadmin list-search-db-attributes -s search-server-ID -u uid [-f password-filename] -d database-name

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.

psadmin set-search-database-attribute

Description

Lists the attributes for a database.

Syntax

Long Format

psadmin set-search-database-attribute --searchserver search-server-ID --adminuser admin-user [--passwordfile password-filename] --database database-name --attribute attribute-name --value attribute-value

Short Format

psadmin set-search-db-attribute -s search-server-ID -u uid [-f password-filename] -d database-name -a attribute-name -e attribute-value

Options

The following options are required:

[--adminuser | -u] admin-user

Specifies the Administrator's ID.

[--searchserver | -s] search-server-ID

Specifies the search server ID.

[--database | -d] database-name

Specifies the database.

[--attribute | -a] key

Specifies the attribute name.

[--value | -e] value

Specifies the attribute value.

The following option is optional:

[--passwordfile | -f] password-filename

Specifies the name of the password file.