Forum Discussion

Arnor_Arnason's avatar
Arnor_Arnason
Icon for Altostratus rankAltostratus
Jul 13, 2011

TCL error: invalid command name "1" on GTM

Hi,

 

 

I have the following irule on my GTM:

 

 

 

when DNS_REQUEST {

 

if { [[active_members Global-webservices.landsbanki.is_A10_pool] = 0] and [[active_members Global-webservices.landsbanki.is_RB_pool] = 0] } {

 

drop

 

}

 

elseif { [IP::addr [IP::remote_addr]/24 equals 89.104.145.0/24] } {

 

if { [active_members Global-webservices.landsbanki.is_A10_pool] >= 1 } {

 

pool Global-webservices.landsbanki.is_A10_pool

 

}

 

else {

 

pool Global-webservices.landsbanki.is_RB_pool

 

}

 

return

 

}

 

elseif { [IP::addr [IP::remote_addr]/24 equals 89.104.148.0/24] } {

 

if { [active_members Global-webservices.landsbanki.is_RB_pool] >= 1 } {

 

pool Global-webservices.landsbanki.is_RB_pool

 

}

 

else {

 

pool Global-webservices.landsbanki.is_A10_pool

 

}

 

return

 

}

 

elseif { not [[IP::addr [IP::remote_addr]/16 equals 172.27.0.0/16] or [IP::addr [IP::remote_addr]/19 equals 89.104.128.0/19]] } {

 

drop

 

}

 

}

 

 

 

 

But I always get this error in the /var/log/gtm file:

 

 

 

gtmd[1818]: 011a7001:3: TCL error: Rule Global_Webservice_millinet_irule - invalid command name "1" while executing "[active_members Global-webservices.landsbanki.is_A10_pool] = 0"

 

 

 

and I know that the error comes on the first (bolded above) : [active_members Global-webservices.landsbanki.is_A10_pool] = 0]

 

 

 

Can anyone tell me what is wrong with this ??

 

I don't understand the error - where is this command name "1" ??