[c-nsp] tcl basic question

2014-06-26 Thread selamat pagi
Im very new to tcl scripts, therefore please apologies this question, I was
not able to answer to myslef, even after googling for quite some time.

My script:

 set COPP [ exec {show policy-map control-plane} ]
 foreach map [ regexp -inline {Class-map:[^\n]+\s } $COPP ] {
  }

if [ regexp -all {conformed (\d+) packets} $COPP map0] {
  puts -nonewline $map $map0
 }




Gives output:
Class-map: SNMP (match-all)
  conformed 38118 packets


Required output:
Class-map: SNMP (match-all) conformed 38118 packets-- on same line

I tried with option -nonewline or \n but somehow I did not get it right.

many thanks, keti
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] tcl basic question

2014-06-26 Thread Phil Mayers

On 26/06/14 12:20, selamat pagi wrote:


Gives output:
Class-map: SNMP (match-all)
   conformed 38118 packets


$map probably contains the terminating newline. You need to strip it. No 
idea how in TCL.

___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread thiyagarajan b
Hello,
Request to suggest whether 12.2(58)SE or 12.2(55)SE , a stable IOS for
Cisco 3560-24TS switch since the switch got a software crash installed
with 12.2(52)SE.

Warm Regards,
Thiyagarajan B.
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread Darren O'Connor
I've stuck with (55) and it's never given me trouble

Thanks
Darren
http://www.mellowd.co.uk/ccie



 Date: Thu, 26 Jun 2014 20:24:33 +0530
 From: bn.thiyagara...@gmail.com
 To: cisco-nsp@puck.nether.net
 Subject: [c-nsp] Need suggestion on cisco 3560 sw IOS
 
 Hello,
 Request to suggest whether 12.2(58)SE or 12.2(55)SE , a stable IOS for
 Cisco 3560-24TS switch since the switch got a software crash installed
 with 12.2(52)SE.
 
 Warm Regards,
 Thiyagarajan B.
 ___
 cisco-nsp mailing list  cisco-nsp@puck.nether.net
 https://puck.nether.net/mailman/listinfo/cisco-nsp
 archive at http://puck.nether.net/pipermail/cisco-nsp/
  
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] Affect of flow control on congestion management

2014-06-26 Thread redscorpion69
Hello.

This is not specifically tied to one or other device, but I think an
interesting question, so I'd appreciate if someone form here could shed
some light on this matter.

Basically, we have a situation where our edge switch has a Gb downlink, and
should perform shaping with LLQ inside it for proper class traffic and
congestion management.

Let's say that the shaping needs to be at 100Mbps, because there's downlink
on neighboring device with 100Mbps capacity (which can not do any QoS).

My question is, if we simply use LLQ on this switch's physical link (with
configured bandwidth command at 100Mbps) and not a shaper with it's LLQ,
and if the switch and the other device supports flow control which will
reduce traffic down to 100Mbps, will this flow control together with LLQ on
physical interface be enough to produce same result as if we were to
configure shaper at 100Mbps with LLQ?

I hope you understand what you mean.
Regards
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread Peter Rathlev
On Thu, 2014-06-26 at 20:24 +0530, thiyagarajan b wrote:
 Request to suggest whether 12.2(58)SE or 12.2(55)SE , a stable IOS for
 Cisco 3560-24TS switch since the switch got a software crash installed
 with 12.2(52)SE.

Both of 12.2(55)SE (and SE1) and 12.2(58)SE1 have been good for us.
We've seen no crashes and noticed no bugs. 

We have seen a few crashes on 12.2(53)SE2 and 15.0(1)SE3, both of which
are releases we have been using widespread. The crashes have been so few
it might just be statistical noise though.

This is from looking at ~2000 through 18 months, all of them L2 only and
running IP Base feature set.

I'd probably suggest 12.2(58)SE1 between the two you mention.

-- 
Peter


___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread Nick Hilliard
On 26/06/2014 21:31, Peter Rathlev wrote:
 We have seen a few crashes on 12.2(53)SE2 and 15.0(1)SE3,

I've seen several boxes running 15.0(2)SE and rebuilds suddenly die with
memory problems.  The box would be fine for many months, then one day the
monitoring system would show that it had suddenly started losing ~1% memory
per hour and then would crash a couple of days later with OOM.  I caught
one in the act last week, and show memory suggested that the dot1x
process was chewing up fragments all over the place.  dot1x was disabled on
that switch.

Am currently installing 15.2 on new boxes as it provides much better
support for ipv6 neighbor security.  Haven't run into any major problems yet.

Also the OP should note that when you boot from from 12.2(52)SE to a later
versions, the boot loader will almost do a microcode upgrade on the C3560X
platform. Depending on the version involved, this can take up to 35 minutes
downtime per box.  The release notes still don't mention this as a risk,
which is not good.  It would be very helpful if cisco provided some
information on this in the release notes.

