Contents

Managing Users

This chapter contains the following sections:

Information About User Management

You can identify the users currently connected to the device and send a message to either a single user or all users.

For information about creating user accounts and assigning user roles, see the Cisco Nexus 1000V Security Configuration Guide .

Displaying Current User Access

You can display all users currently accessing the switch.

Before You Begin

Before beginning this procedure, you must be logged in to the CLI.

Procedure
     Command or ActionPurpose
    Step 1 switch# show users 

    Displays a list of users who are currently accessing the system.

     
    switch# show users
    NAME     LINE         TIME         IDLE          PID COMMENT
    admin    pts/0        Jul  1 04:40 03:29        2915 (::ffff:64.103.145.136)
    admin    pts/2        Jul  1 10:06 03:37        6413 (::ffff:64.103.145.136)
    admin    pts/3        Jul  1 13:49   .          8835 (171.71.55.196)*
    switch# 

    Sending a Message to Users

    You can send a message to all active CLI users currently using the system.

    Before You Begin

    Before beginning this procedure, you must be logged in to the CLI.

    Procedure
       Command or ActionPurpose
      Step 1switch# send {session device} line 

      Sends a message to users currently logged in to the system.

      • The sessionargument sends the message to a specified pts/tty device type.

      • The device argument specifies the device type.

      • The line argument is a message of up to 80 alphanumeric characters in length.

       
      switch# send Hello. Shutting down the system in 10 minutes.
                                                                                     
      Broadcast Message from admin@switch                                            
              (/dev/pts/34) at 8:58 ...                                              
                                                                                     
      Hello. Shutting down the system in 10 minutes.                   
      
                                                                                     
      switch# 

      Feature History for User Management

      Feature Name

      Releases

      Feature Information

      User Management

      4.0(4)SV1(1)

      This feature was introduced.


      Managing Users

      Managing Users

      This chapter contains the following sections:

      Information About User Management

      You can identify the users currently connected to the device and send a message to either a single user or all users.

      For information about creating user accounts and assigning user roles, see the Cisco Nexus 1000V Security Configuration Guide .

      Displaying Current User Access

      You can display all users currently accessing the switch.

      Before You Begin

      Before beginning this procedure, you must be logged in to the CLI.

      Procedure
         Command or ActionPurpose
        Step 1 switch# show users 

        Displays a list of users who are currently accessing the system.

         
        switch# show users
        NAME     LINE         TIME         IDLE          PID COMMENT
        admin    pts/0        Jul  1 04:40 03:29        2915 (::ffff:64.103.145.136)
        admin    pts/2        Jul  1 10:06 03:37        6413 (::ffff:64.103.145.136)
        admin    pts/3        Jul  1 13:49   .          8835 (171.71.55.196)*
        switch# 

        Sending a Message to Users

        You can send a message to all active CLI users currently using the system.

        Before You Begin

        Before beginning this procedure, you must be logged in to the CLI.

        Procedure
           Command or ActionPurpose
          Step 1switch# send {session device} line 

          Sends a message to users currently logged in to the system.

          • The sessionargument sends the message to a specified pts/tty device type.

          • The device argument specifies the device type.

          • The line argument is a message of up to 80 alphanumeric characters in length.

           
          switch# send Hello. Shutting down the system in 10 minutes.
                                                                                         
          Broadcast Message from admin@switch                                            
                  (/dev/pts/34) at 8:58 ...                                              
                                                                                         
          Hello. Shutting down the system in 10 minutes.                   
          
                                                                                         
          switch# 

          Feature History for User Management

          Feature Name

          Releases

          Feature Information

          User Management

          4.0(4)SV1(1)

          This feature was introduced.