Giter VIP home page Giter VIP logo

mmcterm's People

Contributors

jan-atom avatar patrislav1 avatar

Watchers

 avatar  avatar

Forkers

j-marjanovic

mmcterm's Issues

Confusing error message when `ipmitool` is not installed

When using mmcterm with ipmitool backend (-i flag) and the IPMI tool is not installed, the following error message is shown:

$ mmcterm -i mch1 0x88
Traceback (most recent call last):
  File "/home/jan/.local/bin/mmcterm", line 8, in <module>
    sys.exit(main())
  File "/home/jan/.local/lib/python3.8/site-packages/mmcterm/mmcterm.py", line 456, in main
    if not conn.session_ctrl(args.channel, True):
  File "/home/jan/.local/lib/python3.8/site-packages/mmcterm/mmcterm.py", line 110, in session_ctrl
    status, _ = self.raw_cmd(IpmiCode.SOI_SESSION_CTRL, channel + enable)
  File "/home/jan/.local/lib/python3.8/site-packages/mmcterm/mmcterm.py", line 82, in raw_cmd
    raw_reply = self.conn.raw_command(0, 0x30, data)
  File "/home/jan/.local/lib/python3.8/site-packages/pyipmi/__init__.py", line 225, in raw_command
    return self.interface.send_and_receive_raw(self.target, lun, netfn,
  File "/home/jan/.local/lib/python3.8/site-packages/pyipmi/interfaces/ipmitool.py", line 143, in send_and_receive_raw
    cc, rsp = self._parse_output(output)
  File "/home/jan/.local/lib/python3.8/site-packages/pyipmi/interfaces/ipmitool.py", line 124, in _parse_output
    rsp = array('B', [
  File "/home/jan/.local/lib/python3.8/site-packages/pyipmi/interfaces/ipmitool.py", line 125, in <listcomp>
    int(value, 16) for value in hexstr.split(' ')
ValueError: invalid literal for int() with base 16: '/bin/sh:'

This message is rather confusing, ideally it would mention that the IPMI tool is not installed.

Installing the IPMI tool (sudo apt install ipmitool) fixes this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.