You can view 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
-
Enter the following command: rshstat [ -a | -t ]
Without any options, rshstat displays the following information:
- The number of rsh sessions invoked since the bootup of the storage system
- The number of currently active rsh sessions
- The highest number of concurrently active rsh sessions since the bootup of the storage system
- The maximum concurrent rsh sessions allowed
The -a option displays the following additional information:
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: options [from 10.56.10.118]
(locking.grace_lease_seconds 45)
----------------------------------------
1: rsh shell [from 10.72.136.56] ()
----------------------------------------
toaster> rshstat -t
Session Invocations: 9
Current Active Sessions: 2
Active High Sessions: 3
Maximum Available Sessions: 24
0: options [from 10.56.10.118]
(locking.grace_lease_seconds 45)
Command Time: 123ms
Connection Time: 123ms
Gethost Time: 123ms
----------------------------------------
1: rsh shell [from 10.72.136.56] ()
Command Time: 3490ms
Connection Time: 3490ms
Gethost Time: 3490ms