Skip to content

Commit c553c6a

Browse files
committed
etc: use status_ranged in ipmipower
Problem: ipmipower supports passing ranged hosts to check power status, but it is not utilized. Use the status_range script over the status_all script in ipmipower.dev.
1 parent 1af42e2 commit c553c6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/devices/ipmipower.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ specification "ipmipower" {
3030
script logout {
3131
send "quit\n"
3232
}
33-
script status_all {
34-
send "stat\n"
33+
script status_ranged {
34+
send "stat %s\n"
3535
foreachnode {
3636
expect "([^\n:]+): ([^\n]+\n)"
3737
setplugstate $1 $2 on="^on\n" off="^off\n"

0 commit comments

Comments
 (0)