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' Upload to github will trigger Travis CI run the unittest

Distribute the package

To generate the package, use 'package.sh' 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.7.2.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

qsmcli-0.7.2-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qsmcli-0.7.2.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3

File hashes

Hashes for qsmcli-0.7.2.tar.gz
Algorithm Hash digest
SHA256 39184d8ff6e48496047558f8dfc95570e08a12935b3b3c4db8e45a7f97244749
MD5 49d529eebba8a4d4d5ff96175617f0b8
BLAKE2b-256 6aaaf3cfa77431979d111f7136bb169fcf9178313de56b0a22f678cece45dda1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qsmcli-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3

File hashes

Hashes for qsmcli-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ccced177e6fad70cd27b76f995736a5282e04c32d217b93e98333a072c425c03
MD5 136526c801950db342ad67cbaaa6a03d
BLAKE2b-256 b7aea3943fbd3857fe4652249bceb382c965a2639a54bb200a0d9ab3cb3efa4f

See more details on using hashes here.

Supported by

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