GbtUtility
=====================================================================================================================================
GbtUtility is a command line utility for communicate with ipmi server.
It support lots of commands that is often use.
There also has some advance usage on standard server or Racklution-EX,
such as standard server remote update firmware, load default or Racklution-EX log dump, firmware update.
Execute target can not only a single IP but also a group of IP by scan a range of IP. 
	
[Linux]
	Ubuntu 14.04, CentOS 7
	System required: java 7, javaws, freeipmi, ipmitool
	root authority is necessary 
[Windows]
	windows 2012 R2
	System required: java 7, javaws, ipmitool
	Administrator authority is necessary
  
[Mac OS]
	System required: java 7, javaws, ipmitool
	
* Note: Linux maybe has to be disabled iptables like "service iptables stop" before operating GbtUtility
=====================================================================================================================================	
How to use:

1. Base command struct:
	java -jar GbtUtility.jar [options] <basic command> [parameters]
	
2. Options:
	-H,--hostname <arg>   execute command via this hostname
	-S,--scan <arg>       do scan ip range for this option,
						  e.g. -S 10.1.27.1,10.1.27.15,Standard
	-R,--rack <arg>       directly assign RMC IP,
                                                  e.g. -R 10.1.27.1,10.1.27.15,OR10
	-F,--file <arg>       assign a sepcific nodelist
	-U,--username <arg>   set bmc's username
	-P,--password <arg>   set bmc's password
	-h,--help             print help message
	note: It is not allowed use both -H and -S options at same time.
=====================================================================================================================================end2.Options
3. GbtUtility Commands:

3.1	scan				Scan a range of ip, will produce Nodelist
******Execute Utility without -H or -S options, below item will base on scaned NodeList******
3.2	chassis				Set node chassis power state
3.3	limit				Set node power limit
3.4	boot				Set boot device option
3.5	trap				Set node trap ip
3.6	pef				Set node platform event filter
3.7	ipv6				Set enable/disable node ipv6
3.8	power				Get node power reading
3.9	sel				Get/Clear node sensor event log
3.10	fru				Get node fru data
3.11	sdr				Get node sensor data record
3.12	msr				Get cpu model specific registers
3.13	psu				Get psu healthy status
3.14	ipsrc				Get/Set ip source(DHCP/Statuc)
3.15	hwinfo				Get hardware information
3.16	logochange			Change logo utility.
3.17	smbios				Get smbios information.
3.18	loaddf				Load default to mass nodes.(load to bmc/bios)
3.19	local				Local command utility.
3.19.1	\------	savedf				Save local machine bios as default setting.
3.20	update				Update firmware utility.
3.20.1	\------	bmc				Update bmc firmware
3.20.2	\------	bios				Update bios firmware
3.20.3	\------	cpld				Update cpld firmware
3.20.4	\------	psu				Update psu firmware
3.21	rackex				Racklution-EX utility.
3.21.1	\------	update				Update rmc firmware.
3.21.2	\------	dump				Dump rack log include rmc, control board and node.
3.21.3	\------	unlock				Unlock abnormal rmc.
3.22	rackst				Racklution-ST utility.
3.22.1	\------	update				Update rmc or fan board
3.22.2	\------	manage				Rack management
3.23	ikvm				KVM function active
3.24	identify			Control node panel identify light.
3.25	bmcver				Get BMC version.
3.26	mesensor			Get node ME sensor monitor data record
3.27	userapp				IPMI User Account Setting utility
3.27.1	\------	set				set user name, password and privilege to specify user ID
3.27.2	\------	list				get all user account (except password) from all available user IDs
3.28	vmcli				virtual media mount and umount utility. Support CD/ROM,
	|				floppy, removable images or devices as vertual media to remote node server of given bmc IPs
3.28.1	\------	mount				mount vertual media via specify BMC IP
3.28.2	\------	umount				umount vertual media via specify BMC IP
3.29	ntp				Set NTP
3.30	bmcutil				BMC Web utility
3.30.1	\------	reboot				Reboot BMC by given BMC IPs. This option without any arguments.
3.30.2	\------	prtsc				Upload Last Crash Sreen by https request, and download print screen as .png images
	|					of servers by given BMC IPs. The download images would be store at given path.
3.30.3	\------	smtp				Set BMC SMTP Email, incliding Sender Information, Destination Email Addresses, SMTP (email) Server Settings
	|	  				and SMTP Authentication. You can used following command format to set above four options.
3.30.4	\------	backup				Download BMC Configuration as backup file at given download path.
3.30.5	\------	restore				Restore BMC Configuration by given configuration file.
3.30.6	\------	phyinfo				Download BMC 2U JBOD PHY information JSON file.
3.31	jsonparser			Using JSON file to execute GbtUtility commands like scripts, this command without any GbtUtility's options.
					The reference of JSON scripts format details for GbtUtility using. please see the document in release package 
					"doc/" folder : "The definition of JSON format_v1.4.docx".
