The Start-AttachabilityCheck
command forces an attachability check for all SQL Server databases protected by the Core.
Usage
The usage for the command is as follows:
Start-AttachabilityCheck -core [host name] -user [username] - password [password] - protectedserver [machine name | IP address] -rpn [number | numbers] | -time [time string]
Command Options
The following table describes the options available for the Start-AttachabilityCheck
command:
Option | Description |
---|---|
-? |
Display this help message. |
-core |
Optional. Remote Core host machine IP address (with an optional port number). By default the connection is made to the Core installed on the local machine. |
-user |
Optional. User name for the remote Core host machine. If you specify a user name, you also have to provide a password. If none are provided, then the logged-on user's credentials will be used. |
-password |
Optional. Password to the remote Core host machine. If you specify a password, you also have to provide a user name. If none are provided, then the logged-on user's credentials will be used. |
-protectedserver |
The protected machine on which to perform the SQL attachability check. |
-rpn |
Optional. The sequential number of a recovery point on which to perform the SQL attachability check.
You can use the Note: If neither ‘time’ nor ‘rpn’ option is specified in this command, than the most recent recovery point is used for the attachability check. |
-time |
Optional. Determines recovery point to be selected for SQL attachability check. You need to specify exact time in the format “MM/DD/YYYY hh:mm tt” (for example: “04/24/2015 09:00 AM”).” Specify date time values of the time zone set on your local machine.
Note: If neither ‘time’ nor ‘rpn’ option is specified in this command, than the most recent recovery point will be exported. |
Example:
Perform a SQL attachability check on the most recent recovery point for the specified protected SQL server:
>Start-AttachabilityCheck - protectedserver
10.10.9.120