CLI Guide

Table Of Contents
Security Commands 976
Example
The following example shows 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
Command History
Syntax updated in 6.4 release.
username
Use the username command in Global Configuration mode to add a new user
to the local user (switch administrator) 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-64 printable characters. The
special characters allowed in the username include ! # $ % & ( ) * +
, - . / : ; < = > @ [ \ ] ^ _ ` { | } ~. Question marks are
disallowed.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 ! # $ % & ( ) * + , - . / : ; < = > @ [ \ ] ^
_ ` { | } ~. Question marks are disallowed.