3.32	multinode			Standard with CMC utility.
3.32.1	\------ layout				Print information of all nodes managed by CMC
3.33	rack25				OpenRack 2.5 utility.
3.33.1	\------ layout				Print information of all nodes managed by RMC
3.34	mac					Get MAC list
3.35    redfish				Sending request by redfish
3.35.1	\------	raw				Send raw request by uri
3.35.2	\------	sel				Get/Clear node sensor event log
3.35.3	\------	sdr				Get node sensor data record
3.35.5	\------	bmcver				Get BMC version
3.35.6	\------	chassis				Set node chassis power state
3.35.7	\------	reset				Reset BMC
3.35.8	\------	boot				Set boot device option
3.35.9	\------	userapp				Change BMC user account and password
3.36	gpufan				Get/Set GPU fan policy
=====================================================================================================================================end3.Commands
3.1 	scan
	usage: java -jar GbtUtility.jar [-F File name] scan <IPRangeStart> <IPRangeEnd> <standard|OR10|OR20|multinode> [detail]
	Example:
		java -jar GbtUtility.jar scan 10.1.27.1 10.1.27.100 standard
		java -jar GbtUtility.jar scan -F GbtServerlist.log 10.1.27.2 10.1.27.250 standard
		
	output:
		After scanned, will generate an file named by [File name](or defaault is Nodelsit.log)
		Nodelist.log includes as following, node IP, node type, product ID, board name, board part.
		
	Note: After execute scan, only if execute Utility with -H or -S options
			, otherwise, all basic command except scan command will base on THIS Nodelist
			to send command to all targets node.
=====================================================================================================================================				
3.2	chassis
	usage: java -jar GbtUtility.jar [options] chassis <on|off|cycle|reset>
	
		on				power up target node
		off				power down target node
		cycle			provides a power off interval of at least 1 second
		reset			hard reset target node
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar chassis on
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 chassis off
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard chassis cycle
=====================================================================================================================================
3.3	limit
	usage: java -jar GbtUtility.jar [options] limit <set|deactivate> <value(set only)>
	
		set				set target node power limit
		deactivate		deactivate target node power limit
		
	Example:
		by Nodelist  : java -jar GbtUtility.jar limit set 220
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 limit set 220
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard limit deactivate
=====================================================================================================================================		
3.4	boot
	usage: java -jar GbtUtility.jar [options] boot <none|pxe|disk|safe|diag|cdrom|bios|floppy>

		none			do nothing when boot device
		pxe				force pxe boot
		disk			force boot from BIOS default boot device
		safe			force boot from BIOS default boot device, request safe mode
		diag			force boot from diagnostic partition
		cdrom			force boot from CD/DVD
		bios			force boot into BIOS setup
		floppy			force boot from Floppy/primary removable media
		UEFI			force boot from UEFI
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar boot pxe
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 boot none
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard boot cdrom
=====================================================================================================================================		
3.5	trap
	usage: java -jar GbtUtility.jar [options] trap <ipv4|ipv6> <Dest1 IP><Dest2 IP><Dest3 IP><Dest4 IP>
	
		ipv4			set ipv4 trap to target node.
		ipv6			set ipv6 trap to target node.
		DestX IP		needs four ip, use IP to enable DextX ip, set 0 to disable DestX.
		
	Example:
		by Nodelist  : java -jar GbtUtility.jar trap ipv6 2002:c706:1ef:1::1001 0 0 0
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 trap ipv4 0 0 0 0
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard trap ipv4 10.1.27.17 0 10.1.27.12 0
=====================================================================================================================================
3.6	pef
	usage: java -jar GbtUtility.jar [options] pef <none|reboot|off|cycle> <enable|disable>
		
		filter action	send same action to all target platform event filter list.
			none		do nothing when get event.
			reboot		reboot node when get event.
			off			power down node when get event.
			cycle		power cycle node when get event.
			
		generate PET	generate platform event trap when node get platform event.
			enable		enable event trap when node get event.
			disable		disable event trap when node get event.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar pef reboot enable
		by single IP : java -jar GbtUtility.jar pef -H 10.1.27.79 reboot enable
		by scan IP   : java -jar GbtUtility.jar pef -S 10.1.27.1,10.1.27.100,Standard reboot enable	
