File: t09.conf

package info (click to toggle)
powerman 2.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 3,520 kB
  • ctags: 2,013
  • sloc: ansic: 14,102; sh: 10,556; yacc: 641; lex: 271; makefile: 234; perl: 11
file content (32 lines) | stat: -rw-r--r-- 606 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
specification "vpc" {
	timeout 	5.0

	plug name { "0" "1" "2" "3" "4" "5" "6" "7" "8" 
		    "9" "10" "11" "12" "13" "14" "15" }

	script login {
		send "login\n"
		expect "[0-9]* OK\n"
		expect "[0-9]* vpc> "
	}
	script logout {
		send "logoff\n"
		expect "[0-9]* OK\n"
	}
	script status_all {
		send "spew 16\n"  # noise generator
		expect "[0-9]* OK\n"
		expect "[0-9]* vpc> "

		send "stat *\n"
		foreachplug {
			expect "plug ([0-9]+): (ON|OFF)\n"
			setplugstate $1 $2 on="ON" off="OFF"
		}
		expect "[0-9]* OK\n"
		expect "[0-9]* vpc> "
	}
}

device "test0" "vpc" "./vpcd |&"
node "t[0-15]" "test0"