Skip to main content

A ipmitool wrapper to enhance daily operation among servers

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qsmcli-0.6.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

qsmcli-0.6.0-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file qsmcli-0.6.0.tar.gz.

File metadata

  • Download URL: qsmcli-0.6.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for qsmcli-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d8ffb6f9593877f2870e8dd9bd76e3304225fde06e69ba2d50673ef936c48add
MD5 0f20e0251d8c5acae02c142891cd1245
BLAKE2b-256 9ad9ef5bede2ce7a7482dc33a4d4e5fe93439c7f6dca8b874602b650a739a497

See more details on using hashes here.

File details

Details for the file qsmcli-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: qsmcli-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 41.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for qsmcli-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a7fd33e6845f4a9171ab6f0bc41fbd3ae849a104ed62bd7e6fa7fec71479898
MD5 2b6d6a6e2cbb59b539e02aa169b2bc48
BLAKE2b-256 fac2905230aa730354a26885d16bdb812bc9fa598835206c8e0abee48633923b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page