=====================================================================================================================================
3.7	ipv6
	usage: java -jar GbtUtility.jar [options] ipv6 <enable|disable>
	
		enable			enable target node ipv6 config
		disable			disable target node ipv6 config
		
	Example:
		by Nodelist  : java -jar GbtUtility.jar ipv6 enable
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 ipv6 disable
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard ipv6 enable
=====================================================================================================================================
3.8	power
	usage: java -jar GbtUtility.jar [options] power
	
	output:
		Show target power reading.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar power
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 power
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard power
=====================================================================================================================================	
3.9	sel
	usage: java -jar GbtUtility.jar [options] sel <get|clear>
	
		get				get target node sensor event log
		clear			clear target node sensor event log
	
	output:
		get sel will show all event log.
		If log is relation with memory dimm then will have dimm and channel info.
		If log is relation with pci then will have bus, device, and function number info.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar sel get
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 sel get
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard sel get
=====================================================================================================================================
3.10	fru
	usage: java -jar GbtUtility.jar [options] fru

	output:
		Show fru data include manufacturer name, product name, product serial number, and asset tag.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar fru
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 fru
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard fru
=====================================================================================================================================
3.11	sdr
	usage: java -jar GbtUtility.jar [options] sdr
	
	output:
		show all sensor reading such as fan, vlotage, temperature, etc.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar sdr
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 sdr
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard sdr
=====================================================================================================================================
3.12	msr
	usage: java -jar GbtUtility.jar [options] msr
	
	output: 
		Show all register status diagnosis, will show error if register byte got error.
		"CPU_X ok" means cpu is noraml.
		"CPU_X error" means cpu is abnormal.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar msr
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 msr
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard msr
=====================================================================================================================================
3.13	psu
	usage: java -jar GbtUtility.jar [options] psu <slave_addr>
	
	slave_addr must be B0 BE B4 B6 B8 BA BC BE, otherwise, utility will scan all of it to find psu.
	
	output: 
		Show 2 byte status and status diagnosis.
		"PSU_addr_0xXX ok" means psu is normal.
		"PSU_addr_0xXX error status" means psu is abnormal.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar psu ff
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 psu ff
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard psu b2		
=====================================================================================================================================
3.14	ipsrc
	usage: java -jar GbtUtility.jar [options] ipsrc <get|set> <DHCP|Static(set only)>
	
	output:
		Show ip source.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar ipsrc get
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 ipsrc set DHCP
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard ipsrc set static
=====================================================================================================================================	
3.15	hwinfo
	usage: java -jar GbtUtility.jar [options] hwinfo
	
	output:
		Show hwinfo info , such as cpu, memmory, hdd name, size, etc.
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar hwinfo
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 hwinfo
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard hwinfo
=====================================================================================================================================
3.16	logochange
	usage: java -jar GbtUtility.jar [options] logochange <image1..imageN>
	
	Image file required: 
		1. logo_background.png:  * x63 pixel - Romley and Grantley required.
		2. logo_left.png:       404x63 pixel - Romley and Grantley required.
		3. logo_right.png:      407x63 pixel - Romley required only
			
	Example:
		Romley platform with Nodelist: 
		  java -jar GbtUtility.jar logochange logo_background.png logo_left.png logo_right.png
		Grantley platform with single IP: 
		  java -jar GbtUtility.jar -H 10.1.27.79 logochange logo_background.png logo_left.png
		Both platform with scan IP: 
		  java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard logochange logo_background.png logo_left.png logo_right.png
=====================================================================================================================================
3.17	smbios
	usage: java -jar GbtUtility.jar [options] smbios
	
	output:
		Show smbios info.
		
	Example:
		by Nodelist  : java -jar GbtUtility.jar smbios
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 smbios
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard smbios
=====================================================================================================================================
3.18	loaddf
	usage: java -jar GbtUtility.jar [options] loaddf <bmc|bios|cancel>
	
		bmc			Load bmc default to target IP, needs default.conf.
		bios		Load bios default to target IP, needs savedf first.
		cancel		Cancel all load default process.
		
	Example:
		by Nodelist  : java -jar GbtUtility.jar loaddf bmc
		by single IP : java -jar GbtUtility.jar loaddf bios
=====================================================================================================================================
3.19	local
	usage: java -jar GbtUtility.jar [options] local
		
	local command utility - savedf.

3.19.1	savedf
	usage: java -jar GbtUtility.jar [options] local savedf
	
	Example:
		by single IP : java -jar GbtUtility.jar local savedf
=====================================================================================================================================endtag3.19
3.20	update
	usage: java -jar GbtUtility.jar [optoins] update
	
	update command utility - bmc / bios / cpld / psu.
