Skip to content

Instantly share code, notes, and snippets.

Avatar

Stéphane Gourichon fidergo-stephane-gourichon

View GitHub Profile
@fidergo-stephane-gourichon
fidergo-stephane-gourichon / outlet
Created Jun 17, 2018 — forked from awaxa/outlet
apc pdu outlet expect script
View outlet
#!/usr/bin/expect
set timeout 3
if {[llength $argv] == 0} {
send_user "Usage: outlet [1-8] [on|off|reboot] \n"
exit 1
}
set number [lindex $argv 0]
set onoff [lindex $argv 1]
You can’t perform that action at this time.