cancel
Showing results for 
Search instead for 
Did you mean: 

lindex - am I doing something wrong?

lindex - am I doing something wrong?

EtherNation_Use
Contributor II
Create Date: Feb 15 2012 7:32PM

No matter how I try - it doesn't work:



set var cli.out 0

show port 12 info detail

set var txtOutput $tcl(split ${cli.out} " ")

set var VlanLine $TCL(lindex $txtOutput 10)

create log entry $VlanLine



It keeps giving me errors about $VlanLine .... what's wrong here?



Thanks,

(from Eugen_NAIMAN)
2 REPLIES 2

EtherNation_Use
Contributor II
Create Date: Feb 19 2012 1:57PM

Thanks jarek - that did work.

I guess I need to read a bit more about TCL.

(from Eugen_NAIMAN)

EtherNation_Use
Contributor II
Create Date: Feb 16 2012 9:28AM

Hi,

this will work for you -> create log entry "$(VlanLine)"

--
Jarek (from Jaroslaw_Kasjaniuk)
GTM-P2G8KFN