************************************************************************************************************************endtag-3.20-0
3.20.1	bmc
	usage: java -jar GbtUtility.jar [options] update bmc [Firmware] [auto] [force] path=[TFTP path] tftpip=[Local IP]
	
	Firmware    	 	: Update firmware package.
	auto(optional)   	: 0- full manual mode.(default), utility will ask retry or stop if error happen.
                  	          1- Auto exit, utility will stop if error happen.
                  	          2- Auto retry, utility will auto retry if error happen.
	[force]			: Do update without skipping same version BMC with package.(Default is skip).
	TFTP path(optional)     : If you want to use TFTP server on localhost, please enter your TFTP directory path.
	TFTP IP(optional)       : Set your local IP address for TFTP using, utility will auto detect if you do not enter it.
	
	Note: Firmware only support zip or tgz file
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar update bmc 702.zip native path=/root/tftpboot/
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 update bmc 304.zip
************************************************************************************************************************endtag-3.20-1
3.20.2  bios
	usage: java -jar GbtUtility.jar [options] update bios [Firmware1..N] [auto] path=[TFTP path] tftpip=[Local IP]
	
	Firmware1..N: Utility can update different platforms at same time, image pakage only support .zip or .tgz file.
	auto(optional)          : 0- full manual mode.(default), utility will ask retry or stop if error happen.
                                  1- Auto exit, utility will stop if error happen.
                                  2- Auto retry, utility will auto retry if error happen.
	[force]			: Do update without skipping same version BMC with package.(Default is skip).
	TFTP path(optional)     : If you want to use TFTP server on localhost, please enter your TFTP directory path.
	TFTP IP(optional)       : Set your local IP address for TFTP using, utility will auto detect if you do not enter it. 
	
	Note: Firmware only support zip or tgz file
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar update bios MD60-SC1_F08.zip MH70-HD0_F04.zip path=/root/tftpboot/
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 update bios MU70-SU0_D13a.zip 2
************************************************************************************************************************endtag-3.20-2
3.20.3 cpld
	usage: java -jar GbtUtility.jar update cpld <bpb|mb> <file name> [tftpip=IP]
	
	<bpb|mb>		: update cpld on back plain board or update cpld on mother board
	<file name>		: cpld update using package, if choose bpb the update firmware file must be ".vme".
				  if choose mb the update firmware file must be ".jbc".
	[tftpip=IP]		: Yuor local TFTP server IP.
	[path=TFTP path] 	: Yuor local TFTP server directory.

	Note :  If yuo did not set tftpip and path arguments, it will auto create local TFTP server for update using
		please check out 69 port is free when you choose auto create local TFTP server mode.
	Example (Local TFTP by given IP and path):
		by BPB : java -jar GbtUtility.jar -H 10.1.27.79 update cpld bpb NVME_BPB_R00.vme tftpip=10.2.1.1 path=/tftpboot
		by MB  : java -jar GbtUtility.jar -H 10.1.27.79 update cpld mb Chain1.jbc tftpip=10.2.1.1 path=/tftpboot
	Example (Local TFTP by auto create mode):
		by BPB : java -jar GbtUtility.jar -H 10.1.27.79 update cpld bpb NVME_BPB_R00.vme
		by MB  : java -jar GbtUtility.jar -H 10.1.27.79 update cpld mb Chain1.jbc
************************************************************************************************************************endtag-3.20-3
3.20.4 psu
	usage: java -jar GbtUtility.jar update psu <file name> [tftpip=IP]
	
	<file name>		: PSU firmware update using package.
	[tftpip=IP]		: Yuor local TFTP server IP.
	[path=TFTP path] 	: Yuor local TFTP server directory.
	
	Note :  If yuo did not set tftpip and path arguments, it will auto create local TFTP server for update using
		please check out 69 port is free when you choose auto create local TFTP server mode.

	Example (Local TFTP by given IP and path):
		by Nodelist  : java -jar GbtUtility.jar update psu PKT_2801-8L_0215_ver02.hex tftpip=10.2.1.1 path=/tftpboot
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 update psu PKT_2801-8L_0215_ver02.hex tftpip=10.2.1.1 path=/tftpboot
		by scan IP  : java -jar GbtUtility.jar -H 10.1.27.79 update psu PKT_2801-8L_0215_verX2.hex tftpip=10.2.1.1 path=/tftpboot
	Example (Local TFTP by auto create mode):
		by Nodelist  : java -jar GbtUtility.jar update psu PKT_2801-8L_0215_ver02.hex
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 update psu PKT_2801-8L_0215_ver02.hex
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.20,10.1.27.100,Standard update psu PKT_2801-8L_0215_verX2.hex
=====================================================================================================================================endtag3.20	
3.21 	rackex
	usage: java -jar GbtUtility.jar [optoins] rackex
	
	rack command utility - update / dump / unlock

3.21.1  update
	usage: java -jar GbtUtility.jar [options] rackex update <firmware> [auto] [MACList_path]
	
	Firmware    : RMC Firmware package, image pakage only support .zip file.
	auto        : (Optoinal)Set this argument to skip yse no question.(Yes to all).
	MACList_path: (Optoinal)For checking target mac list, only all mac include scan scope will keep update.
	
    During updating, will only show rack status, and rack detail will be stored to ./log				
	
	Example:
	    by Nodelist  : java -jar GbtUtility.jar rackex update ./102.zip
	    by scan IP   : java -jar GbtUtility.jar -S 10.1.27.10,10.1.27.250,OR20 rackex update ./102.zip auto
	
3.21.2  dump
	usage: java -jar GbtUtility.jar [options] rackex dump
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar rackex dump
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard rackex dump		
		
3.21.3  unlock
	usage: java -jar GbtUtility.jar [options] rackex unlock
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar rackex unlock");
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard rackex unlock");	
=====================================================================================================================================
3.22	rackst
	usage: java -jar GbtUtility.jar [optoins] rackst
	
	rack command utility - update / manage

