Quantcast
Channel: THWACK: All Content - Network Configuration Manager
Viewing all articles
Browse latest Browse all 6057

Remediation Script on error

$
0
0

Hello,

 

I am working on a remediation script to add/modify syslog on a switch.

 

*******************************

${EnterConfigMode}

logging server 1.1.1.1

${ExitConfigMode}

${SaveConfig}

*******************************

 

The output is the following

********************************

config terminal

Enter configuration commands, one per line.  End with CNTL/Z.

logging server 1.1.1.1

logging server 1.1.1.1

               ^

% Invalid input detected at '^' marker.

end

write memory

Building configuration...

[OK]

*******************************

 

I know this will fail because the command needs to be "logging 1.1.1.1" because the ios on these devices are older. Is there a function for on error?

 

do this command

on error

do this other command

 

 

or do i just need to make a separate remediation script with the proper command


Viewing all articles
Browse latest Browse all 6057

Trending Articles



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