dmtf / python-redfish-utility Goto Github PK
View Code? Open in Web Editor NEWPython-based utility for interacting with devices supporting a Redfish Service
License: Other
Python-based utility for interacting with devices supporting a Redfish Service
License: Other
Running using Python3, the utility comes up, but doesn't seem to take any action on commands that were given to it. Event the "exit" command doesn't close the tool
sudo python3 src/rdmc.py
redfish : Redfish Utility version 1.0
--------------------------------------------------------------------------------
redfish > login <IP> -u <user> -p <password>
redfish > types
redfish > quit
redfish > exit
redfish > exit
redfish > exit
redfish >
redfish >
redfish >
Running using Python2, the utility just crashes; it's looking for the "queue" module, but in Python2, this module is "Queue".
sudo python2 src/rdmc.py
Error locating extension LoadCommand at location extensions.COMMANDS.LoadCommand.LoadCommand
Traceback (most recent call last):
File "src/rdmc.py", line 52, in <module>
importlib.import_module(pkgName), cName)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/share/Redfish/python-redfish-utility/src/extensions/COMMANDS/LoadCommand.py", line 15, in <module>
from queue import Queue
ImportError: No module named queue
In the slate Gemfile.lock file, we currently have a dependency on "sparklemotion / nokogiri". Need to specify version 1.8.2 or higher.
When we run the following command, we get an error
C:\Python34> python.exe C:\python-redfish-utility\src\rdmc.py
File "C:\python-redfish-utility\src\rdmc.py", line 69
except Exception, excp:
^
SyntaxError: invalid syntax.
We are very new to python and restapi. As Gen9 and newer generation servers will be using restapi, we planned to try out. Could you let us know what mistakes we are making.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.