HP 3PAR Recovery Manager 1.1.0 Software for Microsoft Hyper-V User Guide (QL226-96343, June 2013)

5 Using PowerShell Snap-in Command Line Interface
HP 3PAR Recovery Manager for Hyper-V includes custom Powershell snap-in as the default client
interface and provides essential command lines for administrative tasks.
Connecting to RMH Server
Use the following command lines to establish a session with the Microsoft Hyper-V server.
Login-Rmh
Log on to RMH Server using Windows RMH account.
The optional login-Rmh enables the user to log on to Recovery Manager for Hyper-V. After a
successful login is established, the user is not required to enter additional credentials for subsequent
Cmdlets.
Preconditions
The user must first login with Login-Rmh.
Syntax
Any optional parameters require square brackets [ ] around them.
Login-Rmh-RmhServerName <-RmhServerName>-RmhUserName
<-RmhUserName>-RmhPassword <-RmhPassword>[-RmhEncrytedPassword]
Table 18 Login-Rmh parameters
DescriptionOptional/RequiredParameter
Host name of the RMH Server. This is
FQDN or IP address.
Required-RmhServerName
RMH user name. If not specified, a
dialog box will be presented to enter
credentials.
Required-RmhUserName
RMH user password. If not specified, a
dialog box will be presented to enter
credentials.
Required-RmhPassword
May be used instead of
-RmhPassword
-RmhEncrytedPassword
Logout-Rmh
The optional logout-Rmh Cmdlet logs off the user from the application.
Preconditions
The user must first login with Login-Rmh.
Syntax
Any optional parameters require square brackets [ ] around them.
Logout-Rmh -RmhServerName <RmhServerName> [-Remove]
44 Using PowerShell Snap-in Command Line Interface