First, of all, I'm not sure the best place to ask this, here or over in E-Series Plug-in section, but I'll start here.
Second, I admit to having weak E-Series background but fairly strong on PowerShell and DataONTAP toolkit.
Environment:
- purely lab to dev/test E-Series automation with PowerShell and WFA
- Current running:
- Win2012 system-A
- SANtricity Sim v11.20
- SANtricity WSP v1.3
- Win2012 system-B
- Netapp PowerShell Tool 4.1
- WFA 3.1P2 (thou not involved in this problem/question)
I've included a hunk of test-code belwo demonstrate my problem. I'm trying to determine why my New-NeThinVolume cmdlet is going: 'A non-protocol error occured'
I probably don't fully understand SANtricty and WSP security but I'm stuck. I'm flip flopping between two user/pswds in user.properties file: eseries and admin. When I run this code with 'eseries' user the error is: 'The operation cannot complete because you did not provide a valid administrator password. '
---
#Tue May 10 17:05:21 PDT 2016
admin=MD5\:6c6c7c5d71ad44b9e806d5023aadef4b,admin
eseries=MD5\:6c6c7c5d71ad44b9e806d5023aadef4b,storage.rw
ro=MD5\:3605c251087b88216c9bca890e07ad9c,storage.ro
rw=MD5\:038c0dc8a958ffea17af047244fb6960,storage.rw
---
When I change to the 'admin' user, the error becomes 'A non-protocol error occured'. I'm sure there is something wrong with the cmdlet formation but I haven't a clue. PSTK documentation and expamples seem sparse. Most other cmdlets I try behave the same ... though Get-NeDisplaySystems seems to consistently work.
Is it how I'm forming the systemId and/or poolid correctly?
---- the code ---
$NPMPath = "C:\Program Files (x86)\NetApp\NetApp PowerShell Toolkit\Modules\NetApp.SANtricity.PowerShell\"
try {
$Hostname = "hq-stor-es"
$Port= 8080
$Username = "admin"
$Password = "netapp123"
$secPassword = ConvertTo-SecureString $Password -AsPlainText -Force
$PSCred = New-Object system.management.automation.pscredential( $Username, $secPassword )
} catch {
throw "Error getting data source credentials. Please see the log file for more details"
}
$URI = $( "http://" + $Hostname + ":" + $Port )
if ( $Port -eq 443 -or $Port -eq 8443 ) {
$URI= $( "https://" + $Hostname + ":" + $Port )
}
try {
$Url = $( $URI + "/devmgr/" )
$NECred = New-NeCredential -ProxyUrl $Url -SystemCredential $PSCred
} catch {
throw $( "Error running New-NeCredential. Verify SANtricity PowerShell Module is installed on the WFA server." )
}
write-output ""
write-output "LISTING OUT ALL STORAGE SYSTEMS ..."
$StorageSystems = Get-NeStorageSystem -Credential $NECred
for ( $ssi = 0; $ssi -lt $StorageSystems.count; $ssi++ )
{
write-output " "
write-output " "
write-output $(" ID: " + $StorageSystems[$ssi].id )
write-output $(" Name: " + $StorageSystems[$ssi].name )
write-output $("Model: " + $StorageSystems[$ssi].model )
write-output $(" WWN: " + $StorageSystems[$ssi].wwn )
write-output $("IPadr: " + $StorageSystems[$ssi].ip1 )
}
write-output " "
write-output "ATTEMPTING TO CREATE NEW THIN VOLUME ..."
$tvObj = New-NeThinVolume -Credential $NECred -SystemId 1 -PoolId 3233343536373839303132333100000000000000 -Name myVolume -SizeUnit gb -VirtualSize 128 -RepositorySize 4 -MaximumRepositorySize 4
--- console log of running above in ISE ---
PS C:\Windows\system32>
ID: 1
Name: CUA34286ESE001
Model: 5504
WWN: C0A87E78040404040404040404040404
IPadr: 127.0.0.1
ID: 2
Name: CUA34286ESE2901
Model: 5481
WWN: C0A87E78070707070707070707070707
IPadr: 127.0.0.1
ID: 3
Name: MIA34286ESE001
Model: 5600
WWN: C0A87E78090909090909090909090909
IPadr: 127.0.0.1
ATTEMPTING TO CREATE NEW THIN VOLUME ...
New-NeThinVolume : A non protocol error occurred.
At Z:\VMshare\My Accounts\~POSH-UTILS\e-series-test.ps1:44 char:10
+ $tvObj = New-NeThinVolume -Credential $NECred -SystemId 1 -PoolId 3233343536373 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ({"poolId":"3233...ositorySize":4}:String) [New-NeThinVolume], NetAppPowerShellException
+ FullyQualifiedErrorId : parameterError,Netapp.Santricity.PowerShell.NewThinVolumeCmdlet
PS C:\Windows\system32>