Forum Discussion
APM - Limit access to specific IMEI numbers
Hi Pete
Thanks for answering, I can see how to create an empty box, but how do I perform the IMEI check?
Hi Andy,
So it depends on what check you want to do. For instance, do you want to check it begins with or contains a string? Or something more complex than that. The short answer is that you have to write a tcl statement which matches what you want.
Often you will use expr which evaluates an expression and returns a Boolean result eg is string longer than 3?
You also use mcget to retrieve the session variables.
An example to check whether the IMEI starts with 123 is below.
expr { [mcget {session.mdm.device.imei}] starts_with "123"}
In the empty box you will have this as the first branch so anything which matches follows that branch, if it doesn't it follows the fallback branch.
I always start these things very simple - add a pop-up box to check you can see the session variable and start the checking with something very simple and move on from there.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
