Forum Discussion
Need an ISO8583 Application Switch for card transactions?
when CLIENT_ACCEPTED{
TCP::collect
}
This section collects the first 6 bytes and then uses 'switch' to find a match.
It allows to you decide where to send a request based on its message type.
You could also use this to simply log without performing a pool selection.
when CLIENT_DATA {
log local0. "in CLIENT_DATA"
set clientData [TCP::payload 6]
log local0. "Client Data raw: $clientData"
switch -glob $clientData{
"??0800"{
pool pool_EchoTestMessage
log local0. "This is a Network Management Message."
}
"??0810"{pool pool_ForClientAuthorizations}
}
TCP::release
}
when SERVER_CONNECTED {
TCP::collect
}
This section allows you to perform an action base on the message type of the response from the server.
You could log the message type or even manipulate it before sending it out.
when SERVER_DATA{
set serverData [TCP::payload 6]
log local0. "Response Data raw: $serverData"
switch -glob $serverData{
"??0810"{
log local0. "This is a Network Management Message."
}
"??0820"{log local0. "This is type XXX"
}
}
TCP::release
}
- Nathan_Pearce_4Historic F5 Account
Ignoring the fact that I am replying to my own post...... This version only works on the MTI. If you are only interested in working at the Message Type level then this is all you need.
However, if you are looking for something that can access the full payload, please see the post:
ISO8583 payload interpreter/switch | DevCentral - wlopezCirrocumulus
Does anyone have a working iRule and setup to load balance ISO8583 transactions that are received through a single tcp connection on the virtual server?
- bahrampeymaniNimbostratus
can you have any soulotion for one session multiplex to backend server ?
can help me ?
Recent Discussions
Related Content
* 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