Forum Discussion

Pablo_Ayala's avatar
Pablo_Ayala
Icon for Nimbostratus rankNimbostratus
Nov 18, 2009

econdig command

Hi

 

I'm doing the next irule,

 

 

when CLIENT_ACCEPTED {

 

TCP::collect 100

 

}

 

when CLIENT_DATA {

 

set datos1 [TCP::payload]

 

set datos2 [encoding convertfrom ebcdic [encoding convertto ebcdic $datos1]]

 

if { $datos2 contains "magic" } {

 

pool magic_pool

 

} else {

 

pool default_pool

 

}

 

}

 

 

But I get the following error in the log

 

 

- invalid command name "encoding" while executing "encoding convertto ebcdic $datos1"

 

 

 

Then I found on the Internet on the following fact regarding the command

 

 

the encoding command is a Tcl 8.x command and is not present in Tcl 7.6, as far as I know.

 

 

 

I need to use this command

 

 

I can use this command tmos BigIP with version 10???

 

 

Thanks

 

 

pablo

 

 

 

 

 

6 Replies

  • Try splitting it up

     

     

    set datos1 [TCP::payload]

     

    set datos2 [encoding convertto ebcdic $datos1]

     

    set datos3 [encoding convertfrom ebcdic $datos2]

     

     

    I hope this helps

     

     

    Bhattman

     

  • Looks like ask.f5.com needs to update the TCL commands disabled list.

     

     

    Bhattman
  • look this url

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/DisabledTclCommands.html
  • The one I am interested in updating is https://support.f5.com/kb/en-us/solutions/public/6000/300/sol6319.html

     

     

     

    Bhattman

     

  • hi

     

     

    I call F5 and unfortunately does not enable tcl command disabled.

     

     

    greetings

     

     

    pablo
  • HI Pablo,

     

    Yes the command was disabled and it was updated in the ask.f5.com however, the list of disabled command did list it on devcentral. Both sets of documentation haave been updated.

     

     

    Bhattman