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

Re: Config Change Template - Only to be run on a specific device.

$
0
0

I've done this:

at the top of the script, before the commands are executed, I entered

 

if (@ContextNode.SysName == 'xxxxxxxxx')

{

// Enter configuration mode

CLI

{

.... here are the commands that will be executed...

}

}

 

(instead of xxxxxxxxx you insert your SysName)

 

This ensures, that the commands are executed only on that particular device. If other devices are selected, no script will be executed on them.

It's a pity that a device cannot be pre-selected (or at least I have not found a way to do this).

 

Is this what you're looking for?


Viewing all articles
Browse latest Browse all 8827

Trending Articles