hi all
I am trying to change banners on Cisco Nexus devices in bulk using a script.
It worked fine for IOS devices, but it's not functioning correctly when applied to Nexus devices.
The script I used is as follows:
script ChangeEnablePasswordCiscoIOS (
NCM.Nodes @ContextNode)
{
string @bannertext='
#################################
############test banner##########
#################################
'
CLI
{
configure terminal
banner motd ^@bannertext
^
exit
}
}
When I used a single-line command in the script like 'banner motd ^###testbanner###^,' it worked correctly (in Nexus).
The notable difference during execution on Nexus is the presence of the '>' prompt, unlike IOS.

Is there a way to execute using CRLF in a single line or to make it recognize the '>' prompt?
Do you have any ideas?
Have a great day!