Skip to content

Commit 9a1a7a8

Browse files
authored
Merge pull request #39 from DMTF/1.0.4-Tagging
1.0.4 Tagging
2 parents c540781 + c71d743 commit 9a1a7a8

File tree

5 files changed

+31
-23
lines changed

5 files changed

+31
-23
lines changed

AUTHORS.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
21
# Original Contribution:
3-
* Paul Vancil - Dell Inc. -- Dell Extreme Scale Infrastructure (ESI) Architecture Team
4-
5-
6-
# Other Key Contributions:
72

3+
* Paul Vancil - Dell Inc. -- Dell Extreme Scale Infrastructure (ESI) Architecture Team

CHANGELOG.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22

3-
## [1.0.3] - 2018-1-2
3+
## [1.0.4] - 2018-02-02
4+
- fixed parsing of match argument when there are colons in the match data
5+
6+
## [1.0.3] - 2018-01-02
47
- added support for PUT with raw commands
58
- added support for getting log entries via the -E argument
69

@@ -9,13 +12,13 @@
912
- added support for `--all` option to Systems and Chassis commands that perform update operations
1013
- fixed handling of the `setTimeOffset` argument
1114

12-
## [1.0.1] - 2017-6-15
15+
## [1.0.1] - 2017-06-15
1316
- created a script called `redfishtool` to be installed via `pip install redfishtool`
1417

15-
## [1.0.0] - 2017-6-1
18+
## [1.0.0] - 2017-06-01
1619
- added AccountService setusername operation to modify the UserName property in an existing account
1720

18-
## [0.9.3] - 2017-4-27
21+
## [0.9.3] - 2017-04-27
1922
- updated spelling in various usage print statements
2023
- corrected usage statement for SessionService login and logout subcommands
2124
- fixed error in collection list subcommand to show the path correctly

README.md

+19-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Copyright 2016 Distributed Management Task Force, Inc. All rights reserved.
1+
Copyright 2016-2018 Distributed Management Task Force, Inc. All rights reserved.
2+
23
# redfishtool
34

45
## About
@@ -29,14 +30,11 @@ While other generic http clients such as Linux curl can send and receive Redfish
2930

3031
## Why redfishtool?
3132

32-
3333
1. ***redfishtool*** was originally written during the development of the Redfish specification to help find ambiguities in the spec.
3434
1. ***redfishtool*** is now also being used to test inter-operability between redfish service implementations.
3535
1. In addition, ***redfishtool*** provides an example implementation for how a client can execute common server management functions like inventory; power-on/off/reset; setting power limits, indicator LEDs, and AssetTags, and searching a multi-node redfish service to find a specific node (with specific UUID, redfish Id, etc). redfishtool follows strict rules of interoperability. To support this goal, liberal comments are added throughout code to explain why each step is being executed.
3636
1. As described above, it makes it easy to use the Redfish API from a BASH script, or as an easy-to-use interactive CLI -- but WITHOUIT creating a 'new API'. All (rather most) of the responses from ***redfishtool*** are Redfish-defined responses. The properties and resources are defined in the redfish spec. ***redfishtool*** is just a tool to access the Redfish API-not a new interface itself.
3737
* The execption is that a 'list' operation was added for all collections to display the key properties for each of the members--rather than just the URIs to the members.
38-
39-
4038

4139
## Usage
4240

@@ -49,8 +47,8 @@ While other generic http clients such as Linux curl can send and receive Redfish
4947
* ***Operations*** are specify an action or operation you want to perform like S`ystems setBootOverride` ..., or `Systems reset`.
5048
* ***OtherArgs*** are any other arguments after the Operation that are sometimes required--like: `Systems <setBootOverride> <enableValue>` <targetValue>"
5149

52-
5350
### Common OPTIONS:
51+
5452
-V, --version -- show redfishtool version, and exit
5553
-h, --help -- show Usage, Options, and list of subCommands, and exit
5654
-u <user>, --user=<usernm> -- username used for remote redfish authentication
@@ -72,18 +70,23 @@ While other generic http clients such as Linux curl can send and receive Redfish
7270
-sss(+requestHdrs,data,authType, +respStatus_code, +elapsed exec time,
7371
AuthToken/sessId/sessUri)
7472
-ssss(+response headers for debug), -sssss(+response data for debug)
73+
7574
###### Options used by "raw" subcommand:
75+
7676
-d <data> --data=<data> -- the http request "data" to send on PATCH,POST,or PUT requests
7777

7878
###### Options to specify top-level collection members: eg: `Systems - I <sysId>`
79+
7980
-I <Id>, --Id=<Id> -- Use <Id> to specify the collection member
8081
-M <prop>:<val> --Match=<prop>:<val> -- Use <prop>=<val> search to find the collection member
8182
-F, --First -- Use the 1st link returned in the collection or 1st "matching" link if used with -M
8283
-1, --One -- Use the single link returned in the collection. Return error if more than one member
8384
-a, --all -- Returns all members if the operation is a Get on a top-level collection like Systems
8485
-L <Link>, --Link=<Link> -- Use <Link> (eg /redfish/v1/Systems/1) to reference the collection member.
8586
-- If <Link> is not one of the links in the collection, and error is returned.
87+
8688
###### Options to specify 2nd-level collection members: eg: `Systems -I<sysId> Processors -i<procId>`
89+
8790
-i <id>, --id=<id> -- use <id> to specify the 2nd-level collection member
8891
-m <prop>:<val> --match=<prop>:val> -- use <prop>=<val> search of 2nd-level collection to specify member
8992
-l <link> --link=<link> -- Use <link> (eg /redfish/v1/SYstems/1/Processors/1) to reference a 2nd level resource
@@ -93,6 +96,7 @@ While other generic http clients such as Linux curl can send and receive Redfish
9396
-- -I|M|F|1|L still specifies the top-lvl collection.
9497

9598
###### Additional OPTIONS:
99+
96100
-W <num>:<connTimeout>, -- Send up to <num> {GET /redfish} requests with <connTimeout> TCP connection
97101
--Wait=<num>:<ConnTimeout> -- timeouts before sending subcommand to rhost. Default is -W 1:3
98102
-A <Authn>, --Auth <Authn> -- Authentication type to use: Authn={None|Basic|Session} Default is Basic
@@ -105,8 +109,9 @@ While other generic http clients such as Linux curl can send and receive Redfish
105109
was specified by the user.
106110
-H <hdrs>, --Headers=<hdrs> -- Specify the request header list--overrides defaults. Format "{ A:B, C:D...}
107111
-D <flag>, --Debug=<flag> -- Flag for dev debug. <flag> is a 32-bit uint: 0x<hex> or <dec> format
108-
112+
109113
### Subcommands:
114+
110115
about -- display version and other information about this version of redfishtool
111116
versions -- get redfishProtocol versions supported by rhost: GET ^/redfish
112117
root | serviceRoot -- get serviceRoot resouce: GET ^/redfish/v1/
@@ -119,14 +124,15 @@ While other generic http clients such as Linux curl can send and receive Redfish
119124
metadata -- get the CSDL metadata document: GET ^/redfish/v1/$metadata
120125
raw -- execute raw redfish http methods and URIs (-C option will be ignored)
121126
hello -- redfishtool hello world subcommand for dev testing
127+
122128
For Subcommand usage, including subcommand Operations and OtherArgs, execute:
123129

124130
python redfishtool <SubCommand> -h -- prints usage and options for the specific subCommand
125131

126-
127132
### Subcommand Operations and Addl Args
128133

129134
###### Systems Operations
135+
130136
python redfishtool.py -r <rhost> -u <username> -p <password> Systems -h
131137
Usage:
132138
redfishtool [OPTNS] Systems <operation> [<args>] -- perform <operation> on the system specified
@@ -158,6 +164,7 @@ While other generic http clients such as Linux curl can send and receive Redfish
158164
hello -- Systems hello -- debug command
159165

160166
###### Chassis Operations
167+
161168
python redfishtool.py -r <rhost> -u <username> -p <password> Chassis -h
162169
Usage:
163170
redfishtool [OPTNS] Chassis <operation> [<args>] -- perform <operation> on the Chassis specified
@@ -185,6 +192,7 @@ While other generic http clients such as Linux curl can send and receive Redfish
185192
hello -- Chassis hello -- debug command
186193

187194
###### Managers Operations
195+
188196
python redfishtool.py -r <rhost> -u <username> -p <password> Managers -h
189197
Usage:
190198
redfishtool [OPTNS] Managers <operation> [<args>] -- perform <operation> on the Managers specified
@@ -214,6 +222,7 @@ While other generic http clients such as Linux curl can send and receive Redfish
214222
hello -- Systems hello -- debug command
215223

216224
###### AccountService Operations
225+
217226
python redfishtool.py -r <rhost> -u <username> -p <password> AccountService -h
218227
Usage:
219228
redfishtool [OPTNS] AccountService <operation> [<args>] -- perform <operation> on the AccountService
@@ -233,8 +242,8 @@ While other generic http clients such as Linux curl can send and receive Redfish
233242
examples -- example commands with syntax
234243
hello -- AccountService hello -- debug command
235244

236-
237245
###### SessionService Operations
246+
238247
python redfishtool.py -r <rhost> -u <username> -p <password> SessionService -h
239248
Usage:
240249
redfishtool [OPTNS] SessionService <operation> [<args>] -- perform <operation> on the SessionService
@@ -250,8 +259,8 @@ While other generic http clients such as Linux curl can send and receive Redfish
250259
examples -- example commands with syntax
251260
hello -- Systems hello -- debug command
252261

253-
254262
###### raw Operations
263+
255264
python redfishtool.py -r <rhost> -u <username> -p <password> raw -h
256265
Usage:
257266
redfishtool [OPTNS] raw <method> <path>
@@ -283,7 +292,7 @@ While other generic http clients such as Linux curl can send and receive Redfish
283292
284293
examples-- example raw commands with syntax
285294
hello -- raw hello -- debug command
286-
295+
287296
# Example Usage
288297

289298
### System subcommand Examples

redfishtool/redfishtoolTransport.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class RfTransport():
5858
def __init__(self):
5959
# constant parameters-- these dont change and are not updated
6060
self.program="redfishtool" # program name (in case we want to change it)
61-
self.version="1.0.3" # this redfishtool version
62-
self.releaseDate="1/18/2018" # release date for this version of redfishtool
61+
self.version="1.0.4" # this redfishtool version
62+
self.releaseDate="2/2/2018" # release date for this version of redfishtool
6363
self.downloadFrom="https://github.com/DMTF/Redfishtool" # where to find redfishtool
6464
self.magic="12345" # used for debug to test for a known parameter in this object
6565
self.UNAUTHENTICATED_API=1 # unauthenticated API that doesn't send credentials in body data

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name='redfishtool',
4-
version='1.0.3',
4+
version='1.0.4',
55
description='Redfishtool package and command-line client',
66
author='DMTF, https://www.dmtf.org/standards/feedback',
77
license='BSD 3-clause "New" or "Revised License"',
@@ -14,7 +14,7 @@
1414
],
1515
keywords='Redfish',
1616
url='https://github.com/DMTF/Redfishtool',
17-
download_url='https://github.com/DMTF/Redfishtool/archive/1.0.3.tar.gz',
17+
download_url='https://github.com/DMTF/Redfishtool/archive/1.0.4.tar.gz',
1818
packages=['redfishtool'],
1919
scripts=['scripts/redfishtool'],
2020
install_requires=['requests']

0 commit comments

Comments
 (0)