cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
415
Views
0
Helpful
1
Replies

Delay bettween commands - CLI SG500X

tx2online
Level 1
Level 1

I am using CLI to set my VLAN's and various other settings when setting up a switch for the first time - I paste the text below into PUTTY and one after the other, the commands are dealt with. However, when it gets to the 2nd to last line, interface range te1/1/1-2, it errors as an unrecognised command. However, if I type it in separately, it works, so I know it's not me!

From the output I'm getting, it 'looks' like I need to put a delay in, so that the previous command is dealt with, before it moves onto the next, as it seems to not be recognising that the next line is a new command and not a continuation of the previous.

This is the text I paste into PUTTY which autoscrolls through until it gets to the interface range te1/1/1-2 line, where it seems to go wrong.

config
ip default-gateway 10.0.48.254
interface vlan 11
name VOIP
interface vlan 10
name ubiquiti-management
interface vlan 30
name campus-access
interface vlan 103
name ec-printers
interface vlan 104
name technician-vlan
interface vlan 105
name ec-admin
interface vlan 106
name ec-curriculum
interface vlan 108
name apple-macs
interface vlan 109
name vdi-clients
interface vlan 110
name filtered-wifi
interface vlan 120
name sa-preprep
interface vlan 121
name sa-admin
interface vlan 122
name sa-curriculum
interface vlan 201
name switch-management
interface vlan 202
name aerohive-management
interface vlan 203
name cctv-management
interface vlan 212
name wifi-ecguest
interface vlan 500
interface range gi1/1/1-48
no macro auto smartport
interface range te1/1/1-2
no macro auto smartport

 

1 Reply 1

Brandon Svec
Level 7
Level 7

I have come across this sometimes too.  There is just a delay after running certain commands before the CLI will allow further input.  You should be able to fix that in Putty or use a different console program.  Hyperterminal has options to slow it down.  You just need to tell your terminal program to slow down a bit after each CR and perhaps each character too.  Some terminal programs will also allow you to write scripts to include pauses and that could be helpful in your case since you only need to slow down at certain points.

-- please remember to rate and mark answered helpful posts --
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Switch products supported in this community
Cisco Business Product Family
  • CBS110
  • CBS220
  • CBS250
  • CBS350
Cisco Switching Product Family
  • 110
  • 200
  • 220
  • 250
  • 300
  • 350
  • 350X
  • 550X