I’m interested of APM CCU usage, which can be found via APM VPE variable assign: [mcget -license {tmm.license.global_connectivity}].
Is there any direct way to retrieve this value via an irule instead of first assigning it to an APM session variable. The irule would be used in ACCESS_POLICY_COMPLETED event to log session establishment related information including current CCU usage. Would like use this single irule accross multiple access profiles, instead of adding variable assignments to each VPE separately.
irule using “ACCESS::session data get -license tmm.license.global_connectivity”
passes syntax check by GUI
gives warning in the ltm log (when saving the irule):
Warning generated : /Common/auth_logging_irule:6: warning: [The following errors were not caught before. Please correct the script in order to avoid future disruption. "invalid argument tmm.license.global_connectivity"575 65][ACCESS::session data get -license tmm.license.global_connectivity]
gives run time TCL error:
TCL error: /Common/auth_logging_irule - bad option name (line 1)variable lookup failed (line 1)Illegal argument (line 1) (line 1) invoked from within “ACCESS::session data get -license tmm.license.global_connectivity”
Seems that the “-license” option is not allowed. Trying without the “-license” goes syntactically ok and without run time errors, but returns empty or null value. Using the mcget in VPE gives correct CCU max value.