Community
Command Central
MVP Program
Monthly Mission
Blogs
Groups
Events
Media Vault
Products
Observability
Network Management
Application Management
IT Security
IT Service Management
System Management
Database Management
Content Exchange
SolarWinds Platform
Server & Application Monitor
Database Performance Analyzer
Server Configuration Monitor
Network Performance Monitor
Network Configuration Manager
SQL Sentry
Web Help Desk
Free Tools & Trials
Store
Home
Products
Network Configuration Manager (NCM)
Script Problem
jonchill
I've created a script to make changes to a port on a switch see below
${EnterConfigMode}
interface FastEthernet0/21
mls qos cos override
spanning-tree portfast
spanning-tree bpduguard enable
${ExitConfigMode}
When I run it I get the following messages
Switch (192.168.65.250)
config terminal
Enter configuration commands, one per line. End with CNTL/Z.
interface FastEthernet0/21mls qos cos overridespanning-tree portfastpanning-tree bpduguard enable
^
% Invalid input detected at '^' marker.
end
It's seems as if it's not recognising the individual lines in the config.
What am I doing wrong?
Thanks
Jon
IT Infrastructure Manager
Pilgrim Hospital
UK
Find more posts tagged with
Accepted answers
All comments
Mithrilhall
Looks somewhat like the problem I'm having.
If I download a config with Cirrus it looks okay but if I take that config and try to paste it into another switch via CLI it gets pasted as one long string.
It acts like the line breaks/carriage returns are not present.
maustin
We are also having issues with executing scripts, but on a VPN Concentrator. With the previous version of Cirrus, we were able to navigate through the command line (numerical selections) and eventually TFTP files to a remote server on a Cisco VPN 3000 Series Concentrator. In the new version, we are unable to get past the first selection.
Here's the script.
2
8
4
CONFIG
/Admin-Out/Cisco/VPN01/CONFIG
172.26.101.175
4
CONFIG.BAK
/Admin-Out/Cisco/VPN01/CONFIG.BAK
172.26.101.175
4
CERTEXP.TXT
/Admin-Out/Cisco/VPN01/CERTEXP.TXT
172.26.101.175
10
10
6
**Trace log**
After a successful login, it issues a "set length 0" command which is not something I put into the script nor is it a valid command. Once I get an "Out of Range value entered" error it issues the first numerical command (2) stalls and eventually fails.
Any help would be appreciated --
greg
Everyone,
Thanks for your feedback! We have addressed these issues, and a new version should be released from testing in the morning (11/08/2005).
As far as the insertion of the 'set length 0' command:
Every device uses a command template. Before Cirrus communicates with a device, it runs the commands the in "RESET" section of the command template. This helps with pagination, terminal width, echo, etc. To prevent Cirrus from sending the reset command, simply edit the template file:
[C:\Program Files\SolarWinds\Configuration Management\DeviceTypes\(Your device type)]
and set the value = “” for the RESET command.
<Command Name="RESET" Value=""/>
However, most devices will accept these commands (even though they are not valid) and move on. Your session was not continuing due to an issue which was corrected in the upcoming release.
So, you can either edit the template file, confident the command will never get to the device, or leave the command in, and let the device ignore it.
Thanks again,
Greg
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of