Log file, Script command example, List operation – HP Ethernet 10Gb 2-port 530T Adapter User Manual

Page 30: Get operation

Advertising
background image

Scripting mode 30

Log file

The -set operation logs the following information for each device:

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 invalid value

The log file name is <MAC[last four digits]>.log. The log is formatted in conformance with the

scripting file format. Error and warning messages start with a semicolon so you can use the log file as a
configuration file. Use the -stderr command option to output the log file content to STDERR at the same

time.

Script command example

The following examples show ways to use the -list, -get, -set, and -getItemGuide operations.

-list operation

C:\test\7.8.21>ccmcfg32 -list

Card# BUS Device Config MAC Address

====== ========= ========= ====== =================

0 1:00:00 BCM57712 IFA 00:10:18:6F:D2:74

1 1:00:01 BCM57712 IFA 00:10:18:6F:D2:76

2 2:00:00 BCM57810 IFNA 00:10:18:C7:5F:60

3 2:00:01 BCM57810 IFNA 00:10:18:C7:5F:62

4 3:00:00 BCM5717 I 00:00:00:00:00:00

5 3:00:01 BCM5717 I 00:00:00:00:00:00

6 4:00:00 BCM5722 I B8:AC:6F:93:86:BA

7 5:00:00 BCM5720 I 00:10:18:57:20:00

8 5:00:01 BCM5720 I 00:10:18:57:20:01

*: Configure Block Letters: I:iSCSI; F:FCoE; N:Nic Partition; A:AFEX

-get operation

The following example dumps the configuration of each device into a file named <MAC[last four

digits]>.CFG.

C:\test\7.8.21>ccmcfg32 -get

Dumping Configuration of Device [00:10:18:6F:D2:74] to 186FD274.CFG ...done.

Dumping Configuration of Device [00:10:18:6F:D2:76] to 186FD276.CFG ...done.

Dumping Configuration of Device [00:10:18:C7:5F:60] to 18C75F60.CFG ...done.

Dumping Configuration of Device [00:10:18:C7:5F:62] to 18C75F62.CFG ...done.

Dumping Configuration of Device [00:00:00:00:00:00] to 00000000.CFG ...done.

Dumping Configuration of Device [00:00:00:00:00:00] to 00000000.CFG ...done.

Dumping Configuration of Device [B8:AC:6F:93:86:BA] to 6F9386BA.CFG ...done.

Dumping Configuration of Device [00:10:18:57:20:00] to 18572000.CFG ...done.

Dumping Configuration of Device [00:10:18:57:20:01] to 18572001.CFG ...done.

The following example dumps the configuration of all devices in the platform into a single file named
outdata.txt.

C:\test\7.8.21>ccmcfg32 -get outdata.txt

Dumping Configuration of Device [00:10:18:6F:D2:74] to outdata.txt ...done.

Dumping Configuration of Device [00:10:18:6F:D2:76] to outdata.txt ...done.

Dumping Configuration of Device [00:10:18:C7:5F:60] to outdata.txt ...done.

Advertising