Home > 7-mode Manual Pages > cifs_sessions

cifs_sessions

Table of Contents

NAME

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.

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.

A CIFS client connected to the filer is displayed under the PC IP (PC Name) column as an IP address followed by a NetBIOS name (if available) within parentheses. If NetBIOS name is unavailable, the name is displayed as an IP address followed by empty parentheses.

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 IP(PC Name) (user)           #shares   #files   132.170.108.1(HAWLEY-PC) (hawleyr – root)                                   1          4   192.123.34.56()          (foo – userBar)                                   2          5  

  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 IP (PC Name) (user)          #shares   #files   #dirs    #ChangeNotifies   132.170.108.1(HAWLEY-PC) (hawleyr – root)                                   1         4         1         2   192.123.34.56()          (foo – userBar)                                   5         12        10        10  

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    172.18.34.11(HAWLEY-HOME1)   (sam)     ENG-USERS              Read-denyW   – \SAM\SRC\TEST\test_pgm.c     132.170.108.1(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    172.18.34.11(HAWLEY-HOME1)   (sam) (using security signatures)     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    10.56.19.93(TORTOLA) (nt-domain\danw – root)     HOME    cifs sessions tortola   users     shares/files opened    10.56.19.93(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 using security signatures: 0    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     CIFS sessions using security signatures: 1 


Table of Contents

Copyright © 1994-2008 NetApp, Inc. Legal Information

7-mode Manual Pages , , , ,

  1. No comments yet.
  1. No trackbacks yet.



This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.
%d bloggers like this: