5 using powershell snap-in command line interface, Connecting to rmh server, Login-rmh – HP 3PAR Recovery Manager Software User Manual

Page 44: Logout-rmh, Login-rmh logout-rmh

Advertising
background image

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

Description

Optional/Required

Parameter

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

Advertising