3.22.1  update
	usage: java -jar GbtUtility.jar [options] rackst update <type> <package>
	
	Package     : rmc or fan board update package, only support tgz or zip file.
	Type        : Update rmc or fanboard
	
    During updating, will only show rack status, and rack detail will be stored to ./log				
	
	Example:
	    	by Nodelist       : java -jar GbtUtility.jar rackst update rmc rmc.v059.tgz
		by scan IP        : java -jar GbtUtility.jar -S 10.1.27.10,10.1.27.250,OR10 rackst update fanboard BFGXA1.15.zip
                by directly assign: java -jar GbtUtility.jar -R 10.1.27.10,10.1.27.250,OR10 rackst update fanboard BFGXA1.15.zip

3.22.2  manage
	usage: java -jar GbtUtility.jar [options] rackst manage <command>

	Command     : commands whcih can execute by rmc_function.sh in rmc.
                      Type "help" can watch all function list.
=====================================================================================================================================
3.23	ikvm
	usage: java -jar GbtUtility.jar [options] ikvm
	
	ikvm function only support "option -H", if use Nodelist, will base on first ip.
	
	Example:
		by Nodelist	 : java -jar GbtUtility.jar ikvm
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 ikvm
=====================================================================================================================================
3.24    identify
	usage: java -jar GbtUtility.jar [options] identify <interval>
	
	interval:
		0			Turn off light.
		1-255		Turn on light with this interval(Unit: second)
	
	Example:
		by Nodelist	 : java -jar GbtUtility.jar identify 50
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 identify 0
=====================================================================================================================================
3.25	bmcver
	usage: java -jar GbtUtility.jar [options] bmcver
	
	Example:
		by Nodelist	 : java -jar GbtUtility.jar -F rack1.log bmcver
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 bmcver
=====================================================================================================================================
3.26    mesensor
        usage: java -jar GbtUtility.jar [options] mesensor

	Example:
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 mesensor
=====================================================================================================================================
3.27	userapp
	usage: java -jar GbtUtility.jar [options] userapp <set | list>

		set : set user name, password and privilege to specify user ID.
		usage: java -jar GbtUtility.jar [options] userapp set <username> <password> <id> <privilege level>
		set command input args hints :
			<username>        : Continuous US a to z string less than 16 chars
			<password>        : Continuous US a to z string less than 16 chars
			<id>              : Hexbyte type 0xnn or integer n, start at 0x03(3) and Maximum end at 0x0f(15)
			<privilege level> : set user privilege level on LAN and Serial/Modem channel, level number as follow:
				level number : 0x01(1) = Callback
				level number : 0x02(2) = User
				level number : 0x03(3) = Operator
				level number : 0x04(4) = Administrator
				level number : 0x05(5) = OEM Proprietary
		Example:
			by Nodelist     : java -jar GbtUtility.jar userapp set newuser newpassword 5 4
			                : java -jar GbtUtility.jar userapp set newuser newpassword 0x05 0x04
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 userapp set newuser newpassword 5 4
                			: java -jar GbtUtility.jar -H 10.1.27.79 userapp set newuser newpassword 0x05 0x04
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard userapp set newuser newpassword 5 4
					: java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard userapp set newuser newpassword 0x05 0x04

		list : get all user account (except password) from all available user IDs
		usage: java -jar GbtUtility.jar [options] userapp list
		list command without any args :
		Example:
			by Nodelist     : java -jar GbtUtility.jar userapp list
			by scan IP      : will -jar GbtUtility.jar -S 10.1.27.1,10.1.27.200,Standard userapp list
				*	: Result of Nodelist and scan IP will write in each IP Node log file.
				*	: Ex : Ex: 10.1.27.79_UserList.log.
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 userapp list
				*	: Result of single IP will write in each IP Node log file and show on screen.
				*       : Ex: Show on screen :
			User Account List:
			ID:  nmae:  (LAN)Status:  (LAN)Callin:  (LAN)Link Auth:  (LAN)IPMI Msg:  (LAN)Channel Priv:  (Serial)Status:  (Serial)Callin:  (Serial)Link Auth:  (Serial)IPMI Msg:  (Serial)Channel Priv:  SOL Status:
			2       admin    Enable   Available   Available   Available  Administrator  Enable   Available   Available   Available  Administrator  Enable
			3       ADMIN    Enable   Available   Available   Available  Administrator  Enable   Available   Available   Available  Administrator  Enable
			4       GIGABYTE Enable   Available   Available   Available  Administrator  Enable   Available   Available   Available  Administrator  Enable
			5       None     Disable  Unvailable  Unvailable   Available  NO ACCESS  Disable  Unvailable  Unvailable   Available  NO ACCESS  Disable
			6       None     Disable  Unvailable  Unvailable   Available  NO ACCESS  Disable  Unvailable  Unvailable   Available  NO ACCESS  Disable
					.
					.
					.
					.
========================================================================================================================endtag3.27
3.28	vmcli : Connects to the Avocent Protocol Server running on given BMC IP,
                and causes image file to be seen as a Virtual Media drive on that server.
        usage : java -jar GbtUtility.jar [options] vmcli mount [port <number>] < [removable <file | device>] [floppy <file | device>] [cdrom <ISOfile | device>] >
                java -jar GbtUtility.jar [options] vmcli umount
