![BelAir Networks BelAir 100SN User Manual Download Page 24](http://html.mh-extra.com/html/belair-networks/belair-100sn/belair-100sn_user-manual_2725293024.webp)
BelAir100SN User Guide
Command Line Interface Basics
May 31, 2010
Confidential
Document Number BDTM11001-A01 Released
Example 2
The following example displays the current date and time when using a Simple
Network Time Protocol (SNTP) server and a time offset of -4 hours and 30
minutes. See
“Configuring the System Date and Time” on page 48
for details.
/# show date
Current date: 2006-07-21 13:15:16 (UTC)
Current date: 2006-07-21 08:45:16
Displaying Current User
whoami
This command displays current user.
Example
/# whoami
/# Current User is root
Switching User
Accounts
su <username>
This command changes the user account you are currently using. To return to
the original user account, use the
exit
command.
Example
/# whoami
Current User is root
/# su guest
/> whoami
Current User is guest
/> exit
/# whoami
Current User is root
Replacing a Token by a
String
alias [<replacement string> <token to be replaced>]
This command replaces the specified token by the given string. It is provided for
customers writing scripts. See
.
Example
/# alias gu guest
Pinging a Host or Switch
ping <host> [-1 <size>]
This command pings a host machine or switch using the host name or IP
address.
The following options are supported:
-l size
specifies the size of the ping request packets to be sent.