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

add portchannel support in snmp #58

Open
lguohan opened this issue Mar 15, 2017 · 2 comments
Open

add portchannel support in snmp #58

lguohan opened this issue Mar 15, 2017 · 2 comments
Assignees

Comments

@lguohan
Copy link
Contributor

lguohan commented Mar 15, 2017

TASK [test : Check for missing interfaces in SNMP] *****************************
Wednesday 15 March 2017 05:54:42 +0000 (0:00:00.137) 0:01:55.295 *******
failed: [str-s6000-acs-7] => (item=PortChannel01) => {"failed": true, "item": "PortChannel01", "msg": "Minigraph interface PortChannel01 not in SNMP interfaces"}
failed: [str-s6000-acs-7] => (item=PortChannel01) => {"failed": true, "item": "PortChannel01", "msg": "Minigraph interface PortChannel01 not in SNMP interfaces"}
failed: [str-s6000-acs-7] => (item=PortChannel02) => {"failed": true, "item": "PortChannel02", "msg": "Minigraph interface PortChannel02 not in SNMP interfaces"}
failed: [str-s6000-acs-7] => (item=PortChannel02) => {"failed": true, "item": "PortChannel02", "msg": "Minigraph interface PortChannel02 not in SNMP interfaces"}
failed: [str-s6000-acs-7] => (item=PortChannel03) => {"failed": true, "item": "PortChannel03", "msg": "Minigraph interface PortChannel03 not in SNMP interfaces"}
failed: [str-s6000-acs-7] => (item=PortChannel03) => {"failed": true, "item": "PortChannel03", "msg": "Minigraph interface PortChannel03 not in SNMP interfaces"}
failed: [str-s6000-acs-7] => (item=PortChannel04) => {"failed": true, "item": "PortChannel04", "msg": "Minigraph interface PortChannel04 not in SNMP interfaces"}
failed: [str-s6000-acs-7] => (item=PortChannel04) => {"failed": true, "item": "PortChannel04", "msg": "Minigraph interface PortChannel04 not in SNMP interfaces"}

@qiluo-msft
Copy link
Contributor

Requirement:

SNMP subagent implementation should treat all the available PortChannels similar to raw interfaces. Current implementation misses all PortChannels . Related OIDs:

  • RFC1213: 1.3.6.1.2.1.2
  • RFC2863: 1.3.6.1.2.1.31.1

How to assign IfIndex to PortChannel?

PortChannel<N> --> 1000 + N

How to get a list of available PortChannels and the components of every PortChannel?

127.0.0.1:6379> keys LAG*
1) "LAG_TABLE:PortChannel01"
2) "LAG_TABLE:PortChannel04"
3) "LAG_TABLE:PortChannel03:Ethernet120"
4) "LAG_TABLE:PortChannel03"
5) "LAG_TABLE:PortChannel02:Ethernet116"
6) "LAG_TABLE:PortChannel01:Ethernet112"
7) "LAG_TABLE:PortChannel02"
8) "LAG_TABLE:PortChannel04:Ethernet124"
9) "LAG_TABLE:PortChannel03:Ethernet20" (If there are multiple raw interfaces in a PortChannel, there are multiple keys with the same prefix, and one per interface)

How to get the status of one PortChannel?

127.0.0.1:6379> hgetall  "LAG_TABLE:PortChannel03"
1) "admin_status"
2) "up"
3) "oper_status"
4) "down"
5) "mtu"
6) "1500"

@stcheng
Copy link
Contributor

stcheng commented Mar 30, 2017

the output is updated according to the code change: sonic-net/sonic-swss#187

127.0.0.1:6379> keys LAG*                               
 1) "LAG_MEMBER_TABLE:PortChannel56:Ethernet56"         
 2) "LAG_TABLE:PortChannel40"                           
 3) "LAG_MEMBER_TABLE:PortChannel0:Ethernet4"           
 4) "LAG_MEMBER_TABLE:PortChannel32:Ethernet36"         
 5) "LAG_MEMBER_TABLE:PortChannel8:Ethernet8"           
 6) "LAG_TABLE:PortChannel32"                           
 7) "LAG_TABLE:PortChannel16"                           
 8) "LAG_MEMBER_TABLE:PortChannel8:Ethernet12"          
 9) "LAG_MEMBER_TABLE:PortChannel48:Ethernet52"         
10) "LAG_MEMBER_TABLE:PortChannel24:Ethernet28"         
11) "LAG_MEMBER_TABLE:PortChannel16:Ethernet16"         
12) "LAG_TABLE:PortChannel0"                            
13) "LAG_MEMBER_TABLE:PortChannel0:Ethernet0"           
14) "LAG_MEMBER_TABLE:PortChannel40:Ethernet40"         
15) "LAG_MEMBER_TABLE:PortChannel48:Ethernet48"         
16) "LAG_MEMBER_TABLE:PortChannel40:Ethernet44"         
17) "LAG_MEMBER_TABLE:PortChannel32:Ethernet32"         
18) "LAG_TABLE:PortChannel48"                           
19) "LAG_TABLE:PortChannel24"                           
20) "LAG_MEMBER_TABLE:PortChannel56:Ethernet60"         
21) "LAG_MEMBER_TABLE:PortChannel24:Ethernet24"         
22) "LAG_TABLE:PortChannel56"                           
23) "LAG_MEMBER_TABLE:PortChannel16:Ethernet20"         
24) "LAG_TABLE:PortChannel8"

michaelli10 pushed a commit to michaelli10/SONiC that referenced this issue May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants