Skip to content

Commit 3aab419

Browse files
committed
etc: add device file for HPE Proliant DL325 Gen10
Add device file for a HPE Proliant DL325 Gen10.
1 parent 8e4dfba commit 3aab419

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

etc/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ pkgsysconf_DATA = \
6161
devices/redfishpower-cray-windom.dev \
6262
devices/redfishpower-cray-ex.dev \
6363
devices/redfishpower-cray-ex-rabbit.dev \
64+
devices/redfishpower-hpe-proliant-dl325-gen10-plus.dev \
6465
devices/phantom.dev \
6566
devices/plmpower.dev \
6667
devices/powerman.dev \
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Support for Redfish Rest Interface
2+
#
3+
# Powerman.conf should look something like this:
4+
# include "/etc/powerman/redfishpower-hpe-proliant-dl325-gen10-plus.dev"
5+
# device "redfishpower" "redfishpower-hpe-proliant-dl325-gen10-plus" "/usr/sbin/redfishpower -h pnode[1-2] |&"
6+
# node "node1" "redfishpower" "pnode1"
7+
# node "node2" "redfishpower" "pnode2"
8+
#
9+
# - If necessary, set your system's username/password via redfishpower's
10+
# --auth option.
11+
#
12+
# - This device specification was tested on a EAS3 HP ProLiant DL325 node.
13+
#
14+
# - CAUTION: If you intend to use this file as the basis for a different
15+
# Redfish system, read the section "UPDATING REDFISHPOWER DEVICE FILES"
16+
# in redfishpower(8).
17+
#
18+
specification "redfishpower-hpe-proliant-dl325-gen10-plus" {
19+
timeout 60
20+
21+
script login {
22+
expect "redfishpower> "
23+
send "auth USER:PASS\n"
24+
expect "redfishpower> "
25+
send "setheader Content-Type:application/json\n"
26+
expect "redfishpower> "
27+
send "setstatpath redfish/v1/Systems/1\n"
28+
expect "redfishpower> "
29+
send "setonpath redfish/v1/Systems/1/Actions/ComputerSystem.Reset {\"ResetType\":\"On\"}\n"
30+
expect "redfishpower> "
31+
send "setoffpath redfish/v1/Systems/1/Actions/ComputerSystem.Reset {\"ResetType\":\"ForceOff\"}\n"
32+
expect "redfishpower> "
33+
send "settimeout 60\n"
34+
expect "redfishpower> "
35+
}
36+
script logout {
37+
send "quit\n"
38+
}
39+
script status_all {
40+
send "stat\n"
41+
foreachnode {
42+
expect "([^\n:]+): ([^\n]+\n)"
43+
setplugstate $1 $2 on="^on\n" off="^off\n"
44+
}
45+
expect "redfishpower> "
46+
}
47+
script on_ranged {
48+
send "on %s\n"
49+
expect "redfishpower> "
50+
}
51+
script off_ranged {
52+
send "off %s\n"
53+
expect "redfishpower> "
54+
}
55+
script cycle_ranged {
56+
send "off %s\n"
57+
expect "redfishpower> "
58+
delay 2
59+
send "on %s\n"
60+
expect "redfishpower> "
61+
}
62+
}

0 commit comments

Comments
 (0)