3.28.1  mount : this sub command input args hints :
	           	[port <number>]                 : option for set port, if you do not set this option the default port is 2068.
		   	[removable <file | device>]     : option of mount removable device which located at local server. 
		   	[floppy <file | device>]        : option of mount floppy device or image file which located at local server.
		   	[cdrom <file | device>]         : option of mount CD/DVD device which located at local server.
		Example local iso image file:  
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount cdrom media.iso 
		   	by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 vmcli mount cdrom media.iso 
		   	by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard vmcli mount cdrom media.iso
		Example of mount removable device: 
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount removable /dev/sdb1
		Example of mount floppy device or image file: 
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount floppy /dev/fd0
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount floppy /home/filename.img
		Example of mount CD/DVD device: 
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount cdrom /dev/cdrom
		Example of mount device or image file and given port: 
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount port 1234 floppy /home/filename.img
		Example of mount muti devices or image files and given port: 
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount port 2068 cdrom ubuntu.iso floppy /dev/fd0
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount port 2068 removable /dev/sdb1 floppy /dev/fd0
		   	by Nodelist     : java -jar GbtUtility.jar vmcli mount port 2068 floppy /dev/fd0\n removable /dev/sdb1 cdrom /dev/cdrom																
3.28.2  umount : no arguments
		Example :
			by Nodelist     : java -jar GbtUtility.jar vmcli umount
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 vmcli umount
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard vmcli umount
========================================================================================================================endtag3.28
3.29	ntp
		usage: java -jar GbtUtility.jar ntp [raw command code]				
		raw command code: {"OpMode","Mode","Update Frequency","Update Frequency","IP1_1","IP1_2","IP1_3","IP1_4"}
		
		Example : 
			by Nodelist	: java -jar GbtUtility.jar ntp 0x01 0x00 0x0a 0x00 0x81 0x06 0x0f 0x1c
			by single IP	: java -jar GbtUtility.jar -H 10.1.1.21 ntp 1 1 10 0 129 6 15 28
			by scan IP      : java -jar GbtUtility.jar -S 10.1.1.1,10.1.1.100,Standard ntp 1 1 10 0 129 6 15 28
========================================================================================================================endtag3.29
3.30	bmcutil : BMC OEM commands and web utilities
************************************************************************************************************************endtag-3.30-0
														
3.30.1  reboot  : Reboot BMC by given BMC IPs. This option without any arguments.
		usage   :
			java -jar GbtUtility.jar [options] bmcutil reboot
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil reboot
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil reboot
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil reboot
************************************************************************************************************************endtag-3.30-1
															
3.30.2  prtsc   : Upload Last Crash Screen by https request, and download print screen as .png images
		  of servers by given BMC IPs. The download images would be store at given <path>.
			<path> : The storage path of downloaded images
		usage   :
			java -jar GbtUtility.jar [options] bmcutil prtsc <path>
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil prtsc /home/pictures
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil prtsc /home/pictures
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil prtsc /home/pictures
************************************************************************************************************************endtag-3.30-2

