Using ProLiant Essentials Rapid Deployment Pack for scripted blade based switch configuration

7. Select Locally on the Deployment Server.
8. Click OK.
Rack location and switch configuration call:
(The set slot, set enclosure, and set rack paragraphs within the code are three lines, not three
paragraphs. A simple cut/paste will not work; cut and paste each paragraph onto one line within the
Run this script box.)
set slot=%#*"SELECT physical_bay.real_name FROM computer INNER JOIN physical_bay ON
computer.computer_id = physical_bay.computer_id INNER JOIN physical_enclosure ON
physical_bay.enclosure_id = physical_enclosure.enclosure_id INNER JOIN physical_rack
ON physical_enclosure.rack_id = physical_rack.rack_id AND computer.computer_id =
{ID}"%
set enclosure=%#*"SELECT physical_enclosure.real_name FROM computer INNER JOIN
physical_bay ON computer.computer_id = physical_bay.computer_id INNER JOIN
physical_enclosure ON physical_bay.enclosure_id = physical_enclosure.enclosure_id
INNER JOIN physical_rack ON physical_enclosure.rack_id = physical_rack.rack_id AND
computer.computer_id = {ID}"%
set rack=%#*"SELECT physical_rack.real_name FROM computer INNER JOIN physical_bay ON
computer.computer_id = physical_bay.computer_id INNER JOIN physical_enclosure ON
physical_bay.enclosure_id = physical_enclosure.enclosure_id INNER JOIN physical_rack
ON physical_enclosure.rack_id = physical_rack.rack_id AND computer.computer_id =
{ID}"%
REM Call a program that will configure NICs 1 and 2 to port 10 on the left and
REM right switch.
cd c:\SwitchVlanConfig
perl SwitchConfig.pl 10 >> SwitchConfig.log
The code reads the rack location of the server being deployed from the RDP database and writes
them into environmental variables. The last line executes a Perl script that uses this rack location to
properly configure a VLAN for the interconnect switch port on both the left and right switch. The
number10 is passed into the Perl script as the VLAN to be configured.
The Perl script must be executed from the directory where it resides, so the server-side script has to
change directory (cd) before executing the Perl switch configuration program. The server-side script
uses the command cd c:\SwitchVlanConfig to perform this task. If you use an alternate directory on
the RDP server to store the switch configuration files the change directory command line must be
modified to change directory into your chosen directory.
In Figure 6, the rack location and switch configuration call script has been copied and pasted into the
Run this script: box and set to run in Windows.
In Figure 7, the Advanced Script Options have been accessed, and the Execution Location is chosen.
The script must be set to run locally on the deployment server.
11