Confd cli output format‏

Our company is using confd product, I noticed that all the output format of show commands is table,
for example:

Barbados# show ut online cid qos-params min-reserved-traffic-rate

                            MIN

                            RESERVED

MACD TRAFFIC

ID MAC ADDR CID RATE


1 ff:ff:ff:ff:ff:ff 65278 0

                     65533  0

                     65535  0

1 00:a0:bc:2f:44:c0 1 50000

                     6251   20480

                     12501  27496

                     12502  1500000

I wonder if there are settings or command to setup confd to display follow format:

Barbados# show ut online cid qos-params min-reserved-traffic-rate

macd 1

mac-addr ff:ff:ff:ff:ff:ff

cid 65278

min-reserved-traffic-rate 0

!

!

cid 65533

min-reserved-traffic-rate 0

!

!

cid 65535

min-reserved-traffic-rate 0

!

!

mac-addr 00:a0:bc:2f:44:c0

cid 1

min-reserved-traffic-rate 50000

!

!

cid 6251

min-reserved-traffic-rate 20480

!

!

cid 12501

min-reserved-traffic-rate 27496

!

!

This format will be very easy for script to parse, just use 3 keys “macd “, “mac-addr” and “cid” to retrieve any “min-reserved-traffic-rate” value with one line of regular expression.

Thanks,
Jing Cai

Perhaps this confd.conf setting is what you are looking for?:

/confdConfig/cli/defaultTableBehavior (dynamic|enforce|suppress) [dynamic] defaultTableBehavior is either “dynamic”, “suppress”, or “enforce”. If set to “dynamic” then list nodes will be displayed as tables if the resulting table will fit on the screen. If set to suppress, then list nodes will not be displayed as tables unless a table has been specified by some other means (ie through a setting in the clispec-file or through a command line parameter), if set to “enforce” then list nodes will always be displayed as tables unless otherwise specified in the clispec-file or on the command line.