This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

NCM Script Management

We're currently in the process of implementing a new syslog server which means we have to go into all of our switches and change the logging host. I'm trying to create a script I can just execute instead of going into each and every switch.

I go to My Dashboards -> Network Configurations -> Configuration Management -> Script Management

I added a new script:

configure terminal
no logging host X.X.X.X
no logging host X.X.X.X
logging host X.X.X.X session-id string access-switch
end
write memory

I check on it in Transfer Status and see

config terminal
Command authorization failed.
no logging host X.X.X.X
^
% Invalid input detected at '^' marker.
no logging host X.X.X.X
^
% Invalid input detected at '^' marker.
logging host X.X.X.X session-id string access-switch
^
% Invalid input detected at '^' marker.
end
^
% Invalid input detected at '^' marker.
write memory
Command authorization failed.

I've tested it without the configure terminal command and checked the Execute Script in Config Mode to see if that would make a difference, same error. I tried only doing one line at a time, same error. I tested it with a simple show command and that works. 

Anyone have any advice or experience working with the scripts?