Table of ContentsView in Frames

Displaying RSH session information

The rshstat command displays information about RSH sessions, such as the number of RSH sessions invoked, the number of currently active RSH sessions, and the highest number of concurrently active RSH sessions.

Step

  1. Enter the following command:
    rshstat [ -a | -t ]

    Without any options, rshstat displays the following information:

    • The number of RSH sessions invoked since booting the storage system
    • The number of currently active RSH sessions
    • The highest number of concurrently active RSH sessions since booting the storage system
    • The maximum concurrent RSH sessions allowed

    The -a option displays the following additional information:

    • The RSH session number
    • The command the RSH session is executing
      Note: rsh shell in the command field means that the RSH session is being initiated.
    • The remote client's IPv4 or IPv6 address for the RSH session
      Note: If the ip.v6.enable option is set to off, rshstat -a displays only IPv4 connections.
    • The last string written into the audit log for the RSH session
    The -t option displays the amount of time the command is running in milliseconds, in addition to the information displayed by the -a option. The time information includes:
    • The total time used for running the command
    • The protocol connection time
    • The host lookup (gethost) information time

    Example

    						
    toaster> rshstat Session Invocations: 9 Current Active Sessions: 2 Active High Sessions: 3 Maximum Available Sessions: 24 toaster> rshstat -a Session Invocations: 9 Current Active Sessions: 2 Active High Sessions: 3 Maximum Available Sessions: 24 0: sysstat [from 192.0.2.66] (50% 0 0 0 178 219 0 0 0 0 >60 ) ---------------------------------------- 1: nfsstat [from 2001:0DB8:85A3:0:0:8A2E:0370:99] (0 0 0 0 0 0 0 0) ---------------------------------------- toaster> rshstat -t Session Invocations: 9 Current Active Sessions: 2 Active High Sessions: 3 Maximum Available Sessions: 24 0: sysstat [from 192.0.2.66] (50% 0 0 0 178 219 0 0 0 0 >60 ) Command Time: 123ms Connection Time: 123ms Gethost Time: 123ms ---------------------------------------- 1: nfsstat [from 2001:0DB8:85A3:0:0:8A2E:0370:99] (0 0 0 0 0 0 0 0) Command Time: 3490ms Connection Time: 3490ms Gethost Time: 3490ms