Managing UDDI Services from the Command-Line
You can invoke many UDDI Services administrative utilities from the
command line. For example, you can import categorization schemes or other XML
data, backup or restore a UDDI Services database, or reset the
cryptography key used to generate UDDI authentication tickets. The following
table lists the UDDI Services administrative utilities.
bootstrap
Imports XML data into a UDDI Services site. Any information you import must
first be validated against the appropriate XML schema definition (XSD). For
more information about importing data and obtaining the appropriate XSDs for
validation, see
UDDI Resources.
Syntax
bootstrap /f [drive:][path]filename
[/u [user]]
Parameters
- /f [drive:][path]filename
-
Specifies the drive (optional), directory (optional), and file to import.
- [/u
[user]]
-
The user name (publisher) under which the data is imported and owned by. If
none is specified, defaults to System.
- /?
-
Displays help at the command prompt.
Remarks
-
By default, this command is installed to %systemdrive%\Inetpub\Uddi\Bin.
-
This command is available only if the UDDI Services Database
Components
are installed.
-
This command must be run from the computer hosting the UDDI Services
database component for the site to which you want to import XML data.
-
Only administrators can use the bootstrap command.
Examples
To import an XML file named mydata.xml under the System user, type:
bootstrap /f mydata.xml
To import an XML file named mydata.xml under a user named John, type:
bootstrap /f mydata.xml /u John
To import an XML file located in C:\Data named mydata.xml under a user named John,
type:
bootstrap /f C:\Data\mydata.xml /u John
Back to top
resetkey
Resets the cryptography key used to generate UDDI authentication tickets.
Syntax
resetkey [/now]
Parameters
- [/now]
-
Forces an immediate reset of the cryptography key.
- /?
-
Displays help at the command prompt.
Remarks
-
By default, this command is installed to %systemdrive%
\Inetpub\Uddi\Bin.
-
This command is available only if the UDDI Services Database
Components
are installed.
-
Only administrators can use the resetkey command.
Examples
To view the current cryptography key timeout settings, type:
resetkey
To immediately reset the cryptography key, type:
resetkey /now
Back to top
recalcstats
Recalculates statistics for a UDDI Services site.
Syntax
recalcstats
Parameters
- /?
-
Displays help at the command prompt.
Remarks
-
By default, this command is installed to %systemdrive%
\Inetpub\Uddi\Bin.
-
This command is available only if the UDDI Services Database
Components
are installed.
-
This command must be run from the computer hosting the UDDI Services
database component for the site you want to recalculate statistics.
-
Only administrators can use the recalcstatscommand.
Back to top
uddi.database.backup.cmd
Creates a backup of a local UDDI Services database to a file
(Uddi.Database.bak).
Syntax
uddi.database.backup.cmd [Database Instance Name]
Parameters
- [Database Instance Name]
-
The name of the local MSDE2000 or Microsoft SQL Server database instance where
the UDDI Services database component is installed. If none is specified,
the default database instance is used.
- /?
-
Displays help at the command prompt.
Remarks
-
By default, this command is installed to %systemdrive%
\Inetpub\Uddi\Bin.
-
This command is available only if the UDDI Services Database Components
are installed.
-
This command must be run from the computer hosting the UDDI Services
database component of which you want to create a backup.
-
Only administrators can use the uddi.database.backup.cmd
command.
-
Data is backed up to Inetpub\Uddi\Data\Uddi.Database.bak
-
Backups created using this tool contain physical paths and file names for UDDI
data files specific to the current installation. For this reason, you cannot
use this tool to migrate data from one UDDI Services site to another.
Examples
To back up a UDDI Services database hosted in the default database
instance, type:
uddi.database.backup.cmd
To back up a UDDI Services database hosted in a database instance named
"UDDI", type:
uddi.database.backup.cmd UDDI
Back to top
uddi.database.restore.cmd
Restores a UDDI Services database backup created with the
uddi.database.restore.cmd command.
Syntax
uddi.database.restore.cmd [Database Instance Name]
Parameters
- [Database Instance Name]
-
The name of the local MSDE2000 or Microsoft SQL Server database instance where
the UDDI Services database component is installed and to which you
want to restore the backup. If none is specified, the default database instance
is used.
- /?
-
Displays help at the command prompt.
Remarks
-
By default, this command is installed to %systemdrive%
\Inetpub\Uddi\Bin.
-
This command is available only if the UDDI Services Database
Components
are installed.
-
This command must be run from the computer hosting the UDDI Services
database component to which you want to restore the data and from the same
directory where the database backup file (Uddi.Database.bak) is located.
-
Only administrators can use the uddi.database.restore.cmd
command.
-
Backups created using the uddi.database.backup.cmd tool contain physical paths
and file names for UDDI data files specific to the current installation. For
this reason, you cannot use this tool to migrate data from one
UDDI Services site to another.
Examples
To restore a UDDI Services database hosted in the default database
instance, type:
uddi.database.backup.cmd
To restore a UDDI Services database hosted in a database instance named
"UDDI", type:
uddi.database.restore.cmd UDDI
Back to top
Formatting legend
Format |
Meaning |
Italic |
Information that the user must supply |
Bold |
Elements that the user must type exactly as shown |
Ellipsis (...) |
Parameter that can be repeated several times in a command line |
Between brackets ([]) |
Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} |
Set of choices from which the user must choose only one |
Courier font |
Code or program output |
© 1997-2002 Microsoft Corporation. All rights
reserved.