Displaying the command history

Description

Displaying the command history

The history command displays the commands that you have executed. You can also view commands executed by another user.

You must be logged in to the system to view the command history.

To display command history

  • To display the command history, enter the following:

    SFS> history [username] [number_of_lines]

    username

    Displays the command history for a particular user.

    number_of_lines

    Displays the number of lines of history you want to view.

    For example:

    SFS> history master 7
    Username      : master
    Privileges    : Master
    Time             Status   Message                   Command       
    02-12-2009 11:09 Success  NFS> server status        (server status)   
    02-12-2009 11:10 Success  NFS> server start         (server start )   
    02-12-2009 11:19 Success  NFS> server stop          (server stop  )   
    02-12-2009 11:28 Success  NFS> fs show              (show fs      )    
    02-12-2009 15:00 SUCCESS  Disk list stats completed (disk list    )    
    02-12-2009 15:31 Success  Network shows success     (show         )   
    02-12-2009 15:49 Success  Network shows success     (show         )  
    SFS>

    The information displayed from using the history command is:

    Time

    Displays the time stamp as MM-DD-YYYY HH:MM

    Status

    Displays the status of the command as Success, Error, or Warning.

    Message

    Displays the command description.

    Command

    Displays the actual commands that were executed by you or another user.

Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)