Skip to content

Commit

Permalink
Enable queue stats counter with interval of 10 seconds
Browse files Browse the repository at this point in the history
We wanted the queue stats to be enabled with high interval,
also this is to fix below errors in snmp agent:

May 16 07:44:14.812487 lnos-x1-a-asw03 ERR snmp-subagent [sonic_ax_impl]
ERROR: No queue stat counters found in the Counter DB. SyncD database is incoherent.

May 16 07:44:14.812981 lnos-x1-a-asw03 ERR snmp-subagent [ax_interface]
ERROR: MIBUpdater.start() caught an unexpected exception during update_data()sonic-net#12
Traceback (most recent call last):sonic-net#12
File "/usr/local/lib/python3.6/dist-packages/ax_interface/mib.py", line 40,
in start#012    self.reinit_data()sonic-net#12
File "/usr/local/lib/python3.6/dist-packages/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py",
line 79, in reinit_data#012
mibs.init_sync_d_queue_tables(self.db_conn)sonic-net#12
File "/usr/local/lib/python3.6/dist-packages/sonic_ax_impl/mibs/__init__.py",
line 220, in init_sync_d_queue_tables#012
raise RuntimeError('The queue_stat_map is not defined')sonic-net#12
RuntimeError: The queue_stat_map is not defined
  • Loading branch information
zhenggen-xu committed May 19, 2018
1 parent 0591513 commit c51776e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ extern CrmOrch *gCrmOrch;
#define DEFAULT_VLAN_ID 1
#define PORT_FLEX_STAT_COUNTER_POLL_MSECS "1000"

/* Use interval 0 to disable queue polling thread */
#define QUEUE_FLEX_STAT_COUNTER_POLL_MSECS "0"
/* queue polling thread interval is set to 10 seconds */
#define QUEUE_FLEX_STAT_COUNTER_POLL_MSECS "10000"
#define PORT_STAT_COUNTER_FLEX_COUNTER_GROUP "PORT_STAT_COUNTER"
#define QUEUE_STAT_COUNTER_FLEX_COUNTER_GROUP "QUEUE_STAT_COUNTER"

Expand Down

0 comments on commit c51776e

Please sign in to comment.