3.30.3	smtp	: Set BMC SMTP Email, incliding Sender Information, Destination Email Addresses, SMTP (email) Server Settings
		  and SMTP Authentication. You can used following command format to set above four options.
		usage	:
			java -jar GbtUtility.jar [options] bmcutil smtp sendinfo <your information>
			java -jar GbtUtility.jar [options] bmcutil smtp email <Alert Number> <on|off> <destination IP> <description>
			java -jar GbtUtility.jar [options] bmcutil smtp serverAddr <port> <server IP>
			java -jar GbtUtility.jar [options] bmcutil smtp auth <on|off> <username> <password> <STARTTLS Mode> <SASL Mode>

		1.sendinfo : set sender information
			<your information>	: write SMTP sender information.
		  Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil smtp sendinfo MergePoint-EMS@gigabyte.intra
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil smtp sendinfo MergePoint-EMS@gigabyte.intra
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil smtp sendinfo MergePoint-EMS@gigabyte.intra
		
		2.email	: set email destination you want to send message. There are four different destination you can set. Alert Number from 1 to 4.
			<Alert Number>	: Number of email destination as same as BMC Web.
			<on|off>	: Enable or disable this email destination.
			<destination IP>: destination IP address support IPv4 and IPv6.
			<description>	: email description (subject).
		  Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil smtp email 1 on 10.2.2.10 MergePoint
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil smtp email 2 off 10.2.2.13 MergePoint
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil smtp email 3 on 10.2.2.25 MergePoint

		3.serverAddr : set SMTP (email) Server
			<port>		: SMTP server port.
			<server IP>	: SMTP server IP address support IPv4 and IPv6.
		  Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil bmcutil smtp serverAddr 5000 10.1.27.125
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil smtp serverAddr 2345 10.1.27.125
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil smtp serverAddr 1258 10.1.27.125

		4.auth	: set SMTP SMTP Authentication
			<enable|disable>	: Enable or Disable the SMTP server
			<username>	: set SMTP server user account
			<password>	: set SMTP server password
			<STARTTLS Mode> : There are 3 different STARTTLS Mode you can set as follow : auto, on, off
			<SASL Mode>	: There are 5 different SASL mode you can set as follow : auto, plain, login, htlm, md5
		  Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil smtp auth enable GIGABYTE password auto md5
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil  smtp auth disable GIGABYTE password off md5
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil  smtp auth enable GIGABYTE password on htlm
************************************************************************************************************************endtag-3.30-3
3.30.4  backup	: Download BMC Configuration as backup file at given download path.
			<path> : The backup file download path of downloaded BMC configuration.
		usage   :
			java -jar GbtUtility.jar [options] bmcutil backup <path>
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil backup /home/backupfiles
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil  backup /home/backupfiles
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil  backup /home/backupfiles
************************************************************************************************************************endtag-3.30-4
3.30.5  restore	: Restore BMC Configuration by given configuration file.
			<file> : The backup file whcih used to restore BMC configuration.
		usage   :
			java -jar GbtUtility.jar [options] bmcutil restore <file>
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil restore BMCconfig.bin
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil  restore BMCconfig.bin
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil  restore BMCconfig.bin
************************************************************************************************************************endtag-3.30-5
3.30.6  phyinfo	: Download BMC 2U JBOD PHY information JSON file.
			<path> : The PHY information JSON file download path.
		usage   :
			java -jar GbtUtility.jar [options] bmcutil phyinfo <path>
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil phyinfo /home/list
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil phyinfo /home/list
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil phyinfo /home/list
************************************************************************************************************************endtag-3.30-6
3.30.7  bsexport	: Export BIOS setup menu as JSON file from BMC.
			<path> : download path.
		usage   :
			java -jar GbtUtility.jar [options] bmcutil bsexport <path>
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil bsexport /home
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil bsexport /home
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil bsexport /home
************************************************************************************************************************endtag-3.30-7
3.30.8  bsimport	: Import JSON file of BIOS setup menu to remote BMC.
			<file> : BIOS setup menu JSON file.
		usage   :
			java -jar GbtUtility.jar [options] bmcutil bsimport <file>
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil bsimport /home/SetupDecode-10.2.1.15.json
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil bsimport /home/SetupDecode-10.2.1.15.json
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil bsimport /home/SetupDecode-10.2.1.15.json
************************************************************************************************************************endtag-3.30-7
3.30.9  getsmarthdd	: Import JSON file of get smartHDD & RAID information.
			<path> : download path.
		usage   :
			java -jar GbtUtility.jar [options] bmcutil getsmarthdd <path>
		Example :
			by Nodelist     : java -jar GbtUtility.jar bmcutil getsmarthdd /home
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 bmcutil getsmarthdd /home
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,Standard bmcutil getsmarthdd /home
========================================================================================================================endtag3.30
3.31	jsonparser	: Using JSON file to execute GbtUtility commands like scripts, this command without any GbtUtility's options.
			  The reference of JSON scripts format details for GbtUtility using. please see the document in release package
			  "doc/" folder : "The definition of JSON format_v1.4.docx".
		usage	:
			java -jar GbtUtility.jar jsonparser <JSON file>
		
		Example (without any options) :
			java -jar GbtUtility.jar jsonparser example.json
			java -jar GbtUtility.jar jsonparser test001.json
			java -jar GbtUtility.jar jsonparser test002.json
========================================================================================================================endtag3.31
3.32	multinode	: Send command to CMC and get its response.
		usage	:
			java -jar GbtUtility.jar multinode <command>
		
		1.layout : Get information of all nodes which managed by CMC (inlcudes "position", "BMC IP", "BMC MAC...etc").
		  Example :
			by Nodelist     : java -jar GbtUtility.jar multinode layout
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 multinode layout
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,multinode multinode layout
========================================================================================================================endtag3.32
3.33	rack25		: Send command to RMC and get its response.
		usage	:
			java -jar GbtUtility.jar rack25 <command>
		
		1.layout : Get information of all nodes which managed by RMC (inlcudes "position", "BMC IP", "BMC MAC...etc").
		  Example :
			by Nodelist     : java -jar GbtUtility.jar rack25 layout
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 rack25 layout
			by scan IP      : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.150,rack25 rack25 layout
========================================================================================================================endtag3.33
3.34	mac		: Send command to BMC and get its MAC list.
		usage	:
			java -jar GbtUtility.jar mac <group ID>
			<group ID>: Only allow 0~7, utility will show all MAC list if not entered.
			
		  Example :
			by single IP    : java -jar GbtUtility.jar -H 10.1.27.79 mac 0
========================================================================================================================endtag3.34
3.35	redfish		: Send request to host by redfish.
		usage	: java -jar GbtUtility.jar [options] redfish <sel|sdr|chassis|...>
		
