Forum Discussion
iRule to extract Radius Vendor Specific Attribute
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!
- PeteWhite
Employee
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
- Daud
Nimbostratus
thank you Pete.. i will try that
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