Scroll to navigation

mfscli(1) This is part of MooseFS mfscli(1)

NAME

mfscli - CGI in TXT mode

SYNOPSIS

mfscli [-pn28] [-H master_host] [-P master_port] [-f 0..3] -S(IN|IM|LI|IG|MU|IC|IL|MF|CS|MB|HD|EX|MS|RS|SC|OF|AL|MO|QU|MC|CC) [-s separator] [-o order_id [-r]] [-m mode_id] [-i id] [-a count] [-b chart_data_columns] [-c count] [-d chart_data_columns]

mfscli [-pn28] [-H master_host] [-P master_port] [-f 0..3] -C(RC/ip/port|BW/ip/port|M[01]/ip/port|RS/sessionid)

mfscli -h

DESCRIPTION

mfscli is a commandline counterpart to MooseFS's CGI interface. All the information available in CGI (except for graphs) can be obtained via CLI using different "monitoring options"

OPTIONS

print help message
force plain text format on tty devices
do not resolve ip addresses (default when output device is not tty)
field separator to use in plain text format on tty devices (forces -p)
-2
force 256-color terminal color codes
-8
force 8-color terminal color codes
master address (default: mfsmaster)
master client port (default: 9421)
set frame charset to be displayed as table frames in ttymode;
0
simple ascii frames '+','-','|' (default)
1
thick unicode frames
2
thin unicode frames
3
double unicode frames (dos style)
sort data by column specified by 'order id' (depends on data set)
reverse sort order
show data specified by 'mode id' (depends on data set)
sessionid for -SOF or inode for -SAL
how many chart entries should be shown for master
define chart columns for master; prefix with '+' for raw data, prefix with 'ip:[port:]' for server choice
how many chart entries should be shown for chunkserver
define chart columns for chunkserver; prefix with '+' for raw data, prefix with 'ip:[port:]' for server choice

MONITORING OPTIONS

show full master info
show only masters states
show only licence info
show only general master (leader) info
show only master memory usage
show only chunks info (goal/copies matrices)
show only loop info (with messages)
show only missing chunks/files (report from last full chunk loop)
show connected chunk servers
show connected metadata backup servers
show hdd data
show exports
show active mounts
show resources (storage classes,open files,acquired locks)
show storage classes info
show only open files
show only acquired locks
show operation counters
show quota info
show master charts data
show chunkserver charts data

MASTER CHART DATA COLUMNS

User cpu usage
System cpu usage
Number of chunk deletions
Number of chunk replications
Number of statfs operations
Number of getattr operations
Number of setattr operations
Number of lookup operations
Number of mkdir operations
Number of rmdir operations
Number of symlink operations
Number of readlink operations
Number of mknod operations
Number of unlink operations
Number of rename operations
Number of link operations
Number of readdir operations
Number of open operations
Number of read operations
Number of write operations
Resident memory usage
Received packets
Sent packets
Received bytes
Sent bytes
Virtual memory usage
Total cpu usage (scpu + ucpu)

CHUNKSERVER CHART DATA COLUMNS

User cpu usage
System cpu usage
Data received from master
Data sent to master
Data received by replicator
Data sent by replicator
Data received by csserv
Data sent by csserv
Bytes read (headers)
Bytes written (headers)
Low level reads (headers)
Low level writes (headers)
Bytes read (data)
Bytes written (data)
Low level reads (data)
Low level writes (data)
High level reads
High level writes
Read time
Write time
Replicate chunk ops
Create chunk ops
Delete chunk ops
Set version ops
Duplicate ops
Truncate ops
Duplicate+truncate ops
Test chunk ops
Server load
Resident memory usage
Virtual memory usage
Total cpu usage (scpu + ucpu)

COMMANDS

remove selected chunkserver from list of active chunkservers
send selected chunkserver back to work state (from grace state)
switch selected chunkserver to maintenance mode
switch selected chunkserver to standard mode (from maintenance mode)
remove selected session

EXAMPLES

shows table with chunk state matrix (number of chunks for each combination of valid copies and goal set by user) using extended terminal colors (256-colors)
shows table with all chunkservers using unicode thick frames
shows current sessions (mounts) using plain text format and coma as a separator
shows files open by processes using session (mount) with id 123
shows master cpu usage, amount of resident memory used by master, number of chunk deletions and number of chunk replications during last ten minutes
shows cpu usage of chunkservers located on machines with IP 192.168.1.10 and 192.168.1.11 during last fifteen minutes
shows resident memory usage of all connected chunkservers

REPORTING BUGS

Report bugs to <bugs@moosefs.com>.

COPYRIGHT

Copyright (C) 2021 Jakub Kruszona-Zawadzki, Core Technology Sp. z o.o.

This file is part of MooseFS.

MooseFS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (only).

MooseFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with MooseFS; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA or visit http://www.gnu.org/licenses/gpl-2.0.html

SEE ALSO

mfsmaster(8)

August 2021 MooseFS 3.0.116-1