Q system management command line tool
You will need to install python3 first, qsmcli has # pip3 install qsmcli
python3 -m qsmcli
When invoke this command, if there is any argument, then the command executed.
In Shell mode, if there is no argument is specified, then the shell mode is entered. The host and username/password is saved in the prompt.
Any command with help command involved will print the help message.
This is the command to redirect all of the command to ipmitool
get system mac command and print out the system mac we have mac [index], index range from 0 to 5 for example: mac 0
get CPLD information: cpld [fw|cksum|id] fw: get CPLD fw cksum: get CPLD checksum id: Get CPLD idcode
Query ME related information. me [version|cpu|dimm|io] me version: to get ME version me cpu: to get CPU utililization me dimm: to get DIMM utililization me io: to get IO utilization
get, set the BMC dedicate/share NIC nic [dedicate|lom-share|mezz-share0|mizz-share1]
Return: For LAN Card Type, 0h- BMC Dedicated 2h- Shared NIC (OCP Mezzanine slot) 3h- Shared NIC (QCT Mezzanine slot)
eanble/disable Service commands: service [enable/disable] [web|kvm|cd-media|hd-media|ssh|solssh] Please notice this utility will get the service configuration data and set the configuration data when set it. It do not guarantee that BMC has this feature.
To run the unit test command, use 'python3 -m unittest' Upload to github will trigger Travis CI run the unittest
To generate the package, use 'package.sh' to build the package.