Locally overriding remote user mappings using the CLI

Prev Next

Use the CLI commands in this topic to override remote user mappings.

Prerequisites
  • Admin access

To configure local override rules:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Displays all authorization rules, including whether they are enabled:

    hostname (config) # show aaa authorization rules
  3. Enable all authorization rules:

    hostname (config) # aaa authorization rules enable
  4. Disable all authorization rules:

    hostname (config) # no aaa authorization rules enable
  5. To delete the specified rule, use the following command:

    no aaa authorization rules rule <ruleNumber>
  6. To create a new rule or to modify an existing rule, use the following command:

    aaa authorization rules rule <wordPair>

    where <wordPair> is one of the following:

    • append tail creates a new rule after the highest-numbered existing rule or at position 1 if there are no rules.

    • insert <ruleNumber> creates a new rule at the specified number. If another rule is already at that position, it is shifted up by one, along with the other existing rules above it.

    • set <ruleNumber> creates a new rule at the specified number. If another rule is at that position, it is replaced.

    • modify <ruleNumber> creates or modifies the rule at the specified number. If another rule is at that position, its values are preserved, except when they are overwritten by new values specified in this command.

  7. Save your changes:

    hostname (config) # write memory

For command usage and parameters, see the CLI Reference.