Edit-EsxiVirtualStandby
The Edit-EsxiVirtualStandby
command lets you use PowerShell to make changes to an existing virtual export to an ESXi virtual machine (VM).
Usage
The usage for the command is as follows:
Edit-EsxiVirtualStandby [-HostName <String>] [-HostPort <String>] [-HostUserName <String>] [-HostPassword <String>] [-DiskProvisioning <String>] [-DiskMapping <String>] [-ProtectedServer <String>] [-Volumes <String[]>] [-VMName <String>] [-UseSourceRam] [-Ram <String>] [-User <String>] [-Core <String>] [-Password <String>] [-Verbose] [-Debug] [-ErroAction<ActionPreference>] [-WarningAction<ActionPreference>] [-ErrorVariable String>] [-WarningVariable <String> [-OutVariable <String>] [-OutBuffer <Int32>]
Command Options
The following table describes the options available for the Edit-EsxiVirtualStandby
command:
Table 87: Edit-EsxiVirtualStandby command options
-? |
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 log on.
If none are provided, then the logged-on user's credentials will be used. |
-protectedserver |
Show jobs for a specific protected machine, indicated by IP address. |
-all |
Show all jobs, including those performed by the Core and all protected servers. |
-number |
Optional. Determine how many records to display. available values are:
all (display all jobs); l[number] or [number] (fetches ## most recent jobs sorted by execution and time); f[number] (displays first ## recovery jobs sorted by execution and time). By default, the 20 most recent jobs are shown. |
-jobtype |
Optional. Specifies the job type filter. Available values are: 'transfer' (data transfer), 'repository' (repository maintenance), 'replication' (local and remote replications), 'backup' (backup and restore), 'bootcdbuilder' (create boot CDs), 'diagnostics' (upload logs), 'exchange' (Exchange Server files check), 'export' (recovery point export), 'pushinstall' (deploy agents), 'rollback' (restoring from a recovery point), 'rollup' (recovery point rollups), 'sqlattach' (agent attachability checks), and 'mount' (mount repository). By default, all jobs of the specified type are returned. |
-time |
Optional. Filter output by date and time for the job started. Available types of input include:
#d or DD (where # is a number for the period of time of days before now until now)
#h or #H (where # is number for the period of hours before now until now)
“time date 1”, “time date 2” (to show a custom range of time from a specific date appearing before the comma to a specific date following the comma). |
Example:
Lists all active jobs on the local Core:
>Get-activejobs –all
Edit-HyperVVirtualStandby
The Edit-HyperVVirtualStandby
command lets you use PowerShell to make changes to an existing virtual export to a Hyper-V virtual machine (VM).
Usage
The usage for the command is as follows:
Edit-HyperVVirtualStandby [-HostName <String>] [-HostPort <String>] [-HostUserName <String>] [-HostPassword <String>] [-VMLocation <String>] [-UseLocalMachine] [-gen2] [-UseVhdx] [-ProtectedServer <String>] [-Volumes <String[]>] [-VMName <String>] [-UseSourceRam] [-Ram <String>] [-User <String>] [-Core <String>] [-Password <String>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] [-ErrorVariable <String>] [-WarningVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] -exportvmconfigfiles
Command Options
The following table describes the options available for the Edit-HyperVVirtualStandby
command:
Table 88: Edit-HyperVVirtualStandby command options
-? |
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 log on.
If none are provided, then the logged-on user's credentials will be used. |
-hostname |
Virtual server host name. |
-hostport |
Virtual server port number. |
-hostusername |
Login to the virtual server host. |
-hostpassword |
Password to the virtual server host. |
-vmlocation |
Location of the virtual machine. |
-uselocalmachine |
Optional. Connect to the local Hyper-V server. In this case, the command ignores the following options: 'hostname', 'hostport', 'hostusername', and 'hostpassword'. |
-gen2 |
Optional. The virtual machine generation. If not specified, the command uses generation 1. Windows Server 2012 R2 and |
-protectedserver |
Show jobs for a specific protected machine, indicated by IP address. |
-all |
Show all jobs, including those performed by the Core and all protected servers. |
-number |
Optional. Determine how many records to display. available values are:
all (display all jobs); l[number] or [number] (fetches ## most recent jobs sorted by execution and time); f[number] (displays first ## recovery jobs sorted by execution and time). By default, the 20 most recent jobs are shown. |
-jobtype |
Optional. Specifies the job type filter. Available values are: 'transfer' (data transfer), 'repository' (repository maintenance), 'replication' (local and remote replications), 'backup' (backup and restore), 'bootcdbuilder' (create boot CDs), 'diagnostics' (upload logs), 'exchange' (Exchange Server files check), 'export' (recovery point export), 'pushinstall' (deploy agents), 'rollback' (restoring from a recovery point), 'rollup' (recovery point rollups), 'sqlattach' (agent attachability checks), and 'mount' (mount repository). By default, all jobs of the specified type are returned. |
-time |
Optional. Filter output by date and time for the job started. Available types of input include:
#d or DD (where # is a number for the period of time of days before now until now)
#h or #H (where # is number for the period of hours before now until now)
“time date 1”, “time date 2” (to show a custom range of time from a specific date appearing before the comma to a specific date following the comma). |
-exportvmconfigfiles |
Optional. Specify whether to export virtual machine configuration files. This option is available only both when the source is a virtual protected agentlessly and when the target hpyervisor is the same as the source hypervisor. |
Example:
Lists all active jobs on the local Core:
>Get-activejobs –all
Edit-OracleDBVerifyNightlyJob
Use the command Edit-OracleDBVerifyNightlyJob
to enable or disable this nightly job for specific Oracle machines that are under protection.
Usage
The usage for the command is as follows:
Edit-OracleDBVerifyNightlyJob -core [host name] -user [user name] -password [password] -protectedserver [name | IP address] [-enable | -disable] [-global]
Command Options
The following table describes the options available for the Edit-OracleDBVerifyNightlyJob
command:
Table 89: Edit-OracleDBVerifyNightlyJob command options
-? |
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. The user name for the remote Core host machine. If you specify a user name, you must also provide a password. If none is provided, then the credentials for the logged-on user are used. |
-password |
Optional. The password to the remote Core host machine. If you specify a password, you also have to provide a user name. If none is provided, then the credentials for the logged-on user are used. |
-protectedserver |
Use this option to specify the protected machine for which you want to enable the Oracle DBVerify nightly job. |
-enable |
Use this option to enable the DBVerify nightly job for the specified protected machine. |
-disable |
Use this option to disable the DBVerify nightly job for the specified protected machine. |
-global |
Use this option to apply the specified setting as the default for this Core. |
Examples:
Enable the Oracle DBVerify nightly job for a protected server:
Edit-OracleDBVerifyNightlyJob -core 10.10.127.42 -user admin -password 676df#df -protectedserver 10.10.34.88 -enable
Disable the Oracle DBVerify nightly job for a protected server:
Edit-OracleDBVerifyNightlyJob -core 10.10.127.42 -user admin -password 676df#df -protectedserver 10.10.34.88 -disable
Edit-OracleLogTruncationNightlyJob
Use the command Edit-OracleLogTruncationNightlyJob
to enable or disable this nightly job for specific Oracle machines that are under protection and to set the deletion policy and retention duration for the logs.
Usage
The usage for the command is as follows:
Edit-OracleLogTruncationNightlyJob -core [host name] -user [user name] -password [password] -protectedserver [name | IP address] [-enable | -disable] [-global] [-usedefault] -deletionpolicy [automatic | keepnewest | keepspecificnumber] -retentionduration [duration value] -retentionunit [day | week | month | year] -numberoffiles [number of archive files to create]
Command Options
The following table describes the options available for the Edit-OracleLogTruncationNightlyJob
command:
Table 90: Edit-OracleLogTruncationNightlyJob command options
-? |
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. The user name for the remote Core host machine. If you specify a user name, you must also provide a password. If none is provided, then the credentials for the logged-on user are used. |
-password |
Optional. The password to the remote Core host machine. If you specify a password, you also have to provide a user name. If none is provided, then the credentials for the logged-on user are used. |
-protectedserver |
Use this option to specify the protected machine for which you want to enable Oracle log truncation as a nightly job. |
-enable |
Use this option to enable log truncation for the specified protected machine. This is the default option and can be omitted. |
-disable |
Use this option to disable log truncation for the specified protected machine. |
-global |
Use this option to apply the specified setting as the default for this Core. |
-all |
This option applies the specified changes for every protected machine that has at least one Oracle instance installed. |
-usedefault |
Optional. Use this option to apply the default Core settings to the specified machine, which may also be set by using the -global option. |
-deletionpolicy |
Optional. This option must be represented by one of the following values:
"automatic"
"keepnewest"
"keepspecificnumber" |
-retentionduration |
Optional. This value determines the length of time to keep a log before truncating and is constrained to positive integer values. If using the "keepnewest" value of the -deletionpolicy option, a retention duration value is required. |
-retentionunit |
Optional. This option identifies the time unit for the -retentionduration option. It must be represented by one of the following values:
"day"
"week"
"month"
"year" |
-numberoffiles |
Optional. This option sets the number of recent archive log files to keep. If using the "keepspecificnumber" value of the -deletionpolicy option, a number of files value is required. |
Examples:
Edit the Oracle log truncation nightly job settings for the Core globally:
Edit-OracleLogTruncationNightlyJob -core 10.10.127.42 -user admin -password 676df#df -protectedserver 10.10.34.88 -global -deletionpolicy keepspecificnumber -numberoffiles 15
Disable the Oracle log truncation nightly job for a specified protected server:
Edit-OracleLogTruncationNightlyJob -core 10.10.127.42 -user admin -password 676df#df -protectedserver 10.10.34.88 -disable