Skip to content

Instantly share code, notes, and snippets.

Created June 30, 2015 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ba21cad4bf4e99a7c959 to your computer and use it in GitHub Desktop.
Save anonymous/ba21cad4bf4e99a7c959 to your computer and use it in GitHub Desktop.
switch# show port-channel summary
Flags
------------------------ ---------------------------- -------------------------
a - LACP Active p - LACP Passive * - static fallback
F - Fallback enabled f - Fallback configured ^ - individual fallback
U - In Use D - Down
+ - In-Sync - - Out-of-Sync i - incompatible with agg
P - bundled in Po s - suspended G - Aggregable
I - Individual S - ShortTimeout w - wait for agg
Number of channels in use: 26
Number of aggregators:26
Port-Channel Protocol Ports
------------ --------- --------------------------------------------------------
Po1(U) LACP(a) Et3/36/1(PG+)
Po2(U) LACP(a) Et3/35/1(PG+)
Po3(U) LACP(a) Et3/34/1(PG+)
Po4(U) LACP(a) Et3/33/1(PG+)
Po5(U) LACP(a) Et3/32/1(PG+)
Po6(U) LACP(a) Et3/31/1(PG+)
Po7(U) LACP(a) Et3/30/1(PG+)
Po8(U) LACP(a) Et3/29/1(PG+)
Po9(U) LACP(a) Et3/28/1(PG+)
Po10(U) LACP(a) Et3/27/1(PG+)
Po11(U) LACP(a) Et3/26/1(PG+)
Po12(U) LACP(a) Et3/25/1(PG+)
Po13(U) LACP(a) Et3/24/1(PG+)
Po14(U) LACP(a) Et3/23/1(PG+)
Po15(U) LACP(a) Et3/22/1(PG+)
Po16(U) LACP(a) Et3/21/1(PG+)
Po17(U) LACP(a) Et3/20/1(PG+)
Po18(U) LACP(a) Et3/19/1(PG+)
Po19(U) LACP(a) Et3/18/1(PG+)
Po20(U) LACP(a) Et3/17/1(PG+)
Po21(U) LACP(a) Et3/16/1(PG+)
Po22(U) LACP(a) Et3/15/1(PG+)
Po23(U) LACP(a) Et3/14/1(PG+)
Po24(U) LACP(a) Et3/13/1(PG+)
Po25(D) LACP(a) Et3/12/1(G-)
Po26(D) LACP(a) Et3/11/1(G-)
Po101(U) LACP(a) Et3/1/1(PSG+) Et3/1/2(PSG+) Et3/1/3(PSG+) Et3/1/4(PSG+)
Et3/3/1(PSG+) Et3/3/2(PSG+) Et3/3/3(PSG+) Et3/3/4(PSG+)
Et3/5/1(PSG+) Et3/5/2(PSG+) Et3/5/3(PSG+) Et3/5/4(PSG+)
Et3/7/1(PSG+) Et3/7/2(PSG+) Et3/7/3(PSG+) Et3/7/4(PSG+)
Et3/9/1(PSG+) Et3/9/2(PSG+) Et3/9/3(PSG+)
Po102(U) LACP(a) Et3/2/1(PSG+) Et3/2/2(PSG+) Et3/2/3(PSG+) Et3/2/4(PSG+)
Et3/4/1(PSG+) Et3/4/2(PSG+) Et3/4/3(PSG+) Et3/4/4(PSG+)
Et3/6/1(PSG+) Et3/6/2(PSG+) Et3/6/3(PSG+) Et3/6/4(PSG+)
Et3/8/1(PSG+) Et3/8/2(PSG+) Et3/8/3(PSG+) Et3/8/4(PSG+)
Et3/10/1(PSG+) Et3/10/2(PSG+) Et3/10/3(PSG+)
@jtdub
Copy link

jtdub commented Jul 9, 2015

https://github.com/jtdub/po_abstract

