Hi Everyone,
I have just started to use the Config Change Templates and can see the great advantage of this feature.
I configured a new template to try something simple and straight forward as creating a new user and a associated secret.
It validates and when I define the variable and run the scripts all looks good. I can even see the NCM service account log in to the node I choose to test on.
But when I look at the running config and the startup config I cannot find the new test user.
What could be causing this? Anyone had similar problem?
This is my template:
/*
.CHANGE_TEMPLATE_DESCRIPTION
Change Secrets on Cisco IOS devices
.CHANGE_TEMPLATE_TAGS
Cisco
.PLATFORM_DESCRIPTION
Cisco IOS
.PARAMETER_LABEL @ContextNode
NCM Node
.PARAMETER_DESCRIPTION @ContextNode
The node the template will operate on
.PARAMETER_LABEL @UserSecret
User Secret
.PARAMETER_DESCRIPTION @UserSecret
Enter New User Secret
*/
script ChangeSecretCiscoIOS (
NCM.Nodes @ContextNode,
string @UserSecret )
{
CLI
{
configure terminal
username test privilege 15 secret @UserSecret
exit
}
}