CLI Reference Guide

244 AAA Commands
Example
The following example show user login history outputs.
console#show users login-history
Login Time Username Protocol Location
-------------------- --------- --------- -----------
Jan 19 2005 08:23:48 Bob Serial
Jan 19 2005 08:29:29 Robert HTTP 172.16.0.8
Jan 19 2005 08:42:31 John SSH 172.16.0.1
Jan 19 2005 08:49:52 Betty Telnet 172.16.1.7
username
Use the username command in Global Configuration mode to add a new user
to the local user database. The default privilege level is 1. The command
optionally allows the specification of an Administrative Profile for a local user.
Use the no form of this command to remove the username from the local user
database.
Syntax
username name {nopassword|password
password
} [privilege
level
|admin-
profile
profile
] [encrypted]
no username
name
name—
The name of the user. Range: 1-32 printable characters. The
special characters allowed in the password include ! # $ % & ‘ ( ) * +
, - . / : ; < = > @ [ \ ] ^ _ ` { | } ~. User names can contain
blanks if the name is surrounded by double quotes.
password
—The authentication password for the user. Range: 8-64
characters. This value can be 0 [zero] if the
no passwords min-length
command has been executed. The special characters allowed in the
password include ! # $ % & ‘ ( ) * + , - . / : ; < = > @ [ \ ] ^
_ ` { | } ~.
level
—The user’s privilege level. Level 0 can be assigned by a level 15 user
to another user to suspend that user’s access. Range: 0-15. Enter access
level 1 for Read Access or 15 for Read/Write Access.
profile
The name of the administrative profile(s) to apply to this user. An
administrative profile is mutually exclusive with a privilege level.
2CSNXXX_SWUM200.book Page 244 Tuesday, December 10, 2013 1:22 PM