-
Notifications
You must be signed in to change notification settings - Fork 52
Connect HPOVMgmt
Initiate a connection to an HPE OneView appliance.
Connect-HPOVMgmt [-Hostname] <String> [-UserName] <String> [-Password] <String> [-AuthLoginDomain] <String>[ [-LoginAcknowledge] <SwitchParameter>] [<CommonParameters>]
Establish a connection with the specified HPE OneView appliance. Logs the user into the appliance and establishes a session for use with subsequent requests. Prompts will be displayed for any omitted values.
Appliance hostname or IP can include an alternate TCP port number. While the appliance does not allow the default TCP port 443 to be changed, the appliance could reside behind a firewall, which is redirecting an alternate TCP port number.
-AuthLoginDomain <String>
Aliases [-AuthProvider]
The Directory Name for LDAP/Active Directory authentication, or LOCAL for appliance internal user accounts.
Default is determined by examinig registry at HKCU\Software\Hewlett-Packard\HPOneView, and if a valid REG_SZ property of 'AuthProvider#{Hostname' exists This REG property is configured when Set-HPOVLDAPDefaultDirectory is used. Otherwise, 'LOCAL'.
Aliases | None |
Required? | true |
Position? | 3 |
Default value | LOCAL |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Hostname <String>
Aliases [-appliance]
The hostname or IP address of the appliance.
Aliases | None |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-LoginAcknowledge <SwitchParameter>
When a Login Message has been configured and acknowledgement is Required, use this parameter to acknowledge it during the initial call. Otherwise, if omitted, and a Login Banner acknowledgement is required, the caller will be prompted. This prompt does not support the -Confirm parameter.
Aliases | None |
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Password <String>
Aliases [-p]
Password to log into the appliance.
Aliases | None |
Required? | true |
Position? | 2 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-UserName <String>
Aliases [-u, -user]
User name to authenticate.
Aliases | None |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
None. You cannot pipe objects to this Cmdlet.
HPOneView.Appliance.Connection When a valid connection is established with an appliance, this object is then added to ${Global:ConnectedSessions} connection tracker variable.
The object returned will contain the following public properties:
==================================================================
| Name | Type | Value |
|-----------------------------------------------------------------
| AuthLoginDomain | String | Local |
------------------------------------------------------------------
| ConnectionId | Int | 1 |
------------------------------------------------------------------
| Name | String | Hostname value |
------------------------------------------------------------------
| SessionID | String | auth string returned from API |
------------------------------------------------------------------
| SslChecked | Bool | Internal Library flag |
------------------------------------------------------------------
| UserName | String | Username value |
------------------------------------------------------------------
System.Management.Automation.PSCustomObject On error, appliance response is returned.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Connect-HPOVMgmt -appliance myappliance.domain.com ConnectionID Name UserName AuthLoginDomain ------------ ---- -------- --------------- 1 myappliance.domain.com Administrator LOCAL
Connect to a specific appliance FQDN. The user will be prompted for authentication provider, user name and password.
-------------------------- EXAMPLE 2 --------------------------PS C:\> Connect-HPOVMgmt -appliance myappliance.domain.com:11223
Connect to a specific appliance, where the target TCP port isn't the default. The user will be prompted for authentication provider, user name and password.
- [Disconnect-HPOVMgmt] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Disconnect-HPOVMgmt)
- [Start-HPOVLibraryTrace] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Start-HPOVLibraryTrace)
- [Stop-HPOVLibraryTrace] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Stop-HPOVLibraryTrace)
Initiate a connection to an HP OneView appliance.
Connect-HPOVMgmt [-appliance] <appliance>[ [-authProvider] <authProvider>] [-User] <User>[ [-password] <password>] [<CommonParameters>]
Establish a connection with the specified HP OneView appliance. Logs the user into the appliance and establishes a session for use with subsequent requests. Prompts will be displayed for any omitted values.
Appliance hostname or IP can include an alternate TCP port number. While the appliance does not allow the default TCP port 443 to be changed, the appliance could reside behind a firewall, which is redirecting an alternate TCP port number.
-appliance <appliance>
The hostname or IP address of the appliance.
Aliases | |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-authProvider <authProvider>
The Directory Name for LDAP/Active Directory authentication, or LOCAL for appliance internal user accounts. The Directory Name does not need to match the Active Directory or LDAP Authentication Realm name. It is the Authentication Directory Display Name configured on the HP OneView Appliance.
Default is LOCAL.
Aliases | |
Required? | false |
Position? | 4 |
Default value | LOCAL |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-User <User>
Aliases [-u] User name to authenticate.
Aliases | |
Required? | true |
Position? | 2 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-password <password>
Aliases [-p] Password to log into the appliance.
Aliases | |
Required? | false |
Position? | 3 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
None. You cannot pipe objects to this cmdlet.
None. On successful auth, command prompt will display [username]@[appliance]. If console prompt is disabled via the Set-HPOVPrompt cmdlet, Show-HPOVAppliance can be used.
System.Management.Automation.PSCustomObject On error, appliance response is returned.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Connect-HPOVMgmt -appliance myappliance.domain.com
Connect to a specific appliance FQDN. The user will be prompted for authentication provider, user name and password.
-------------------------- EXAMPLE 2 --------------------------PS C:\> Connect-HPOVMgmt -appliance myappliance.domain.com:11223
Connect to a specific appliance, where the target TCP port isn't the default. The user will be prompted for authentication provider, user name and password.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Connect-HPOVMgmt -Appliance myappliance.domain.com -Username MyAccount@domain.com -Password MyPassword -AuthProvider MyDomain Connect to a specific appliance, using an Authentication Directory User Account.
Note: MyDomain is the Display Name of the Authentication Directory configured on the appliance, and does not necessarily match the Active Directory or LDAP Authentication Realm name.
- [Disconnect-HPOVMgmt] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Disconnect-HPOVMgmt)