Next Topic

Previous Topic

Book Contents

Field Selection

In batch mode, bveCLI allows selection of specific configuration/output fields using the --fields parameter. When used, the output only includes the specified fields.

Sample Session

% bveCLI.pl --host 192.168.10.21 --exec 'device.list "devicename=Cisco*"' --fields devicename,address,configbackupenabled,devicetype,invalidfield,serialnumber
.----------------------------------------------------.
|                 Number of Items: 3                 |
+---------------------+------------------------------+
| Parameter           | Value                        |
+---------------------+------------------------------+
|             address | 67.21.1.74                   |
| configbackupenabled | true                         |
|          devicename | Cisco Router                 |
|          devicetype | IP Router                    |
|        serialnumber | 220070                       |
+---------------------+------------------------------+
|             address | 192.168.14.1                 |
| configbackupenabled | false                        |
|          devicename | Cisco UCS Platform           |
|          devicetype | Other/Generic Device         |
|        serialnumber | 2400080                      |
+---------------------+------------------------------+
|             address | 192.168.14.2                 |
| configbackupenabled | false                        |
|          devicename | Cisco Unified Communications |
|          devicetype | Linux/Other Unix             |
|        serialnumber | 2400399                      |
'---------------------+------------------------------'