Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce verbose log about mgmt ports #172

Open
qiluo-msft opened this issue Oct 27, 2020 · 0 comments
Open

Reduce verbose log about mgmt ports #172

qiluo-msft opened this issue Oct 27, 2020 · 0 comments

Comments

@qiluo-msft
Copy link
Contributor

Description

Steps to reproduce the issue:

  1. Running the SONiC image on a M0 switch
  2. Observe the /var/log/syslog file

Describe the results you received:

2020-10-24 12:54:22.6907595 <28>Oct 24 12:54:22 sonic_m0 snmp#snmp-subagent [sonic_ax_impl] WARNING: Invalid management IP
2020-10-24 12:54:22.6917967 <28>Oct 24 12:54:22 sonic_m0 snmp#snmp-subagent [sonic_ax_impl] WARNING: Invalid mgmt IP
2020-10-24 12:54:22.6919091 <28>Oct 24 12:54:22 sonic_m0 snmp#snmp-subagent [sonic_ax_impl] WARNING: Invalid management IP
2020-10-24 12:54:56.4343259 <28>Oct 24 12:54:56 sonic_m0 snmp#snmp-subagent [sonic_ax_impl] WARNING: No managment ports found in b'MGMT_PORT|'

Describe the results you expected:
I see multiple issues in the syslog.

  1. M0 by design has no management ports locally, so the ConfigDB has no MGMT_PORT table. We don't need to warn on this
  2. LLDP message from neighbor contains empty management port on their side. No need to warn on this

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

Any 201811 image and future

**Attach debug file `sudo generate_dump`:**

See above snippet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant