27-Mar-2020 15:33
Hello Guys,
I am trying to set up an iRule that extract VSA within RADIUS:avp 26 field.
Within the avp 26, I have this : VSA: l=33 t=Cisco-AVPair(1): dc-device-name=cisco C9130AXI-A
I would like to extract this field "cisco C9130AXI-A" and put in a variable.
Would anyone know how to tacke this?
Any help would be much appreciated.
thanks!
01-Apr-2020 04:36
Take a look at https://clouddocs.f5.com/api/irules/RADIUS__avp.html
an example irule would be:
when CLIENT_DATA {
set deviceName [RADIUS::avp 26 'string' index 0 vendor-id 9 vendor-type 128]
}
In the case above, I am not sure about the vendor ID and vendor-type but you can find that from tcpdump