I'm working on a script to update user account passwords on some Hirschmann network gear.
I can get the script to work up to the point the new password needs to be entered - from the results of the script it appears SolarWinds enters the new password to soon or doesn't carriage return the current password so the device never gets a chance accept the new password.
Anyone had experience with Hirschmann gear or something similar?
Below is my current script:
************************************************************************************************************************************************************************************
/*
.CHANGE_TEMPLATE_DESCRIPTION
Change Hirschmann user account password.
.CHANGE_TEMPLATE_Tags
Hirschmann
.PLATFORM_DESCRIPTION
Hirschmann.
.PARAMETER_LABEL @ContextNode
NCM Node
.PARAMETER_DESCRIPTION @ContextNode
The node the template will operate on. All templates require this by default. The target node is selected during the first part of the wizard so it will not be available for selection when defining values of variables.
.PARAMETER_LABEL @UserName
Enter Username to be updated
.PARAMETER_LABEL @PassOld
Current Password
.PARAMETER_LABEL @PassNew
New Password
*/
script UpdatePassword(
NCM.Nodes @ContextNode,
string @UserName,
string @PassOld,
string @PassNew )
{
CLI
{
configure
users passwd @UserName
@PassOld
@PassNew
@PassNew
}
}
************************************************************************************************************************************************************************************
Nothing complex in any way.
Assistance appreciated.