Hi Twack...
I have a Tech Test Switch 10.222.15.28 does it = NCM.Nodes @ContextNode?
I have a IOS file cat3k_caa-universal9k.16.12.12.SPA.bin does it = string @IOS_FILENAME?
in the script below taken from Twack?
The tftp server has a User = cisco in the Group = cisco on 10.36.8.200 = is this correct?
Please help me develop this script file? Our goal is to use in NCM to upgrade a 3850 Switches.
Thank you. Steve.
script UpgradeIOS (NCM.Nodes @ContextNode,string @IOS_FILENAME )
{
string @CommandLine = 'archive download-sw /overwrite tftp://${cisco:cisco@10.36.8.200}/'; + @IOS_FILENAME
if (@IOS_FILENAME contains ' ')
{}
else
{
foreach ( @node in @ContextNode )
{
if ( @node.Vendor == 'Cisco' )
{
CLI
{
@CommandLine
}
}
}
}
}
This is how I have done in the past on the CLI, below, attached.
[View:/cfs-file/__key/communityserver-discussions-components-files/6/Cisco-3850-Switch-Upgrade.txt:820:615]