Nick

___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread A . L . M . Buxey
Hi,

 Request to suggest whether 12.2(58)SE or 12.2(55)SE , a stable IOS for
 Cisco 3560-24TS switch since the switch got a software crash installed
 with 12.2(52)SE.

can you even GET 12.2(58)SE for that 3560-24TS switch?  why not use/check
the cisco IOS software download page?  they suggest 12.2.55-SE9(ED) 

we're running a slightly older version than that with no issues (damn..
cursed myself now) - but I guess it depends which of the features 
on the switch you are currently using - I mean, WHAT caused your
software crash? had it analysed?

alan
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread A . L . M . Buxey
Hi,

 Also the OP should note that when you boot from from 12.2(52)SE to a later
 versions, the boot loader will almost do a microcode upgrade on the C3560X
 platform. Depending on the version involved, this can take up to 35 minutes
 downtime per box.  The release notes still don't mention this as a risk,
 which is not good.  It would be very helpful if cisco provided some
 information on this in the release notes.

on recent versions you can do the microcode update BEFORE the reload
(check the update-sw flag list!) which saves loads of down time(!)

alan
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread David Farrell

On 26/06/2014 22:38, Nick Hilliard wrote:

I've seen several boxes running 15.0(2)SE and rebuilds suddenly die with
memory problems.  The box would be fine for many months, then one day the
monitoring system would show that it had suddenly started losing ~1% memory
per hour and then would crash a couple of days later with OOM.  I caught
one in the act last week, and show memory suggested that the dot1x
process was chewing up fragments all over the place.  dot1x was disabled on
that switch.
I've seen similar with 15.0(2)SE on the 2960G but I suspected the SSH 
process according to sh mem, possibly exacerbated by monitoring the 
SSH port for availability. When ours died only a power cycle brought the 
thing back, as opposed to IOS crashing/rebooting... Unpleasant.


I'm planning a downgrade to 12.2(55)SE9 on two units this weekend. I've 
had the code running on a test switch to my satisfaction, I'll attempt 
to remember to note any oddities here.


Cheers,

David.
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread Jeff Kell
On 6/26/2014 6:09 PM, a.l.m.bu...@lboro.ac.uk wrote:

 on recent versions you can do the microcode update BEFORE the reload
 (check the update-sw flag list!) which saves loads of down time(!)

First I've heard of that one (!).

The microcode update is pervasive across the 3560s/3750s.  First time I
ran across it, I was doing a remote IOS update on a number of switches
at a preset maintenance window (reload at xx:yy)... most came right
back, but the ones doing the microcode update I thought were a
meltdown and I was packing up for a repair field trip before trying them
one last time before hitting the door...

Very annoying, and very unexpected the first time around...

Jeff
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


Re: [c-nsp] Need suggestion on cisco 3560 sw IOS

2014-06-26 Thread Jeremy Bresley

On 6/26/2014 5:31 PM, David Farrell wrote:

On 26/06/2014 22:38, Nick Hilliard wrote:

I've seen several boxes running 15.0(2)SE and rebuilds suddenly die with
memory problems.  The box would be fine for many months, then one day 
the
monitoring system would show that it had suddenly started losing ~1% 
memory

per hour and then would crash a couple of days later with OOM. I caught
one in the act last week, and show memory suggested that the dot1x
process was chewing up fragments all over the place.  dot1x was 
disabled on

that switch.
I've seen similar with 15.0(2)SE on the 2960G but I suspected the SSH 
process according to sh mem, possibly exacerbated by monitoring the 
SSH port for availability. When ours died only a power cycle brought 
the thing back, as opposed to IOS crashing/rebooting... Unpleasant.


I'm planning a downgrade to 12.2(55)SE9 on two units this weekend. 
I've had the code running on a test switch to my satisfaction, I'll 
attempt to remember to note any oddities here.


If you're running into out of memory issues on 15.0(2)SE or 15.2(1)SE 
trains, and aren't doing AutoSmartPorts, try doing a no macro auto 
monitor in your config.  This was the cause of memory leaks that we 
experienced on several hundred 3560G/3560X's across multiple sites.  
Sites with large numbers of port up/down events seemed to hit it even 
quicker.  With this disabled we've been pretty happy with 15.0(2)SE4's 
stability for the last 6-9 months or more. We were testing 15.2(1)SE but 
ran into major issues with ip device tracking causing all kinds of 
duplicate IP issues/alert messages. Anybody else encounter this and have 
a fix for it in a predominantly MS environment (Win2K8/2K12 servers for 
DHCP, Win7/8 clients).  The ip device tracking delay 10 didn't make any 
difference when we tried it.  We'd really like to find a fix for it so 
we can get RSVP snooping enabled for mediatrace (dependent on ip device 
tracking)


Jeremy TheBrez Bresley
b...@brezworks.com
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/