state

Configures a user role state to match with this user-defined role

Supported in the following platforms:

  • Access Points — AP505i, AP510i/e, AP560i/h
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000

Syntax

state [any|contains|exact|not-contains]
state [any|contains <WORD>|exact <WORD>|not-contains <WORD>]

Parameters

state [any|contains <WORD>|exact <WORD>|not-contains <WORD>]

state

Specifies a wireless client filter option based on how the RADIUS state matches the provided expression. Select one of the following options: any, contains, exact, or not-contains.

any

This user role can fit any wireless client irrespective of the state (no strings to match).

contains <WORD>

The user role is applied only when the RADIUS state contains the string specified in the role.

  • <WORD> – Specify the string to match (this is case sensitive, and is compared against the state returned by the RADIUS server). It should contain the provided expression.

exact <WORD>

The role is applied only when the RADIUS state exactly matches the string specified in the role.

  • <WORD> – Specify the exact string to match (this is case sensitive, and is compared against the state returned by the RADIUS server). It should be an exact match.

not-contains <WORD>

The role is applied only when the RADIUS state does not contain the string specified in the role.

  • <WORD> – Specify the string not to match (this is case sensitive, and is compared against the state returned by the RADIUS server). It should not contain the provided expression.

Examples

nx9500-6C8809(config-role-policy-test-user-role-testing)#state exact active
nx9500-6C8809(config-role-policy-test-user-role-testing)#show context
 user-role testing precedence 10
  ssid not-contains DevUser
  captive-portal authentication-state pre-login
  city exact SanJose
  company exact ExampleCompany
  country exact America
  department exact TnV
  emailid exact testing@examplecompany.com
  state exact active
nx9500-6C8809(config-role-policy-test-user-role-testing)#

Related Commands

no

Removes the ‘state‘ filter string associated with a user role