#第一分隔符表示Module，第二个分隔符表示关键字，第三个分隔符表示指令，第四分隔符表示输出目录或文件
#关键字以functionX开头表示后面调用的是函数，函数位于OsFunctions.sh
#使用getHBAInfo时需要将OneCapture_Linux.sh和qla_linux-info.sh文件放在script\subcommand\Config\OsScript目录
#
cpu  	;get proc_cpuinfo				;cp /proc/cpuinfo                           ;/
cpu	 	;get dmidecode_CPU				;dmidecode -t processor 					;cpu_dmidecode.txt
nic 	;get ifconfig					;ifconfig									;ifconfig.txt
nic     ;get network-scripts			;cp -rL /etc/sysconfig/network-scripts/ 	;etc/sysconfig/
nic     ;get iptable					;iptables -L  								;iptables_l.txt
nic		;get ip addr 					;ip addr show 								;ipaddr.txt
nic		;get ip -s link 				;ip -s link show 							;iplink.txt
nic 	;get ip route					;ip route show								;iproute.txt
nic     ;get ss -anlp					;ss -alnp 									;ss_anlp.txt
nic     ;get netstate -anlp				;netstat -alnp 								;netstat_anlp.txt
nic     ;functionX ethtoolinfo			;getEthtoolInfo
bios 	;get dmidecode					;dmidecode 									;dmidecode.txt
#bios	;functionX getBiosOptions 		;getBiosOptions
bmc		;functionX getIpmiLogs			;getIpmiLogs
memory	;get proc_meminfo				;cp /proc/meminfo                           ;/
memory  ;get dmidecode_Memory			;dmidecode -t memory 						;memory_dmidecode.txt
memory  ;get free-h						;free -h 									;memory_free.txt
raid 	;functionX LSI_log				;getMegaRaidLog
raid 	;functionX PMC_log				;getPmcLog
raid    ;functionX Raid9230_log         ;get9230RaidLog
disk	;functionX getSmart			    ;getSmart
disk    ;get parted						;parted -l									;parted_l.txt
disk    ;get fdisk						;fdisk -l									;fdisk_l.txt
disk    ;get lsblk						;lsblk			 							;lsblk.txt
driver  ;get Driver						;lsmod 			 							;lsmod.txt	 				
driver  ;functionX ModuleInfo			;getModuleInfo		 			
driver  ;get Modprobe.d					;cp -rL /etc/modprobe.d/ 					;etc/
sysconf ;get lsCPU						;lscpu 			 							;lscpu.txt
sysconf ;get lsHW						;lshw 			 							;lshw.txt
sysconf ;get lsusbtv					;lsusb -tv 			 						;lsusbtv.txt
system 	;copy syslog          			;tail -n 10000 /etc/syslog.conf    			;etc/syslog.conf
system  ;cp rsyslog.conf       			;tail -n 10000 /etc/rsyslog.conf           	;etc/rsyslog.conf
system 	;get mcelog          			;tail -n 10000 /var/log/mcelog    			;var/log/mcelog
system 	;get syslog						;tail -n 10000 /var/log/syslog    			;var/log/syslog
system 	;get bootlog          			;tail -n 10000  /var/log/boot.log      		;var/log/boot.log
system 	;functionX getMessages          ;getMessages
system 	;get cron          				;tail -n 10000 /var/log/cron      			;var/log/cron
system 	;get secure         			;tail -n 10000 /var/log/secure    			;var/log/secure
system 	;get bashhistory		   		;tail -n 10000 /root/.bash_history 			;root/bash_history
system 	;get dmesg          			;dmesg                   					;dmesg.txt 
system 	;get resolve          			;tail -n 10000 /etc/resolv.conf    			;etc/resolv.conf
system 	;get hosts         				;tail -n 10000 /etc/hosts          			;etc/hosts
system 	;get interfaces         		;tail -n 10000 /etc/network/interfaces 		;etc/network/interfaces
system 	;get bonding        			;tail -n 10000 /proc/net/bonding/bond* 		;proc/net/bonding
system 	;get exports         			;tail -n 10000 /etc/exports            		;etc/exports
system 	;get fstab         				;tail -n 10000 /etc/fstab            		;etc/fstab
system 	;get maps        				;tail -n 10000 /proc/self/maps         		;proc/self/maps
system 	;get smaps        				;tail -n 10000 /proc/self/smaps        		;proc/self/smaps
system 	;get numa_maps        			;tail -n 10000 /proc/self/numa_maps    		;proc/self/numa_maps
system 	;get sysctl         			;tail -n 10000 /etc/sysctl.conf        		;etc/sysctl.conf
system 	;get bootconfig          		;cp -rL /boot/config*           			;boot/
system 	;get _rpmqa      				;rpm -qa              						;command_log.txt
system 	;get _lsls_boot          		;ls -lh /boot                   			;boot/ls_boot.txt
system 	;get _ntp_conf        			;tail -n 10000 /etc/ntp.conf           		;etc/ntp.conf
system  ;cp chrony.conf     			;tail -n 10000 /etc/chrony.conf				;etc/chrony.conf
system 	;get _ntp_step        			;tail -n 10000 /etc/ntp/step-tickers   		;etc/ntp/step-tickers
system 	;get _cmdline       			;tail -n 10000 /proc/cmdline          		;proc/cmdline
system  ;copy rule.d      				;cp -rL /etc/udev/rules.d        			;etc/udev/
system  ;copy grub       				;cp -rL /boot/grub/               			;boot/
system  ;copy grub2        				;cp -rL /boot/grub2/               			;boot/
system  ;cp crash_txt     				;tail -n 10000 /var/crash/*.txt             ;dump_list.txt
system 	;get df_lT       				;df -lT           							;command_log.txt
system 	;get df_li        				;df -li           							;command_log.txt
system 	;get mount        				;mount            							;command_log.txt
system 	;get last 						;last           							;command_log.txt
system 	;get uptime        				;uptime           							;command_log.txt
system 	;get iostat        				;iostat           							;command_log.txt
system 	;get topn1        				;top -b -n 1           						;command_log.txt
system 	;get vmsta        				;vmstat           							;command_log.txt
system 	;get sevicestatus        		;service --status-all           			;command_log.txt
system 	;get uname_a        			;uname -a           						;command_log.txt
system 	;get auwx        				;ps auwx           							;command_log.txt
system 	;get _rintenv       			;printenv                          			;command_log.txt
system 	;get hostname       			;hostname                      				;command_log.txt
system 	;get etc_issue       			;cat /etc/issue                    			;command_log.txt
system 	;chkconfig_list       			;chkconfig --list                  			;command_log.txt
system  ;get service set    			;systemctl list-unit-files --type=service  	;command_log.txt
system  ;get redhat_version     		;cat /etc/redhat-release                   	;command_log.txt
system  ;get os_version     			;cat /etc/os-release                      	;command_log.txt
system	;get blkid						;blkid										;command_log.txt
system  ;get runlevel      				;runlevel                         			;command_log.txt
gpu  	;get fabricmanager_status		;systemctl status nvidia-fabricmanager		;nvidia-fabricmanager_status.txt
gpu  	;functionX getNvidiaBugReport   ;getNvidiaBugReport
gpu  	;functionX getNvidiaSmi   		;getNvidiaSmi
gpu  	;functionX getLogsByLspci   	;getLogsByLspci
hba     ;functionX getFcWwpn			;getFcWwpn
hba     ;functionX getFcDriverFw		;getFcDriverFw
#debug command; 当选项加入-d时才会收集
gpu     ;functionX getGPUInfo           ;getGPUInfo                                 ;                   ;debug
gpu     ;functionX getGPUInfo_dmon      ;getGPUInfo_dmon                            ;                   ;debug
gpu     ;functionX getGPUInfo_pmon      ;getGPUInfo_pmon                            ;                   ;debug
memory  ;get mcelog        				;mcelog --client 							;mem_ecc.txt 		;debug
system  ;copy /var/log/sa               ;cp -r /var/log/sa                          ;system/            ;debug
system 	;functionX sosreport    		;getOsReportLogs							;					;debug
system  ;get ipcs_l 					;ipcs -l           							;command_log.txt 	;debug
system  ;get ipcs_l      				;ipcs -a           							;command_log.txt	;debug
system  ;get sysctl -a    				;sysctl -a           						;command_log.txt	;debug
system  ;get /var/crash/     			;du -ah /var/crash/                  		;dump_list.txt		;debug
system  ;get hwmon_deviceinput     		;cp --parents -rL /sys/class/hwmon/hwmon[0-9]/device/hwmon/hwmon[0-9]/*input	;hwmon/	;debug
system  ;get hwmon_devicelabel     		;cp --parents -rL /sys/class/hwmon/hwmon[0-9]/device/hwmon/hwmon[0-9]/*label 	;hwmon/	;debug
system  ;get hwmon_input     			;cp --parents -rL /sys/class/hwmon/hwmon[0-9]/*input                 			;hwmon/	;debug
system  ;get hwmon_label     			;cp --parents -rL /sys/class/hwmon/hwmon[0-9]/*label                 			;hwmon/	;debug
system  ;copy /proc/iomap 				;cp -L -rf /proc/iomap                 		;proc/				;debug
system  ;copy /proc/ioports     		;cp -L -rf /proc/ioports                 	;proc/				;debug
system  ;copy /proc/swaps      			;cp -L -rf /proc/swaps                 		;proc/				;debug
system  ;copy /proc/slabinfo      		;cp -L -rf /proc/slabinfo                 	;proc/				;debug
system  ;copy /proc/locks      			;cp -L -rf /proc/locks                 		;proc/				;debug
system  ;copy /proc/modules     		;cp -L -rf /proc/modules                 	;proc/				;debug
system  ;copy /proc/mounts      		;cp -L -rf /proc/mounts                 	;proc/				;debug
system  ;copy /proc/stat    			;cp -L -rf /proc/stat                 		;proc/				;debug
system  ;copy /proc/schedstat     		;cp -L -rf /proc/schedstat                 	;proc/				;debug
system  ;copy /proc/zoneinfo     		;cp -L -rf /proc/zoneinfo                 	;proc/				;debug
system  ;copy /proc/config.g    		;cp -L -rf /proc/config.gz                 	;proc/				;debug
system  ;copy /etc/nsswitch.conf       	;cp -L -rf /etc/nsswitch.conf           	;etc/				;debug
system  ;copy /etc/yp.conf      		;cp -L -rf /etc/yp.conf                   	;etc/				;debug
system  ;copy /proc/kallsyms      		;cp -L -rf /proc/kallsyms                  	;proc/				;debug
system  ;copy /proc/mtrr     			;cp -L -rf /proc/mtrr                      	;proc/				;debug
system  ;copy /proc/vmstat     			;cp -L -rf /proc/vmstat                    	;proc/				;debug
system  ;copy /proc/buddyinfo     		;cp -L -rf /proc/buddyinfo                 	;proc/				;debug
system  ;copy /proc/devices     		;cp -L -rf /proc/devices                   	;proc/				;debug
system  ;copy /proc/diskstats     		;cp -L -rf /proc/diskstats                 	;proc/				;debug
system  ;copy /proc/iomem     			;cp -L -rf /proc/iomem                     	;proc/				;debug
system  ;copy /proc/keys    			;cp -L -rf /proc/keys                      	;proc/				;debug
system  ;copy /proc/key-users     		;cp -L -rf /proc/key-users                 	;proc/				;debug
system  ;copy /proc/dma     			;cp -L -rf /proc/dma                       	;proc/				;debug
system  ;copy /proc/interrupts      	;cp -L -rf /proc/interrupts           		;proc/				;debug
system  ;copy /etc/services       		;cp -L -rf /etc/services           			;etc/				;debug
#hba    ;functionX getHBAInfo           ;getHBAInfo                                 ;                   ;debug
#farm    ;functionX getFarmLogs          ;getFarmLogs                                ;                   ;debug
aep     ;functionX getAEPInfo           ;getAEPInfo                                 ;                   ;debug
raid 	;functionX getSnapdump			;getSnapdump                                ;                   ;debug

