Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > db8d50b45fb15e865b7becf99650beea > files > 13

powerman-2.3.25-1.mga7.armv7hl.rpm

# 
# GreenBlade Subrack
# APPRO Inc.
#
# appro-greenblade.dev,v 1.0 2010/07/19 16:05:34 Francis Lee (kolee@appro.com)
# /usr/local/etc/powerman/appro-greenblade.dev,v
#
#	iscb-gb     : Standard 10 nodes
#	iscb-gbgpu  : 5 nodes with 5 GPU expansions
#	iscb-hybrid : 6 nodes with 4 GPU expansions
#
specification "iscb-gb" {
	timeout 	10.0
	plug name {
		"01" "02" "03" "04" "05" "06" "07" "08" "09" "10"
	}
	script ping {
		send "\r\n"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script login {
		send "\r\n"
		delay 0.5 
		expect "Password: "
		send "111111\r\n"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script logout {
		send "exit\r\n"
		expect "ok"
		#expect "ok\niSCB-[0-9]+:[0-9]> "
	}
	script status_all {
		send "pmnode all\r\n"
		foreachplug {
			expect "node([0-9]+): (on|off|n/a)"
			setplugstate $1 $2 on="on" off="off"
		}
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status_beacon_all {
		send "pmled all\r\n"
		foreachplug {
			expect "node([0-9]+): (on|off|n/a)"
			setplugstate $1 $2 on="on" off="off"
		}
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status {
		send "pmnode %s\r\n"
		expect "node([0-9]+): (on|off|n/a)"
		setplugstate $1 $2 on="on" off="off"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status_beacon {
		send "pmled %s\r\n"
		expect "node([0-9]+): (on|off|n/a)"
		setplugstate $1 $2 on="on" off="off"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script on {
		send "on %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script off {
		send "off %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script cycle {
		send "cycle %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script beacon_on {
		send "led on %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script beacon_off {
		send "led off %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script reset_all {
		send "reset all\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script reset {
		send "reset %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
}

specification "iscb-gbgpu" {
	timeout 	10.0
	plug name {
		"01" "02" "03" "04" "05"
	}
	script ping {
		send "\r\n"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script login {
		send "\r\n"
		delay 0.5 
		expect "Password: "
		send "111111\r\n"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script logout {
		send "exit\r\n"
		expect "ok"
		#expect "ok\niSCB-[0-9]+:[0-9]> "
	}
	script status_all {
		send "pmnode all\r\n"
		foreachplug {
			expect "node([0-9]+): (on|off|n/a)"
			setplugstate $1 $2 on="on" off="off"
		}
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status_beacon_all {
		send "pmled all\r\n"
		foreachplug {
			expect "node([0-9]+): (on|off|n/a)"
			setplugstate $1 $2 on="on" off="off"
		}
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status {
		send "pmnode %s\r\n"
		expect "node([0-9]+): (on|off|n/a)"
		setplugstate $1 $2 on="on" off="off"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status_beacon {
		send "pmled %s\r\n"
		expect "node([0-9]+): (on|off|n/a)"
		setplugstate $1 $2 on="on" off="off"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script on {
		send "on %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script off {
		send "off %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script cycle {
		send "cycle %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script beacon_on {
		send "led on %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script beacon_off {
		send "led off %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script reset_all {
		send "reset all\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script reset {
		send "reset %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
}

specification "iscb-hybrid" {
	timeout 	10.0
	plug name {
		"01" "02" "03" "04" "05" "06" "07"
	}
	script ping {
		send "\r\n"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script login {
		send "\r\n"
		delay 0.5 
		expect "Password: "
		send "111111\r\n"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script logout {
		send "exit\r\n"
		expect "ok"
		#expect "ok\niSCB-[0-9]+:[0-9]> "
	}
	script status_all {
		send "pmnode all\r\n"
		foreachplug {
			expect "node([0-9]+): (on|off|n/a)"
			setplugstate $1 $2 on="on" off="off"
		}
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status_beacon_all {
		send "pmled all\r\n"
		foreachplug {
			expect "node([0-9]+): (on|off|n/a)"
			setplugstate $1 $2 on="on" off="off"
		}
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status {
		send "pmnode %s\r\n"
		expect "node([0-9]+): (on|off|n/a)"
		setplugstate $1 $2 on="on" off="off"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script status_beacon {
		send "pmled %s\r\n"
		expect "node([0-9]+): (on|off|n/a)"
		setplugstate $1 $2 on="on" off="off"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script on {
		send "on %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script off {
		send "off %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script cycle {
		send "cycle %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script beacon_on {
		send "led on %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script beacon_off {
		send "led off %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script reset_all {
		send "reset all\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
	script reset {
		send "reset %s\r\n"
		expect "ok"
		expect "iSCB-[0-9]+:[0-9]> "
	}
}