Active IQ Unified Manager Discussions

WFA Version 3.1 - hexadecimal value 0x03 error

sheelnidhig
3,613 Views

Hello All,

 

I am trying to validate the Workflows in version 3.1, which were created in older version of WFA 3.0P2.

But then i try to execute of the custom command i get the following error:

 

"20:05:38.481 ERROR [Create New User] Command failed for Workflow 'CLI Admin Access to Netapp (cDOT)' with error : '_x0003_', hexadecimal value 0x03, is an invalid character. Line 1, position 110."

can anyone please help me what could be a possible issue.

The command code is:

 

param (
[parameter(Mandatory=$true, HelpMessage="Cluster (controller) IP or name")]
[string]$Cluster,

[parameter(Mandatory=$true, HelpMessage="Username")]
[string]$Username,

[parameter(Mandatory=$true, HelpMessage="Role for which user needs to request access for !")]
[string]$role,

[parameter(Mandatory=$true, HelpMessage="Comment with date and time!")]
[Bool]$spaccess,

[parameter(Mandatory=$true, HelpMessage="Comment with date and time!")]
[string]$comment,

[parameter(Mandatory=$false, HelpMessage="Any Additional Test")]
[string]$AdditionalText
)

Connect-WfaCluster $Cluster

$passkey = Get-WfaWorkflowparameter -name $Username
# $passkey = ConvertTo-SecureString $password -AsPlainText -Force
Get-WFALogger -Info -message $("Password Gathered")
$date = date
if ($AdditionalText){
$comments = $comment + "(Created on " + $date + " ). Requested for " + $AdditionalText + " Hours."
} else {
$comments = $comment + "(Created on " + $date + " )"
}

$getuser = Get-NcUser -name $Username -Application $application -Vserver $Cluster
if ($getuser) {
Get-WFALogger -Info -message $("Found user")
if (($getuser).IsLocked -like "True") {
Get-WFALogger -Info -message $("User " + $Username + " is Locked")
Unlock-NcUser -UserName $Username -Vserver $Cluster
Set-NcUserPassword -UserName $Username -Password $passkey -VserverContext $Cluster
Get-WFALogger -Info -message $("Unlocking user")
} else {
Get-WFALogger -Info -message $("Updating user password")
Set-NcUserPassword -UserName $Username -Password $passkey -VserverContext $Cluster
}

} else {
Get-WFALogger -Info -message $("Creating new User: " + $Username)
New-NcUser -UserName $Username -vServer $Cluster -Application 'ssh' -Role $role -Password $passkey -Comment $comments
Get-WFALogger -Info -message $($comments)
if ($spaccess -eq $TRUE) {
New-NcUser -UserName $Username -vServer $Cluster -Application 'service-processor' -Role $role -Password $passkey -Comment $comments
New-NcUser -UserName $Username -vServer $Cluster -Application 'console' -Role $role -Password $passkey -Comment $comments
Get-WFALogger -Info -message $("Creating new User with SP access : " + $Username)
}
}

 

Thanks,

Sheel

3 REPLIES 3

sinhaa
3,580 Views

You must be restoreing a backup taken from one WFA machine on to another WFA server. Is it correct?

 

If yes then you need to import the WFA -key from the original server into the new WFA server. After that this all should be fine. Read about it in WFA installation & setup Guide.

 

sinhaa

 

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

sheelnidhig
3,574 Views

I did that and it appears to be a new error code this time:

 

"'_x001E_', hexadecimal value 0x1E, is an invalid character. Line 1, position 114."

 

,Sheel

sinhaa
3,562 Views

Are you sure you did everything correctly?

 

There is an old thread which looks similar : 2.1 Error with Create Volume cmd: '_x001B_', hexadecimal value 0x1B, is an invalid character

See if can be of any help.

 

But if the command was working fine on old WFA, then I can only see that you have done some error with the WFA3.1 key. 

 

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public