Skip to content

Commit a610b17

Browse files
Merge pull request sonic-net#279 from BRCM-SONIC/bdbg-updates
Updates to BDBG
2 parents 98fe4fd + 6ceb3ca commit a610b17

File tree

1 file changed

+46
-6
lines changed

1 file changed

+46
-6
lines changed

devops/tam/bdbg-hld.md

+46-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Highlevel Design Document
44

5-
### Rev 0.2
5+
### Rev 0.3
66

77
## Table of Contents
88

@@ -87,8 +87,9 @@
8787

8888
| Rev | Date | Author | Change Description |
8989
|---|-----------|------------------|-----------------------------------|
90-
| 0.1 | 07/10/2020 | Sharad Agrawal | New draft for Broadcom SONiC |
91-
| 0.2 | 07/27/2020 | Sharad Agrawal | Address review comments |
90+
| 0.1 | 07/10/2021 | Sharad Agrawal | New draft for Broadcom SONiC |
91+
| 0.2 | 07/27/2021 | Sharad Agrawal | Address review comments |
92+
| 0.3 | 09/13/2021 | Bandaru Viswanath | 1. Added L2/IPv6 support for command outputs <br/> 2. Added additional debug commands <br/>3. Adjusted default values for the intervals <br/>4. Added start/stop commands for explicit interaction. |
9293

9394

9495
## About This Manual
@@ -304,8 +305,8 @@ Two tuning parameters are supported by BDBG for controlling data collection as w
304305

305306
| **Parameter** | **Description** |
306307
|--------------------------|-------------------------------------|
307-
| `collection-interval` | The data collection periodicity in seconds Range 0 - 3600. 0 indicates disabling periodic collection. Default : 0 |
308-
| `max-retention-interval` | Data retention interval, in seconds, for the historical data, after which the data will be purged. Range 0 - 3600. 0, indicates no historical data retention, Default : 0|
308+
| `collection-interval` | The data collection periodicity in seconds Range 0 - 3600. 0 indicates disabling periodic collection. Default : 15 |
309+
| `max-retention-interval` | Data retention interval, in seconds, for the historical data, after which the data will be purged. Range 0 - 3600. 0, indicates no historical data retention, Default : 300|
309310

310311
Atleast one parameter must be provided in any invocation. Any unsupplied parameter will continue to have the previously configured value.
311312

@@ -329,6 +330,26 @@ The command syntax for setting up the parameter is as follows:
329330
shell # bdbg config congestion congestion-threshold <buffer-utilization>
330331
```
331332

333+
#### 3.7.2.3 Starting Monitoring
334+
335+
This command starts the data collection and monitoring. User may start one or more tools with this command.
336+
337+
The command syntax is as follows:
338+
339+
```
340+
shell # bdbg start { all | congestion | drops }
341+
```
342+
343+
#### 3.7.2.4 Stopping Monitoring
344+
345+
This command stops the data collection and monitoring. User may stop one or more tools with this command.
346+
347+
The command syntax is as follows:
348+
349+
```
350+
shell # bdbg stop { all | congestion | drops }
351+
```
352+
332353

333354
### 3.7.3 Show Commands
334355

@@ -529,6 +550,9 @@ Dst-Ip : 10.10.2.2
529550
Src-Port : 5656
530551
Dst-Port : 80
531552
protocol : 6
553+
Src-Mac : 00:22:44:33:55:00
554+
Dst-Mac : 00:22:44:33:55:01
555+
Vlan-Id : 2043
532556
533557
Ingress Port : Ethernet24
534558
@@ -737,7 +761,7 @@ shell # bdbg export { all | congestion | drops }
737761
The following command dumps the bdbg internal logs on to the console, useful for debugging.
738762

739763
```
740-
shell # bdbg logs
764+
shell # bdbg logs [all | congestion | drops]
741765
```
742766

743767
#### 3.7.5.3 Displaying support on actual platform
@@ -748,6 +772,22 @@ The following command prints information on specific support available on the un
748772
shell # bdbg support
749773
```
750774

775+
#### 3.7.5.4 Set log-level for internal logs
776+
777+
The following command sets a log level for the bdbg internal logs, useful for debugging.
778+
`log-level` is an integer in the range 1 to 10, where higher the number more the logs. The default value is 1 which logs only errors.
779+
780+
```
781+
shell # bdbg debug { all | congestion | drops } <log-level>
782+
```
783+
784+
#### 3.7.5.5 Dump internal parameters
785+
786+
The following command dumps current internal parameters for bdbg internal tools, useful for debugging. The specific parameters dumped depend on the tool. This is meant to be useful for developers.
787+
788+
```
789+
shell # bdbg dump { all | congestion | drops }
790+
```
751791

752792
### 3.7.6 REST API Support
753793

0 commit comments

Comments
 (0)