$ python port_channel_summary.py 
{0: {'interface': 'Et3/36/1(PG+)'}, 'channel_name': 'Po1(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/35/1(PG+)'}, 'channel_name': 'Po2(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/34/1(PG+)'}, 'channel_name': 'Po3(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/33/1(PG+)'}, 'channel_name': 'Po4(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/32/1(PG+)'}, 'channel_name': 'Po5(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/31/1(PG+)'}, 'channel_name': 'Po6(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/30/1(PG+)'}, 'channel_name': 'Po7(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/29/1(PG+)'}, 'channel_name': 'Po8(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/28/1(PG+)'}, 'channel_name': 'Po9(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/27/1(PG+)'}, 'channel_name': 'Po10(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/26/1(PG+)'}, 'channel_name': 'Po11(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/25/1(PG+)'}, 'channel_name': 'Po12(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/24/1(PG+)'}, 'channel_name': 'Po13(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/23/1(PG+)'}, 'channel_name': 'Po14(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/22/1(PG+)'}, 'channel_name': 'Po15(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/21/1(PG+)'}, 'channel_name': 'Po16(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/20/1(PG+)'}, 'channel_name': 'Po17(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/19/1(PG+)'}, 'channel_name': 'Po18(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/18/1(PG+)'}, 'channel_name': 'Po19(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/17/1(PG+)'}, 'channel_name': 'Po20(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/16/1(PG+)'}, 'channel_name': 'Po21(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/15/1(PG+)'}, 'channel_name': 'Po22(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/14/1(PG+)'}, 'channel_name': 'Po23(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/13/1(PG+)'}, 'channel_name': 'Po24(U)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/12/1(G-)'}, 'channel_name': 'Po25(D)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/11/1(G-)'}, 'channel_name': 'Po26(D)', 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/1/1(PSG+)'}, 1: {'interface': 'Et3/1/2(PSG+)'}, 2: {'interface': 'Et3/1/3(PSG+)'}, 3: {'interface': 'Et3/1/4(PSG+)'}, 4: {'interface': 'Et3/3/1(PSG+)'}, 5: {'interface': 'Et3/3/2(PSG+)'}, 6: {'interface': 'Et3/3/3(PSG+)'}, 7: {'interface': 'Et3/3/4(PSG+)'}, 8: {'interface': 'Et3/5/1(PSG+)'}, 9: {'interface': 'Et3/5/2(PSG+)'}, 10: {'interface': 'Et3/5/3(PSG+)'}, 11: {'interface': 'Et3/5/4(PSG+)'}, 12: {'interface': 'Et3/7/1(PSG+)'}, 13: {'interface': 'Et3/7/2(PSG+)'}, 14: {'interface': 'Et3/7/3(PSG+)'}, 15: {'interface': 'Et3/7/4(PSG+)'}, 16: {'interface': 'Et3/9/1(PSG+)'}, 'channel_name': 'Po101(U)', 18: {'interface': 'Et3/9/3(PSG+)'}, 17: {'interface': 'Et3/9/2(PSG+)'}, 'channel_proto': 'LACP(a)'}
{0: {'interface': 'Et3/2/1(PSG+)'}, 1: {'interface': 'Et3/2/2(PSG+)'}, 2: {'interface': 'Et3/2/3(PSG+)'}, 3: {'interface': 'Et3/2/4(PSG+)'}, 4: {'interface': 'Et3/4/1(PSG+)'}, 5: {'interface': 'Et3/4/2(PSG+)'}, 6: {'interface': 'Et3/4/3(PSG+)'}, 7: {'interface': 'Et3/4/4(PSG+)'}, 8: {'interface': 'Et3/6/1(PSG+)'}, 9: {'interface': 'Et3/6/2(PSG+)'}, 10: {'interface': 'Et3/6/3(PSG+)'}, 11: {'interface': 'Et3/6/4(PSG+)'}, 12: {'interface': 'Et3/8/1(PSG+)'}, 13: {'interface': 'Et3/8/2(PSG+)'}, 14: {'interface': 'Et3/8/3(PSG+)'}, 15: {'interface': 'Et3/8/4(PSG+)'}, 16: {'interface': 'Et3/10/1(PSG+)'}, 'channel_name': 'Po102(U)', 18: {'interface': 'Et3/10/3(PSG+)'}, 17: {'interface': 'Et3/10/2(PSG+)'}, 'channel_proto': 'LACP(a)'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment