giovedì 19 febbraio 2015

Cisco UCS Defining CIMC Network Static Settings Using a Script File an usb key

Use this procedure to define static network settings for multiple servers by automating the configuration process with a script file.
Procedure
Step 1   Use a text editor to create a file named network.cfg.
Step 2   Create the contents of network.cfg in the following format by using only the tags that you want to set:
dhcp-enabled:
v4-addr:
v4-netmask:
v4-gateway:
vlan-enabled:
vlan-id:
vlan-priority:
password: 
mode:
redundancy:

For example, to disable DHCP, set the IP address, subnet mask, gateway, and user password, use the following sample values:
dhcp-enabled: 0
v4-addr: 10.193.70.102
v4-netmask: 255.255.255.0
v4-gateway: 10.193.70.1
password: nonpasswd
mode:
redundancy:

Step 3   Use a text editor to create a file named startup.nsh with the following contents:
fs0:
cimcconfig

Step 4   Copy your network.cfg file and your startup.nsh file to a USB thumb drive.
Step 5   Insert the USB thumb drive into a USB port on the server.
Step 6   Press and release the Power button to boot the server.
Step 7   Observe the booting process and press F6 when prompted to enter the BIOS Boot Manager.
Step 8   Select EFI as the boot device and then press Enter. The server power cycles and launches the configuration utility, which runs the startup.nsh file. Any errors are displayed on the screen and on an errors.txt file.
Step 9   Remove the USB thumb drive, alter the network.cfg file with your next IP address, and then insert the USB thumb drive into the next server that you want to configure.
Step 10   After the server has been assigned an IP address, you can use that address to access the service processor's GUI or CLI management system.

Nessun commento: