Hello,
I'm running 8.1RC2X13 7-mode, and Data ONTAP PowerShell Toolkit version 1.6.0.132.
I am trying to execute Initialize-NaSecureAdminSsh with key options, and I get an error, "Cannot determine connection type", followed by mention of an ArgumentException. To make sure it isn't a problem with PowerShell connectivity, I executed Get-NaTime and that ran successfully. Full details below. Is this PowerShell cmdlet supported in this build (or a later build)? Is there something wrong with the arguments I'm passing?
Thanks in advance,
Dave
(From Windows PowerShell ISE, after loading OnTap modules)
PS C:\> Connect-NaController 192.168.150.10 -Credential $cred
Name Address Ontapi Version
---- ------- ------ -------
192.168.150.10 192.168.150.10 1.15 NetApp Release 8.1RC2X13 7-Mode: Thu ...
-------------------------------------------------------------------------------------
PS C:\> Initialize-NaSecureAdminSsh -Ssh1HostKeySize 768 -Ssh1ServerKeySize 512 -Ssh2HostKeySize 768 -Force
Initialize-NaSecureAdminSsh : Cannot determine connection type
At line:1 char:28
+ Initialize-NaSecureAdminSsh <<<< -Ssh1HostKeySize 768 -Ssh1ServerKeySize 512 -Ssh2Hos
tKeySize 768 -Force
+ CategoryInfo : InvalidOperation: (192.168.150.10:NaController) [Initiali
ze-NaSecureAdminSsh], ArgumentException
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Secureadmin
.InitializeNaSecureAdminSsh
------------------------------------------------------------------------------------
PS C:\> Get-NaTime
LocalTimeDT UtcTimeDT
----------- ---------
5/18/2012 8:59:52 AM 5/18/2012 12:59:52 PM
------------------------------------------------------------------------------------
PS C:\> Get-NaToolkitVersion
Major Minor Build Revision
----- ----- ----- --------
1 6 0 132
------------------------------------------------------------------------------------