User guide
A–FastFabric Configuration Files
FastFabric Configuration File
A-2 IB0054607-01 A
FastFabric Configuration File
The FastFabric tools support a configuration file
/etc/sysconfig/fastfabric.conf. This file can be used to provide default
settings for most of the FastFabric command line options. The configuration file is
a bash shell script which will be included by each tool. As such the file should be
implemented such that environment variables defined before the con fig file is
executed will not be altered. The sample displayed below makes use of the bash
syntax:
var= "${var:-value}"
such that only uninitialized variables are overwritten by the configuration file.
An example of a sample file is provided, and matches the internal defaults of the
FastFabric tools. For a given release consult
/etc/sysconfig/fastfabric.conf-sample for a sample file with the defaults
of the given release. If
fastfabric.conf does not assign a value to a given
configuration variable, the default value will be used.
The use of various configuration variables are discussed in the Environment
Variables section for each command.
#!/bin/bash
# [ICS VERSION STRING: @(#) ./fastfabric/ib_tools/defaults x_x_x_x_x [MM/DD/YY hh:mm]
# This is a bash sourced config file which defines variables used in
# fast fabric tools. Command line arguments will override these settings.
# Assignments should be scripted such that this file does not override
# exported environment settings, as shown in the defaults below
if [ "$CONFIG_DIR" = "" ]
then
if [ -d /etc/sysconfig ]
then
CONFIG_DIR=/etc/sysconfig
else
CONFIG_DIR=/etc
fi
/etc/sysconfig/iba/topol-
ogy.0:0.xml
Fabric topology input file used by iba_reports and
fabric health tools. Refer to Fabric Topology Input
File.
NOTE:
Do not edit
/etc/sysconfig/fastfabric.conf-sample.
Table A-2. FastFabric Configuration Files
Configuration File Description