ThinWorld Citrix Knowledgebase

Thursday, 30 July 2009

Scripted Teaming of NIC Cards and Scripted ILO settings

A painful task to perform manually is the teaming of Network Cards and general management of the HP ILO (RIB) cards.

HP provide tools to automate alot of these settings. The executables below are passed XML format files containing the required settings.

Executables
HPONCFG.EXE - This control setting for the ILO settings
CQNICCMD.EXE - This one is good for Teaming NIC cards

XML files like the examples below can then be used to set things like Admin account password, WINS and DNS Settings, Rib Card Name along with many other settings.

XML Example of Setting ILO settings
note : replace # with < character i had to change it to post it in this blog

#span style="font-weight: bold;">Demo XML config file for ILO Settings#/span>
#!-- RIBCL Sample Script for HP Lights-Out Products -->
#!--Copyright (c) 2003,2007 Hewlett-Packard Development Company, L.P.-->

#!-- Description: This is a sample XML script to configure the -->
#!-- network settings for following devices: -->
#!-- Integrated Lights-Out 2 (iLO 2) -->
#!-- Integrated Lights-Out (iLO) -->
#!-- Remote Insight Lights-Out Edition II (RILOE II) -->

#!-- NOTE: You will need to replace the USER_LOGIN and PASSWORD -->
#!-- and other values inside the quotation marks with values -->
#!-- that are appropriate for your environment. -->

#!-- Double check all values before executing this script. -->
#!-- Incorrect or mismatched network settings may cause you -->
#!-- to lose the ability to connect to your Lights-Out device.-->

#!-- Use CPQLOCFG.EXE ver 2.26 or greater with this script. -->

#!-- This script was written for iLO 2 firmware version 1.30 -->
#!-- release. -->

#!-- See "HP Integrated Lights-Out Management Processor -->
#!-- Scripting and Command Line Resource Guide" for more -->
#!-- information on scripting and the syntax of the RIBCL -->
#!-- XML. -->

#!-- Firmware support infomation for this script: -->
#!-- iLO 2 - All versions. -->
#!-- iLO - All versions. -->
#!-- RILOE II - All versions. -->

#ribcl version="2.0">
#login user_login="adminname" password="password">
#user_info mode="write">
#mod_user user_login="Administrator">
#password value="newpassword">
#/password>
#/mod_user>
#rib_info mode="write">
#mod_global_settings>
#high_performance_mouse value="Yes">
#/high_performance_mouse>
#/mod_global_settings>
#rib_info mode="write">
#license>
#activate key="32RCT3GCCVYT27RSYDS8R346M">
#/activate>
#/license>
#rib_info mode="write">
#mod_snmp_im_settings>
#web_agent_ip_address value="CHANGEME">
#/web_agent_ip_address>
#/mod_snmp_im_settings>
#rib_info mode="write">
#mod_network_settings>
#dhcp_enable value="No">
#dns_name value="CHANGEME-RB">
#reg_wins_server value="Yes">
#prim_wins_server value="10.x.x.x">
#sec_wins_server value="10.x.x.x">
#/sec_wins_server>
#/prim_wins_server>
#/reg_wins_server>
#/dns_name>


#span style="font-weight: bold;">

Demo XML for Teaming NIC Cards in HP Blade #/span>
(replace # with < character in the code below)


#teamingconfig>

#!-- The comment lines in this file make it convenient -->
#!-- to reference #nic>, #team>, and #vlan> elements -->
#!-- within the file. It is recommended that these -->
#!-- comment lines remain unchanged if the user edits -->
#!-- the file. -->


#!-- -->
#!-- Version Data -->
#!-- -->

#version utilityversion="'9.30.0.19'" scriptversion="'3.1'/">

#!-- -->
#!-- Adapter Data -->
#!-- -->

#!-- #nic> element 1 -->
#nic>
#property id="'SpeedDuplex'" value="'Auto/Auto'/">
#property id="'iSCSIEnabled'" value="'0'/">
#property id="'PreferredPrimaryRanking'" value="'0'/">
#property id="'DualChannelGroup'" value="'0'/">
#property id="'ConfiguredPortCost'" value="'0'/">
#property id="'TOEEnabled'" value="'0'/">
#property id="'RSSEnabled'" value="'0'/">
#property id="'iSCSIVlanId'" value="'0'/">
#property id="'iSCSIVlanName'" value="''/">
#property id="'iSCSIPacketPriority'" value="'Disabled'/">
#property id="'iSCSIDHCPEnabled'" value="'Enabled'/">
#property id="'iSCSIIPAddress'" value="'0.0.0.0'/">
#property id="'iSCSISubnetMask'" value="'0.0.0.0'/">
#property id="'iSCSIGateway'" value="'0.0.0.0'/">
#property id="'iSCSILAA'" value="''">
#/property>

#!-- #nic> element 2 -->
#nic>
#property id="'SpeedDuplex'" value="'Auto/Auto'/">
#property id="'iSCSIEnabled'" value="'0'/">
#property id="'PreferredPrimaryRanking'" value="'1'/">
#property id="'DualChannelGroup'" value="'0'/">
#property id="'ConfiguredPortCost'" value="'0'/">
#property id="'TOEEnabled'" value="'0'/">
#property id="'RSSEnabled'" value="'0'/">
#property id="'iSCSIVlanId'" value="'0'/">
#property id="'iSCSIVlanName'" value="''/">
#property id="'iSCSIPacketPriority'" value="'Disabled'/">
#property id="'iSCSIDHCPEnabled'" value="'Enabled'/">
#property id="'iSCSIIPAddress'" value="'0.0.0.0'/">
#property id="'iSCSISubnetMask'" value="'0.0.0.0'/">
#property id="'iSCSIGateway'" value="'0.0.0.0'/">
#property id="'iSCSILAA'" value="''">
#/property>


#!-- -->
#!-- Team Data -->
#!-- -->

#!-- #team> element 1 -->
#team relnics="'1">
#property id="'TeamName'" value="'HP">
#property id="'OpMode'" value="'FailOnFault'/">
#property id="'LoadBalAlgorithm'" value="'Auto'/">
#property id="'RxPathValidationInterval'" value="'3'/">
#property id="'TxPathValidationInterval'" value="'3'/">
#property id="'RxPathValidationMode'" value="'Enabled'/">
#property id="'TxPathValidationMode'" value="'Enabled'/">
#property id="'TeamNetworkAddress'" value="''">
#property id="'TOEEnabled'" value="'0'/">
#property id="'RSSEnabled'" value="'0'/">
#property id="'DefaultVlanId'" value="'xxx'/">
#property id="'RxPathValidationVlanId'" value="'xxx'/">
#!-- #vlan> element 1 -->
#vlan>
#property id="'VlanId'" value="'yyy'/">
#property id="'VlanName'" value="'xxx'/">
#/property>
#/property>

#/vlan>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/team>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/nic>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/property>#/nic>#/version>#/teamingconfig>#/dhcp_enable>#/mod_network_settings>#/rib_info>#/rib_info>#/rib_info>#/rib_info>#/user_info>#/login>#/ribcl>

Labels:

0 Comments:

Post a Comment



<< Home