File: hpilo.dev

package info (click to toggle)
powerman 2.4.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,432 kB
  • sloc: ansic: 19,458; sh: 7,225; yacc: 694; makefile: 455; lex: 272
file content (62 lines) | stat: -rw-r--r-- 1,340 bytes parent folder | download | duplicates (4)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# HP Integrated Lights-Out management device (iLO)
#
# (c) Copyright 2009 Hewlett-Packard Development Company, L.P.
#	Bjorn Helgaas <bjorn.helgaas@hp.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# Example:
#	device "dl360-001" "hpilo" "dl360-001-ilo.test:23"
#	node   "dl360-001" "dl360-001"
#
# Tested on:
#	DL360 (iLO firmware 1.93)
#	DL320 (iLO firmware 1.42)
#	BL465c G5 (iLO firmware 1.61)

specification  "hpilo" {
	timeout 10
	plug name { "1" }

	script login {
		expect "Login Name:  "
		send "Admin\r\n"
		expect "Password:    "
		send "Admin\r\n"
		expect "hpiLO-> "
	}
	script status {
		send "power\r\n"
		expect "server power is currently: (On|Off)"
		setplugstate "1" $1 on="On" off="Off"
		expect "hpiLO-> "
	}
	script on {
		send "power on\r\n"
		expect "hpiLO-> "
	}
	script off {
		send "power off\r\n"
		expect "hpiLO-> "
	}
	script reset {
		send "reset system1\r\n"
		expect "hpiLO-> "
	}
	script status_beacon {
		send "uid\r\n"
		expect "The UID light is currently: (On|Off)"
		setplugstate "1" $1 on="On" off="Off"
		expect "hpiLO-> "
	}
	script beacon_on {
		send "uid on\r\n"
		expect "hpiLO-> "
	}
	script beacon_off {
		send "uid off\r\n"
		expect "hpiLO-> "
	}
}