3.35.1	raw		: Send raw request by uri
	usage: java -jar GbtUtility.jar [options] redfish raw <path> <method> <body>
	<path>  : resource path
	<method> : request method in <GET|POST|PATCH>
	<body> : requst body whcih in JSON format file
	
	Example:
		by Nodelist  : java -jar GbtUtility.jar redfish raw /Systems/1 GET
		by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish raw /Systems/1 POST body.json
		by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish raw /Systems/1 PATCH body.json

3.35.2	sel		: Get sel by redfish
	usage: java -jar GbtUtility.jar [options] redfish sel <get|clear>


	Example:
	  by Nodelist  : java -jar GbtUtility.jar redfish sel get
	  by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish sel clear
	  by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish sel get

3.35.3	sdr		: Get sdr by redfish
	usage: java -jar GbtUtility.jar [options] redfish sdr


	Example:
	  by Nodelist  : java -jar GbtUtility.jar redfish sdr
	  by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish sdr
	  by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish sdr

3.35.5	chassis		: Send chassis control request by redfish
	usage: java -jar GbtUtility.jar [options] redfish chassis <on|off|cycle>

	Example:
	  by Nodelist  : java -jar GbtUtility.jar redfish chassis on
	  by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish chassis off
	  by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish cycle

3.35.6	bmcver		: Get BMC version
	usage: java -jar GbtUtility.jar [options] redfish bmcver

	Example:
	  by Nodelist  : java -jar GbtUtility.jar redfish bmcver
	  by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish bmcver
	  by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish bmcver

3.35.7	reset		: Send mc reset request by redfish
	usage: java -jar GbtUtility.jar [options] redfish reset


	Example:
	  by Nodelist  : java -jar GbtUtility.jar redfish reset
	  by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish reset
	  by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish reset

3.35.8	boot		: Change boot option by redfish
	usage: java -jar GbtUtility.jar [options] redfish boot <info|none|pxe|disk|cd|bios|Diags>

	Example:
	  by Nodelist  : java -jar GbtUtility.jar redfish boot pxe
	  by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish boot info
	  by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish boot none

3.35.9	userapp		: Change user account/password by redfish
	usage: java -jar GbtUtility.jar [options] redfish userapp set <username> <password> <id> <privilege level>
		   java -jar GbtUtility.jar [options] redfish userapp list


	set  : set user name, password and privilege to specify user ID.
	list : get all user name and privilege from specified host.
	userapp set input args hints :

	<username>        : Continuous US a to z string
	<password>        : Continuous US a to z string
	<id>              : Integer from 1~16
	<privilege level> : set user privilege level, level number as follow:

		 level number : 1 = None
		 level number : 2 = ReadOnly
		 level number : 3 = Operator
		 level number : 4 = Administrator

	Example:
	  by Nodelist  : java -jar GbtUtility.jar redfish userapp set admin2 password 2 Administrator
	  by single IP : java -jar GbtUtility.jar -H 10.1.27.79 redfish userapp set oper8 password 8 3
	  by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard redfish userapp list
========================================================================================================================endtag3.35
3.36	gpufan				Get/Set GPU fan policy
	usage: java -jar GbtUtility.jar [options] gpufan <get|set> <policy ID>
	get                      Get GPU fan policy ID
	set                      Set GPU fan policy ID
	policy ID                GPU fan policy ID (doen't need when getting policy ID)
	0 : Depend on SKU data
	1 : Nvidia GTX1080 Titan
	2 : Nvidia GTX980
	3 : Nvidia M2000 x 8
	4 : Nvidia M2000 x 12
	5 : RX480
	6 : K2200

	Example:
	by Nodelist  : java -jar GbtUtility.jar gpufan get
	by single IP : java -jar GbtUtility.jar -H 10.1.27.79 gpufan get
	by scan IP   : java -jar GbtUtility.jar -S 10.1.27.1,10.1.27.100,Standard gpufan set 1

========================================================================================================================endtag3.37
4. For more information with "update relate command" and "load default",
		please reference GbtUtility command line SOP.docx
=====================================================================================================================================
5. Command Compatibility:
	5-1.    update rmc:
	5-1-1.    Command is suitable for Open Rack 2.0 and can use IPv4 and IPv6 environment.
	5-1-2.    Update has a limitation that at least rmc master and slave is both exist.(Control board is optional)
	
	5-2.    update: 
	5-2-1.    Update bmc command is supported IPv4 on all platform, IPv6 is support on Grantley 2.0 or above.
	5-2-2.    Update bios command is only supported IPv4 on Grantley platform. 
	5-2-3.    About update node file image package, please reference SOP chapter 2.3.
	
	5-3.    Load default, command is only supported Grantely platform and version 3.03.
	
	5-4.    ikvm 
	5-4-1     Only support single IP, for Nodelist will only use first IP in list.
	5-4-2.    ikvm for linux, need install javaws kits.  
=====================================================================================================================================	
6. Note:
	6-1.	Gigabyte set default username is "admin", password is "password" on all IPMI module, utility will set username and password as default if you do not assign.
	6-2.	For Redfish related functions, please add ":8080" behind IP address, like "10.1.27.79:8080".