Closed stephan-koch closed 1 year ago
Get-OVServerProfileConnectionList
works on my side so you may have a different problem. Are you sure you don't have an old HPEOneView module still installed on your machine?
What does the following command return?
get-module -ListAvailable | ? name -match hpeoneview
tried it before on POSH on Linux, but also for the Windows Version I get:
PS C:\WINDOWS\System32> Get-OVServerProfileConnectionList
Get-OVServerProfileConnectionList : Cannot validate argument on parameter 'uri'. -URI must being with a '/' (eg.
/rest/server-hardware) in its value. Please correct the value and try again.
At line:1 char:1
+ Get-OVServerProfileConnectionList
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Get-OVServerProfileConnectionList], ParameterBindingValidationExcep
tion
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Get-OVServerProfileConnectionList
PS C:\WINDOWS\System32> get-module -ListAvailable | ? name -match hpeoneview
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 6.30.29... HPEOneView.630 {Remove-OVRemoteSupportContact, Set-OVLdapGroupRole, Ge...
PS C:\WINDOWS\System32> get-module |select Name,Version
Name Version
---- -------
hpeoneview.630 6.30.2928.3678
Microsoft.PowerShell.Management 3.1.0.0
Microsoft.PowerShell.Utility 3.1.0.0
PSReadline 2.0.0
I am connected to an 6.60 synergy
Good, looks like you only have one version of the HPEOneview module,
Can you give the output now of: Get-OVServerProfileConnectionList -verbose
When you run this, can you please provide the output from $error | Format-List * -Force
? I can't reproduce this either.
All Cmdlets are available for any PowerShell client. None are restricted to Windows PowerShell.
here is the output you requested:
PS /home/skoch> Get-OVServerProfileConnectionList
Get-OVServerProfileConnectionList: Cannot validate argument on parameter 'uri'. -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
PS /home/skoch> $error | Format-List * -Force
PSMessageDetails :
Exception : System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'uri'. -URI must being with a
'/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct
the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct
the value and try again.
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at <ScriptBlock>(Closure , FunctionContext )
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope,
Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input,
Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1
variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe,
InvocationInfo invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object
dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop,
List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
at System.Management.Automation.ScriptBlock.DoInvokeReturnAsIs(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior,
Object dollarUnder, Object input, Object scriptThis, Object[] args)
at System.Management.Automation.ValidateScriptAttribute.ValidateElement(Object element)
at System.Management.Automation.ValidateEnumeratedArgumentsAttribute.Validate(Object arguments, EngineIntrinsics engineIntrinsics)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter
parameterMetadata, ParameterBindingFlags flags)
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at lambda_method462(Closure , Object[] , StrongBox`1[] , InterpretedFrame )
TargetObject :
CategoryInfo : InvalidData: (:) [Send-OVRequest], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Send-OVRequest
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.2928.3678/HPEOneView.630.psm1: line 111970
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the
value and try again.
TargetObject : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
CategoryInfo : OperationStopped: (-URI must being wit…alue and try again.:String) [], RuntimeException
FullyQualifiedErrorId : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, /home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.2928.3678/HPEOneView.630.psm1: line 5631
at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.2928.3678/HPEOneView.630.psm1: line 111970
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'uri'. -URI must being with a
'/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct
the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct
the value and try again.
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at <ScriptBlock>(Closure , FunctionContext )
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope,
Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input,
Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1
variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe,
InvocationInfo invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object
dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop,
List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
at System.Management.Automation.ScriptBlock.DoInvokeReturnAsIs(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior,
Object dollarUnder, Object input, Object scriptThis, Object[] args)
at System.Management.Automation.ValidateScriptAttribute.ValidateElement(Object element)
at System.Management.Automation.ValidateEnumeratedArgumentsAttribute.Validate(Object arguments, EngineIntrinsics engineIntrinsics)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter
parameterMetadata, ParameterBindingFlags flags)
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject :
CategoryInfo : InvalidData: (:) [Send-OVRequest], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Send-OVRequest
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.2928.3678/HPEOneView.630.psm1: line 111970
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the
value and try again.
TargetObject : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
CategoryInfo : OperationStopped: (-URI must being wit…alue and try again.:String) [], RuntimeException
FullyQualifiedErrorId : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, /home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.2928.3678/HPEOneView.630.psm1: line 5631
at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.2928.3678/HPEOneView.630.psm1: line 111970
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
Can you update the 6.30 library to the newest version I just published, 6.30.3188.1900
?
Thanks. done this, but did not solve the issue:
PS /home/skoch> get-module | select Name, Version
Name Version
---- -------
HPEOneView.630 6.30.3188.1900
Microsoft.PowerShell.Management 7.0.0.0
Microsoft.PowerShell.Utility 7.0.0.0
PackageManagement 1.4.7
PowerShellGet 2.2.5
PSReadLine 2.1.0
PS /home/skoch> Get-OVServerProfileConnectionList
Get-OVServerProfileConnectionList: Cannot validate argument on parameter 'uri'. -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
PS /home/skoch> $error | Format-List * -Force
PSMessageDetails :
Exception : System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'uri'. -URI
must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its
value. Please correct the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its
value. Please correct the value and try again.
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
at <ScriptBlock>(Closure , FunctionContext )
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean
createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior
errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo
invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(Boolean createLocalScope, Dictionary`2
functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object
input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior
errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo
invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine,
Object[] args)
at System.Management.Automation.ScriptBlock.DoInvokeReturnAsIs(Boolean useLocalScope, ErrorHandlingBehavior
errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args)
at System.Management.Automation.ValidateScriptAttribute.ValidateElement(Object element)
at System.Management.Automation.ValidateEnumeratedArgumentsAttribute.Validate(Object arguments, EngineIntrinsics
engineIntrinsics)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter,
CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
at lambda_method974(Closure , Object[] , StrongBox`1[] , InterpretedFrame )
TargetObject :
CategoryInfo : InvalidData: (:) [Send-OVRequest], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Send-OVRequest
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.3188.1900/HPEOneView.630.psm1: line 112430
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value.
Please correct the value and try again.
TargetObject : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
CategoryInfo : OperationStopped: (-URI must being wit…alue and try again.:String) [], RuntimeException
FullyQualifiedErrorId : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, /home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.3188.1900/HPEOneView.630.psm1: line
5715
at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.3188.1900/HPEOneView.630.psm1: line 112430
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'uri'. -URI
must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its
value. Please correct the value and try again.
---> System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its
value. Please correct the value and try again.
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
at <ScriptBlock>(Closure , FunctionContext )
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean
createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior
errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo
invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(Boolean createLocalScope, Dictionary`2
functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object
input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior
errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo
invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine,
Object[] args)
at System.Management.Automation.ScriptBlock.DoInvokeReturnAsIs(Boolean useLocalScope, ErrorHandlingBehavior
errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args)
at System.Management.Automation.ValidateScriptAttribute.ValidateElement(Object element)
at System.Management.Automation.ValidateEnumeratedArgumentsAttribute.Validate(Object arguments, EngineIntrinsics
engineIntrinsics)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter,
CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject :
CategoryInfo : InvalidData: (:) [Send-OVRequest], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Send-OVRequest
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.3188.1900/HPEOneView.630.psm1: line 112430
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: -URI must being with a '/' (eg. /rest/server-hardware) in its value.
Please correct the value and try again.
TargetObject : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
CategoryInfo : OperationStopped: (-URI must being wit…alue and try again.:String) [], RuntimeException
FullyQualifiedErrorId : -URI must being with a '/' (eg. /rest/server-hardware) in its value. Please correct the value and try again.
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, /home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.3188.1900/HPEOneView.630.psm1: line
5715
at Get-OVServerProfileConnectionList<Process>,
/home/skoch/.local/share/powershell/Modules/HPEOneView.630/6.30.3188.1900/HPEOneView.630.psm1: line 112430
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.Management.Automation.ParameterBindingException: A parameter cannot be found that matches parameter name
'help'.
at System.Management.Automation.CmdletParameterBinderController.VerifyArgumentsProcessed(ParameterBindingException
originalBindingException)
at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1
arguments)
at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)
at System.Management.Automation.CommandProcessor.BindCommandLineParameters()
at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)
at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)
at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
--- End of stack trace from previous location ---
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput,
CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][]
commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject :
CategoryInfo : InvalidArgument: (:) [Get-Module], ParameterBindingException
FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Exception : System.IO.FileNotFoundException: The specified module 'HPEOneview' was not loaded because no valid module file was
found in any module directory.
TargetObject : HPEOneview
CategoryInfo : ResourceUnavailable: (HPEOneview:String) [Import-Module], FileNotFoundException
FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : System.IO.FileNotFoundException: The specified module 'HPE.Oneview' was not loaded because no valid module file was
found in any module directory.
TargetObject : HPE.Oneview
CategoryInfo : ResourceUnavailable: (HPE.Oneview:String) [Import-Module], FileNotFoundException
FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : System.IO.FileNotFoundException: The specified module 'HPE.oneview' was not loaded because no valid module file was
found in any module directory.
TargetObject : HPE.oneview
CategoryInfo : ResourceUnavailable: (HPE.oneview:String) [Import-Module], FileNotFoundException
FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : System.IO.FileNotFoundException: The specified module 'oneview' was not loaded because no valid module file was found
in any module directory.
TargetObject : oneview
CategoryInfo : ResourceUnavailable: (oneview:String) [Import-Module], FileNotFoundException
FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : System.IO.FileNotFoundException: The specified module 'hpeoneview' was not loaded because no valid module file was
found in any module directory.
TargetObject : hpeoneview
CategoryInfo : ResourceUnavailable: (hpeoneview:String) [Import-Module], FileNotFoundException
FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : Microsoft.PowerShell.Commands.WriteErrorException: Module 'hpeoneview' was not updated because no valid module was
found in the module directory. Verify that the module is located in the folder specified by $env:PSModulePath.
TargetObject : hpeoneview
CategoryInfo : InvalidOperation: (hpeoneview:String) [Write-Error], WriteErrorException
FullyQualifiedErrorId : ModuleNotInstalledOnThisMachine,Update-Module
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Update-Module<Process>, /opt/microsoft/powershell/7/Modules/PowerShellGet/PSModule.psm1: line 13022
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : System.Exception: No match was found for the specified search criteria and module names 'hpeoneview'.
TargetObject : Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackage
CategoryInfo : ObjectNotFound: (Microsoft.PowerShel….Cmdlets.GetPackage:GetPackage) [Get-Package], Exception
FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackage
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Update-Module<Process>, /opt/microsoft/powershell/7/Modules/PowerShellGet/PSModule.psm1: line 13015
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : System.UnauthorizedAccessException: Access to the path '/usr/local/share/powershell/Scripts/InstalledScriptInfos' is
denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at Microsoft.PowerShell.Commands.FileSystemProvider.CreateDirectory(String path, Boolean streamOutput)
TargetObject : /usr/local/share/powershell/Scripts/InstalledScriptInfos
CategoryInfo : PermissionDenied: (/usr/local/share/po…nstalledScriptInfos:String) [New-Item], UnauthorizedAccessException
FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, /opt/microsoft/powershell/7/Modules/PowerShellGet/PSModule.psm1: line 16545
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
PSMessageDetails :
Exception : System.UnauthorizedAccessException: Access to the path '/usr/local/share/powershell/Scripts' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at Microsoft.PowerShell.Commands.FileSystemProvider.CreateDirectory(String path, Boolean streamOutput)
TargetObject : /usr/local/share/powershell/Scripts
CategoryInfo : PermissionDenied: (/usr/local/share/powershell/Scripts:String) [New-Item], UnauthorizedAccessException
FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, /opt/microsoft/powershell/7/Modules/PowerShellGet/PSModule.psm1: line 16545
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
Do you have any server profile resources defined with connections that have no network/network set assigned?
Yes, had this. Changed the connections to any network, re-run the command and it is working as expected. So has to do with unassigned Connections.
Apologies for not notifying this soon. This was addressed in the 6.60 library update, and is available on PowerShell Gallery here. I have no plans to backport this to older library releases.
Please verify before this issue is closed.
Hi Chris,
I can confirm that HPEOneView.660 (6.60.3332.3428) returns the List also with Unassigned Networks. I stumbled across this issue because I am trying to create a SPT with unassigned Connections, but I cannot create such a ServerProfileConnection:
$con1=New-OVServerProfileConnection -Name "mgmt_1" -ConnectionID 1 -ConnectionType Ethernet -Network Unassigned The variable cannot be validated because the value is not a valid value for the ApplianceConnection variable.
I also tried $null, same result. Any idea how to create a SPT with unassigned Ethernet Connections?
br
Oliver
As documented in the Cmdlet help:
'To create an unassigned connection, use the Unassigned keyword as the value.'
Thanks! I was not reading the error correctly... `> $con1=New-OVServerProfileConnection -Name 'mgmt_1' -ConnectionID 1 -ConnectionType Ethernet -Network 'Unassigned' The variable cannot be validated because the value is not a valid value for the ApplianceConnection variable. At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.660\6.60.3332.3428\HPEOneView.660.psm1:114268 char:9
+ CategoryInfo : MetadataError: (:) [], ValidationMetadataException
+ FullyQualifiedErrorId : ValidateSetFailure
PS C:\Users\nx012900> $Error|fl -Force
Exception : System.Management.Automation.ValidationMetadataException: The variable cannot be validated because the value is not a valid value for the ApplianceConnection variable.
at System.Management.Automation.PSVariable.SetValue(Object value)
at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts)
at System.Management.Automation.Interpreter.FuncCallInstruction5.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) TargetObject : CategoryInfo : MetadataError: (:) [], ValidationMetadataException FullyQualifiedErrorId : ValidateSetFailure ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at New-OVServerProfileConnection<Process>, C:\Program Files\WindowsPowerShell\Modules\HPEOneView.660\6.60.3332.3428\HPEOneView.660.psm1: line 114268 at <ScriptBlock>, <No file>: line 1 PipelineIterationInfo : {} PSMessageDetails :
The Connection Object is created anyways.
Thanks! I was not reading the error correctly... `> $con1=New-OVServerProfileConnection -Name 'mgmt_1' -ConnectionID 1 -ConnectionType Ethernet -Network 'Unassigned' The variable cannot be validated because the value is not a valid value for the ApplianceConnection variable. At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.660\6.60.3332.3428\HPEOneView.660.psm1:114268 char:9
$ApplianceConnection = $ConnectedSessions | ? Name -eq $Netwo ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : MetadataError: (:) [], ValidationMetadataException
- FullyQualifiedErrorId : ValidateSetFailure
PS C:\Users\nx012900> $Error|fl -Force
Exception : System.Management.Automation.ValidationMetadataException: The variable cannot be validated because the value is not a valid value for the ApplianceConnection variable. at System.Management.Automation.PSVariable.SetValue(Object value) at System.Management.Automation.VariableOps.SetVariableValue(VariablePath variablePath, Object value, ExecutionContext executionContext, AttributeBaseAst[] attributeAsts) at System.Management.Automation.Interpreter.FuncCallInstruction
5.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) TargetObject : CategoryInfo : MetadataError: (:) [], ValidationMetadataException FullyQualifiedErrorId : ValidateSetFailure ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at New-OVServerProfileConnection<Process>, C:\Program Files\WindowsPowerShell\Modules\HPEOneView.660\6.60.3332.3428\HPEOneView.660.psm1: line 114268 at <ScriptBlock>, <No file>: line 1 PipelineIterationInfo : {} PSMessageDetails :
The Connection Object is created anyways.
@olant This needs to be a new issue. Please create a new one so we can track this appropriately.
Closing due to no further activity. If you wish, feel free to re-open to discuss further.
I am getting an error when issuing the Get-OVServerProfileConnectionList against an Synergy 6.6 OneView version
Do I something wrong?