Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

CR and/or CRLF in Config Change Templates?

$
0
0

Hi all,

 

I'm trying to run the following Config Change Template. The script validates as it is but I doesn't seem to generate the CR and/or CRLF that was inteded by just having a blank line after "no username alert-ext" in the CLI part. Giving the script any other character simply aborts the "no username alert-ext" command. I also tried to use ${CR} and ${CRLF} instead of just a blank line but then the script wouldn't validate.

 

Anyone know how to generate a RETURN character in Config Change Templates?

 

/*   

.CHANGE_TEMPLATE_DESCRIPTION

        Change enable and local user password 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 @EnableSecret

        Enable Secret

.PARAMETER_DESCRIPTION @EnableSecret

        Enter New Enable Secret

 

.PARAMETER_LABEL @UserSecret

        User Secret

.PARAMETER_DESCRIPTION @UserSecret

        Enter New User Secret

*/

 

 

script ChangeSecretCiscoIOS

 

(

NCM.Nodes @ContextNode,

string @EnableSecret,

string @UserSecret

)

 

{

  CLI

  {

    configure terminal

    enable secret @EnableSecret

    no username alert-ext

   

    username tech privilege 15 secret @UserSecret

    exit

  }

}


Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>