Displays statistics about the Solaris client.
Parameters
- get
- Retrieves performance information for a single, multiple, or all data
items.
- list
- Lists the names of all statistics that can be gathered.
- reset
- Resets the statistics for all the data types.
- monitor
- Specifies that the utility continuously generate statistics.
- –instance mount_point
- Specifies the directory on which the client instance is mounted.
- –data data_type
- Identifies the data types for which the utility gathers statistics. When
you specify more than one data type, separate the data types with a comma
and no space. The data types can be the following values:
- tm - Transaction Manager (TM) statistics per client related to TM data
structures, including the number of messages sent and received (per message
type), the maximum lengths and average lengths of the transaction queue, and
the number of transactions, messages, and leases lost.
- net - Network statistics per metadata server with which this client has
a lease.
- mc - Metadata-cache statistics.
- ho - The states of all objects in the object hash table, including object
ID, flags, and attributes.
- lo - The states of all objects in the object LRU list, including object
ID, flags, and attributes.
- ls - Mutex and latch statistics of metadata cache objects. Statistics
include the number of attempts, wait time, and hold time.
- le - Mutex and latch state of all objects in the object hash table, including
current holder, hold state, and waiters.
- –short
- Displays the minimal information for the specified data items.
- –host host_name –port port_number
- The statistics are sent as a string to the specified host_name on
the specified UDP port. If no host or port is specified, the statistics
are sent to stdout.
- –interval interval
- Specifies the interval (in seconds) at which the
utility generates statistics when the monitor parameter is specified.
Prerequisites
You
must have root privileges to use this command.
Description
The sanfs_ctl
stats get command enables you to retrieve statistics about specific or
all data types. You can use the sanfs_ctl stats list command to see
a list of the available data types. The sanfs_ctl stats reset command
enables you to reset the gathering of these statistics.
Example
Displays statistics from a client for Solaris The
following example displays transaction-manager statistics and metadata-cache
statistics for the local client for Solaris that is mounted on /mnt/sanfs:
sanfs_ctl stats get -instance /mnt/sanfs -data tm,mc