logo

Manual Pages


Table of Contents

NAME

na_cifs_sessions - information on current CIFS activity

SYNOPSIS

cifs sessions [ -s | -c ] [ user | machine_IP_address * | machine_name ]

cifs sessions [ -t ] [ -c ]

DESCRIPTION

The cifs sessions command displays information about CIFS users who are connected to the filer. If you omit the argument, the command displays a summary of information about the filer and lists the users who are connected to the filer.

It is also possible to ask for session information by specifying the user's machine_name.

It is possible that Windows 2000 clients may connect to the filer through TCP port 445. In this case, the filer is not provided the machine_name of the user's client machine, so cifs sessions prints the IP address of the client machine instead of the machine name of the client machine in the output of the command.

One can always specify the user's client machine_IP_address to the cifs sessions command. However, if the filer has not been provided the machine name and session information is asked for using the machine_name argument, the cifs sessions command will fail with the message "User (or PC) not logged in".

The -t option displays the total count of CIFS sessions, open shares and open files.

The -c option displays information about open directories and the number of active ChangeNotify requests. When used with the -t option, the total count of open directories and active ChangeNotify requests is also shown. When no other option or argument is present, the -c option shows, for each user, the number of open directories and number of active ChangeNotify requests.

EXAMPLES

  cifs sessions
  Server Registers as 'HAWLEYR-TOKYO' in group 'NT-DOMAIN'
  Filer is using ja for DOS users
  WINS Server: 10.10.10.55
  Selected domain controller \NT-DOMAIN-BDC for authentication
  ========================================
  PC (user)                  #shares    #files
  HAWLEY-PC (hawleyr - root)
                                1          4

  cifs sessions -c
  Server Registers as 'HAWLEYR-TOKYO' in group 'NT-DOMAIN'
  Filer is using ja for DOS users
  WINS Server: 10.10.10.55
  Selected domain controller \NT-DOMAIN-BDC for authentication
  ========================================
  PC (user)                  #shares    #files  #dirs  #ChangeNotifies
  HAWLEY-PC (hawleyr - root)
                                1          4      1          2

If you include the user argument, the command displays information about the specified user, along with the names and access level of files that user has opened. If you use * as the specified user, the command lists all users.

Executing the command for user sam might produce output as follows:

  cifs sessions sam
  users
    shares/files opened

  HAWLEY-HOME1   (sam)
    ENG-USERS
             Read-denyW   - \SAM\SRC\TEST\test_pgm.c


  HAWLEY-PC      (sam)
    ENG-USERS

Specifying the -c option with a user argument, will display the names of open directories and the number of active ChangeNotify requests against the directory.

  cifs sessions -c sam
  users
    shares/files and directories opened

  HAWLEY-HOME1   (sam)
    ENG-USERS
             Read-denyW   - \SAM\SRC\TEST\test_pgm.c
             2 ChgNfys    - \SAM\SRC\TEST

The -s option displays security information for a specified connected user. If you do not specify a user or workstation name, the command displays security information for all users.

Executing the command with -s * might produce the following:

  cifs sessions -s *
  users
    Security Information

  WIN-95    (AGuest - nobody[guest])
          ***************
          UNIX uid = 1208
          user is a member of group nobody(65535)

          NT membership
                  NT-DOMAIN\Domain Guests
                  BUILTIN\Guests
          User is also a member of Everyone, Network Users
          ***************

Here are examples using the machine_name and machine_IP_address arguments:

  cifs sessions 192.168.228.4
  users
    shares/files opened

  TORTOLA (nt-domain\danw - root)
    HOME

  cifs sessions tortola
  users
    shares/files opened

  TORTOLA (nt-domain\danw - root)
    HOME

Here are examples using the -t option:

  cifs sessions -t
    Using domain authentication. Domain type is Windows NT.
    Root volume language is not set. Use vol lang.
    Number of WINS servers: 2
    CIFS sessions: 1
    CIFS open shares: 1
    CIFS open files: 3

  cifs sessions -tc
    Using domain authentication. Domain type is Windows NT.
    Root volume language is not set. Use vol lang.
    Number of WINS servers: 2
    CIFS sessions: 1
    CIFS open shares: 1
    CIFS open files: 3
    CIFS open directories: 1
    CIFS ChangeNotifies: 2


Table of Contents