Skip to main content

mfscli

-h : print this message and exit
-v : print version number and exit
-p : force plain text format on tty devices
-s separator : 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
-H master_host : master address (default: mfsmaster)
-P master_port : master client port (default: 9421)
-n : do not resolve ip addresses (default when output device is not tty)
-f frame charset number : set frame charset to be displayed as table frames in ttymode

       -S data set : defines data set to be displayed
	-SIN : show full master info     展示主服务器信息
	-SIM : show only masters states    只展示主服务器的状态
	-SLI : show only licence info    展示许可证信息
	-SIG : show only general master (leader) info    展示主服务器的全部信息
	-SMU : show only master memory usage    展示主服务器内存信息
	-SIC : show only chunks info (goal/copies matrices) 展示元数据服务器信息
	-SIL : show only loop info (with messages)    显示chunkserver循环信息
	-SMF : show only missing chunks/files  展示丢失文件信息
	-SCS : show connected chunk servers 展示已连接的chunkserver
	-SMB : show connected metadata backup servers  展示连接的备份服务器
	-SHD : show hdd data  展示磁盘信息
	-SEX : show exports  展示报告
	-SMS : show active mounts  展示挂载信息
	-SRS : show resources (storage classes,open files,acquired locks)  
	-SSC : show storage classes  展示存储类
	-SOF : show only open files  展示正在打开的文件
	-SAL : show only acquired locks   展示锁住的文件
	-SMO : show operation counters    查看文件数量
	-SQU : show quota info  查看配额信息
	-SMC : show master charts data      主服务器的图标数据
	-SCC : show chunkserver charts data  元数据服务器的图表数据

 

1. 查詢 mfsmaster 訊息
mfscli -pn -SIM

2.查詢 mfsmaster 最近的收發情況
mfscli -SMC -b psent -b prcvd -b bsent -b brcvd -a 5

3. 查詢chunkserver與mfsmaster之間交互數據的情況
mfscli -SCC -d 192.168 . 0.1 : 9432 :masterin -d 192.168 . 0.1 : 9432 :masterout -c 5