09-11-2023 04:23 PM
I have had scripts that initialize C-series servers from a factory config to full application deployment for some time, but a recent change in the firmware is not allowing scripted password changes via the 'usual tools'.
Powershell allows for login, but I cannot use the Set-ImcLocalUser command as previously done to change the user password.
RedFish also allows for 'login' but errors when doing the XPATCH.
Anyone know of a workaround or if there is direction from Cisco on a 'new flow' to affect a touchless provisioning?
d
Solved! Go to Solution.
09-22-2023 10:06 AM
Workaround established.
As noted in my own follow up above, the restrictions on other fields in the admin user and the inability to individually reference a ID in the set-imclocaluser command necessitates a different approach. The below PowerShell Invoke-RestMethod will patch just the password parameter and allow an automated flow to commence:
09-11-2023 04:54 PM
Found some detail in the XML question from a few months back.
Looks like they just constrained what elements can be 'updated' to the password until it is initially reset. That is an issue in the current Powershell structure as there is no -Id option in the set-imclocaluser command. The only way it can be defined what user is to use get-imclocaluser -Id 1| set-imclocaluser -Pwd "xxx" or get-imclocaluser -AccountStatus "active" | set-imclocaluser -Pwd "xxx".
Is there a pending powershell commandlet update to be able to target the user via -Id so a set-imclocaluser -Id 1 -Pwd "xxx" would work?
d
09-22-2023 10:06 AM
Workaround established.
As noted in my own follow up above, the restrictions on other fields in the admin user and the inability to individually reference a ID in the set-imclocaluser command necessitates a different approach. The below PowerShell Invoke-RestMethod will patch just the password parameter and allow an automated flow to commence:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide