Broadcom Comprehensive Configuration Management for HP FlexFabric Adapters User Guide

Scripting mode 25
Scripting mode
Scripting mode overview
Invoke ccmcfg from the DOS prompt in either a DOS or Windows environment. The following example
shows formatting and usage commands:
C:\test\7.8.21>ccmcfg32 -help
CCMCFG32 v7.8.21 - Comprehensive Configuration Management
Copyright (C) 2000-2013 Broadcom Corporation
Usage: ccmcfg32 [Options]
The following table describes the options.
Command Description
-list
List available configurable devices
-get [<file name>]
Retrieve parameters from the devices
If <file name> is not presented and -stdout is not set, the file named <MAC
Address[last 4 bytes]>.cfg is used as output file for each individual device.
Any existing
<file name>
is overwritten without warning.
-getItemGuide
[<file name>]
Retrieve all configurable parameters of the devices
The saving file options are the same as -get with a file name of <MAC
Address[last 3 bytes]GD>.cfg
.
-set [<file name>]
Set parameters in specified file to devices
If the file contains no section name, the iSCSI section is used for backward
compatible. Multiple devices and multiple sections can be put into a single script file
such as in the file from -get. If <file name> is not presented, -stdin is used as
input file. A log file named <MAC[Last 4 Digits].log> is logged for each
device with the following information:
The difference between configuration file and current configuration on the card
Any syntax errors detected while parsing the script file
Any error and warning while trying to set the value such as an invalid value
If
-stderr
is presented, the content of log file is output to
STDERR
at the same time.
[-setmode
<Check|Safe|Force>
]
Mode when running -set
Check Mode: In this mode, no configuration is saved. Only the error check is
performed against the script file.
Safe Mode: In this mode, no configuration is saved if any error is detected in script
file.
Force Mode: In this mode, script entries without error in script file are saved, and
script entries with errors detected are ignored. This is default mode.
-default
[iscsi|fcoe|nicp|a
fex]
Set iSCSI, FCOE, NIC Partitioning, and/or AFEX parameters to default values
If there is no function specified, all functions above are set to default values. Only
functions with configuration block existing on the device are set. If no device scope
is specified, all devices are set to default values.
-stdout
Valid with -get
This command uses the standard output as the output file.