HP ProLiant SL4500 HP ROM-Based Setup Utility User Guide - Page 202

CONREP -s (Store to Data file), HP Scripting Toolkit User Guide

Page 202 highlights

CONREP is shipped in the Scripting Toolkit (STK) and is a program that works with RBSU to replicate hardware configuration on ProLiant G7 and earlier servers. This utility is run during State 0, Run Hardware Configuration Utility when doing a scripted server deployment. CONREP reads the state of the system environment variables to determine the configuration and then writes the results to an editable script file. This file can then be deployed across multiple servers with similar hardware and software components. For more information, see the HP Scripting Toolkit User Guide for your operating system environment on the HP website (http://www.hp.com/go/ProLiant/STK). The following sections provide information on using CONREP scripts: • Backing up the existing configuration ("CONREP -s (Store to Data file) " (page 202)) • Restoring a configuration from a backup ("CONREP -l (Load from Data File)" (page 202)) CONREP -s (Store to Data file) This is an example of usage for HP ProLiant servers not using the Oxx ROM family. To extract the BIOS settings from an SL160z G6 server and save the configuration to an "sl160zconrep.dat" data file: [root@ilo002481b08134 conrep]# ./conrep -s -xconrepSL160zg6_20090728.xml -fsl160zconrep.dat conrep 3.00 - Scripting Toolkit Configuration Replication Program Copyright (c) 2007-2012 Hewlett-Packard Development Company, L.P. System Type: ProLiant SL160z G6 ROM Date : 07/28/2009 ROM Family : O33 Processor Manufacturer : Intel XML System Configuration : conrep_SL160zg6_20090728.xml Hardware Configuration : sl160zconrep.dat Saving configuration data to sl160zconrep.dat. CONREP Return code: 0 NOTE: The file names after the -x and -f options must be specified, otherwise, the default file names conrep.xml and conrep.dat are used, respectively. NOTE: A platform specific XML file needs to be used for HP ProLiant 100-series servers. If you use the default name this may cause an error while running the CONREP utility. CONREP -l (Load from Data File) This is an example of usage for HP ProLiant servers not using the Oxx ROM family. To load the BIOS configuration settings from a previously captured/edited data file (in this case "sl160zconrep.dat") to an SL160z G6 server: [root@ilo002481b08134 conrep]# ./conrep -l -xconrepSL160zg6_20090728.xml -fsl160zconrep.dat conrep 3.00 - Scripting Toolkit Configuration Replication Program Copyright (c) 2007-2012 Hewlett-Packard Development Company, L.P. System Type: ProLiant SL160z G6 ROM Date : 07/28/2009 ROM Family : O33 Processor Manufacturer : Intel XML System Configuration : conrep_SL160zg6_20090728.xml Hardware Configuration : sl160zconrep.dat Loading configuration from sl160zconrep.dat. ASM values not set! aborting CONREP Return code: 0 202 RBSU configuration flows (manual and scripted)

  • 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
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221

CONREP is shipped in the Scripting Toolkit (STK) and is a program that works with RBSU to replicate
hardware configuration on ProLiant G7 and earlier servers. This utility is run during State 0, Run
Hardware Configuration Utility when doing a scripted server deployment. CONREP reads the state
of the system environment variables to determine the configuration and then writes the results to
an editable script file. This file can then be deployed across multiple servers with similar hardware
and software components. For more information, see the
HP Scripting Toolkit User Guide
for your
operating system environment on the HP website (
h
t
tp://w
w
w
.hp
.co
m/go/Pr
oL
i
an
t/S
TK
).
The following sections provide information on using CONREP scripts:
Backing up the existing configuration (
“CONREP -s (Store to Data file) ” (page 202)
)
Restoring a configuration from a backup (
“CONREP –l (Load from Data File)” (page 202)
)
CONREP -s (Store to Data file)
This is an example of usage for HP ProLiant servers not using the Oxx ROM family. To extract the
BIOS settings from an SL160z G6 server and save the configuration to an "sl160zconrep.dat"
data file:
[root@ilo002481b08134 conrep]# ./conrep -s -xconrepSL160zg6_20090728.xml -fsl160zconrep.dat
conrep 3.00 - Scripting Toolkit Configuration Replication Program
Copyright (c) 2007-2012 Hewlett-Packard Development Company, L.P.
System Type: ProLiant SL160z G6
ROM Date : 07/28/2009
ROM Family : O33
Processor Manufacturer : Intel
XML System Configuration : conrep_SL160zg6_20090728.xml
Hardware Configuration : sl160zconrep.dat
Saving configuration data to sl160zconrep.dat.
CONREP Return code: 0
NOTE:
The file names after the
-x
and
-f
options must be specified, otherwise, the default file
names
conrep.xml
and
conrep.dat
are used, respectively.
NOTE:
A platform specific XML file needs to be used for HP ProLiant 100-series servers. If you
use the default name this may cause an error while running the CONREP utility.
CONREP –l (Load from Data File)
This is an example of usage for HP ProLiant servers not using the Oxx ROM family. To load the
BIOS configuration settings from a previously captured/edited data file (in this case
“sl160zconrep.dat”) to an SL160z G6 server:
[root@ilo002481b08134 conrep]# ./conrep -l -xconrepSL160zg6_20090728.xml -fsl160zconrep.dat
conrep 3.00 - Scripting Toolkit Configuration Replication Program
Copyright (c) 2007-2012 Hewlett-Packard Development Company, L.P.
System Type: ProLiant SL160z G6
ROM Date : 07/28/2009
ROM Family : O33
Processor Manufacturer : Intel
XML System Configuration : conrep_SL160zg6_20090728.xml
Hardware Configuration : sl160zconrep.dat
Loading configuration from sl160zconrep.dat.
ASM values not set! aborting
CONREP Return code: 0
202
RBSU configuration flows (manual and scripted)