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