Forum Discussion
Pablo_Ayala
Nimbostratus
Nov 18, 2009econdig 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
- The_Bhattman
Nimbostratus
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 - The_Bhattman
Nimbostratus
Looks like ask.f5.com needs to update the TCL commands disabled list.
Bhattman - Pablo_Ayala
Nimbostratus
look this url
http://devcentral.f5.com/wiki/default.aspx/iRules/DisabledTclCommands.html - The_Bhattman
Nimbostratus
The one I am interested in updating is https://support.f5.com/kb/en-us/solutions/public/6000/300/sol6319.html
Bhattman - Pablo_Ayala
Nimbostratus
hi
I call F5 and unfortunately does not enable tcl command disabled.
greetings
pablo - The_Bhattman
Nimbostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
