qsmcli
Q system management command line tool
Installation
You will need to install python3 first, qsmcli has # pip3 install qsmcli
running qsmcli
python3 -m qsmcli
supported shell mode and command
Command line mode
When invoke this command, if there is any argument, then the command executed.
Shell mode
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.
Command supported
help/?
Any command with help command involved will print the help message.
ipmi
This is the command to redirect all of the command to ipmitool
mac
get system mac command and print out the system mac we have mac [index], index range from 0 to 5 for example: mac 0
cpld
get CPLD information: cpld [fw|cksum|id] fw: get CPLD fw cksum: get CPLD checksum id: Get CPLD idcode
me
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
nic
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)
service
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.
Test
To run the unit test command, use 'python3 -m unittest'
Distribute the package
To generate the package, use 'pyinstaller qsmcli.py' to build the package.
Release files for qsmcli 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qsmcli-0.6.0.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qsmcli-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.3 kB
Release files / qsmcli-0.6.0.tar.gz
| Download URL | qsmcli-0.6.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8ffb6f9593877f2870e8dd9bd76e3304225fde06e69ba2d50673ef936c48add
|
|
BLAKE2b-256 checksum How to use checksums |
9ad9ef5bede2ce7a7482dc33a4d4e5fe93439c7f6dca8b874602b650a739a497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / qsmcli-0.6.0-py3-none-any.whl
| Download URL | qsmcli-0.6.0-py3-none-any.whl |
|---|---|
| Size | 41.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a7fd33e6845f4a9171ab6f0bc41fbd3ae849a104ed62bd7e6fa7fec71479898
|
|
BLAKE2b-256 checksum How to use checksums |
fac2905230aa730354a26885d16bdb812bc9fa598835206c8e0abee48633923b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|