[alcatel-nsp] Getting a list of ifndex to port values
Bryan
deadheadblues at gmail.com
Wed Apr 6 15:03:53 EDT 2011
Thanks Diego, yeah I was sending that tlv, seems the best way to go.
Appreciate it.
-Bryan
On Wed, Apr 6, 2011 at 11:52 AM, Garcia Del Rio, Diego (Diego)
<diego.garcia_del_rio at alcatel-lucent.com> wrote:
> Hi Bryan,
>
> Im not sure which tlvs you're sending from the remote side, but this is my config (again, this is 7750 though):
>
> *B:pe1>config>port>ethernet>lldp# info
> ----------------------------------------------
> dest-mac nearest-bridge
> admin-status tx-rx
> tx-tlvs port-desc sys-name sys-desc sys-cap
> tx-mgmt-address system
> exit
> ----------------------------------------------
> *B:pe1>config>port>ethernet>lldp#
>
>
> And the remote side shows the following info:
>
>
> A:pe2>config>port# show port 3/1/2 ethernet lldp remote-info detail
> ===============================================================================
> Link Layer Discovery Protocol (LLDP) Port Information
> ===============================================================================
> Port 3/1/2 Bridge nearest-bridge Remote Peer Information
> -------------------------------------------------------------------------------
> Remote Peer Index 3 at timestamp 04/06/2011 11:49:25:
> Supported Caps : bridge router
> Enabled Caps : bridge router
> Chassis Id Subtype : 4 (macAddress)
> Chassis Id : 00:1a:f0:2c:f2:6b
> PortId Subtype : 7 (local)
> Port Id : 169967616
> Port Description : 10-Gig Ethernet
> System Name : pe1
> System Description : TiMOS-C-8.0.R7 cpm/hops ALCATEL SR 7750 Copyright (c)
> 2000-2011 Alcatel-Lucent.
> All rights reserved. All use subject to applicable
> license agreements.
> Built on Wed Jan 12 22:12:14 PST 2011 by builder in
> /rel8.0/b1/R7/panos/main
>
> Remote Peer Index 3 management addresses at time 04/06/2011 11:49:25:
> Address SubType : 1
> Address : 1.1.1.1
> Address If SubType : 2 Address If Id : 1
> Address OID : .1.3.6.1.4.1.6527.1.3.3
>
>
> Port 3/1/2 Bridge nearest-non-tpmr Remote Peer Information
> -------------------------------------------------------------------------------
> No remote peers found
>
> Port 3/1/2 Bridge nearest-customer Remote Peer Information
> -------------------------------------------------------------------------------
> No remote peers found
>
> ===============================================================================
> A:pe2>config>port#
>
>
>
> If you populate the port description with something useful, you should get some pretty detailed information. Would this help? (notice that the ifindex is still there, so that wont break).
>
>
>
>
> DIEGO GARCÍA DEL RIO
> ALCATEL-LUCENT
> IPD PRODUCT MANAGEMENT
> 777 E. Middlefield Rd
> Mountain View CA 94043
> Mobile: +1 (415) 439-9420
> OnNet: 2852-2726
> diego.garcia_del_rio at alcatel-lucent.com
>
>
> -----Original Message-----
> From: alcatel-nsp-bounces at puck.nether.net [mailto:alcatel-nsp-bounces at puck.nether.net] On Behalf Of Bryan
> Sent: Tuesday, 5 April 2011 3:00 PM
> To: Andy Vance
> Cc: alcatel-nsp at puck.nether.net
> Subject: Re: [alcatel-nsp] Getting a list of ifndex to port values
>
> Thanks Andy, I could try that. I just was looking for something in the
> router, something as useful as "show cdp neighbor" in the Cisco world,
> lldp leaves me wanting more.
>
> On Tue, Apr 5, 2011 at 2:53 PM, Andy Vance <andy.vance at 360.net> wrote:
>> Ahh, my apologies Bryan, I just assumed a 7750/7450 environment and that was a bad assumption on my part it appears.
>>
>> Can you snmpwalk the remote device your attached to and see what ifdescr belongs to 69369856?
>>
>> gonzo:avance$ snmpwalk -v2c -c <community> <ip> interfaces | grep 71532544
>> IF-MIB::ifIndex.71532544 = INTEGER: 71532544
>> IF-MIB::ifDescr.71532544 = STRING: 2/2/7, OC-3 SONET/SDH
>> IF-MIB::ifType.71532544 = INTEGER: sonet(39)
>> IF-MIB::ifMtu.71532544 = INTEGER: 9208
>> IF-MIB::ifSpeed.71532544 = Gauge32: 155520000
>>
>> I don't have access to a SAR to assist any more than that I'm afraid.... Maybe someone else that uses them knows how to get it out of the router itself.
>>
>> Cheers,
>> Andy
>>
>> -----Original Message-----
>> From: Bryan [mailto:deadheadblues at gmail.com]
>> Sent: Tuesday, April 05, 2011 2:46 PM
>> To: Andy Vance
>> Cc: alcatel-nsp at puck.nether.net
>> Subject: Re: [alcatel-nsp] Getting a list of ifndex to port values
>>
>> Thanks Andy, I ran that command, but the output doesn't resemble what
>> I see here. For example, notice the value 69369856
>>
>> *A:7705# show port 1/1/7 ethernet lldp remote-info
>> ===============================================================================
>> Link Layer Discovery Protocol (LLDP) Port Information
>> ===============================================================================
>> Port 1/1/7 Bridge nearest-bridge Remote Peer Information
>> -------------------------------------------------------------------------------
>> Remote Peer Index 1 at timestamp 04/05/2011 20:51:18:
>> Supported Caps : (Not Specified)
>> Enabled Caps : (Not Specified)
>> Chassis Id Subtype : 4 (macAddress)
>> Chassis Id : 00:16:4d:aa:14:b6
>> PortId Subtype : 7 (local)
>> Port Id : 69369856
>> Port Description : SAR-82 SAP
>> System Name : msc02-ess7-01
>> System Description : n/a
>>
>> On the neighbor I see this value here:
>>
>> *A:msc02-ess7-01# show port 2/1/5 ethernet detail
>>
>> ===============================================================================
>> Ethernet Interface
>> ===============================================================================
>> Description : SAR-82 SAP
>> Interface : 2/1/5 Oper Speed : 1 Gbps
>> Link-level : Ethernet Config Speed : 1 Gbps
>> Admin State : up Oper Duplex : full
>> Oper State : up Config Duplex : full
>> Physical Link : Yes MTU : 9212
>> Single Fiber Mode : No
>> IfIndex : 69369856
>>
>>
>>
>> On Tue, Apr 5, 2011 at 2:17 PM, Andy Vance <andy.vance at 360.net> wrote:
>>> Bryan,
>>>
>>> I assume knowing the SAP would work as well?
>>>
>>> show router interface detail | match "If Index" post-lines 2
>>>
>>> show get you the if index and the SAP for each ifindex in a list type output from the router.
>>>
>>> Honestly, I usually use snmpwalk for this type of info but the above can get it out of the router.
>>>
>>> Hope this helps...
>>>
>>> Cheers,
>>>
>>> Andy Vance, IP Engineer
>>> 360networks
>>> 2101 4th Ave., Suite 2000
>>> Seattle, WA 98121
>>> 253.307.7546 (c)
>>> andy.vance at 360networks.com
>>> www.360networks.com
>>>
>>>
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: alcatel-nsp-bounces at puck.nether.net [mailto:alcatel-nsp-bounces at puck.nether.net] On Behalf Of Bryan
>>> Sent: Tuesday, April 05, 2011 2:07 PM
>>> To: alcatel-nsp at puck.nether.net
>>> Subject: [alcatel-nsp] Getting a list of ifndex to port values
>>>
>>> Does anyone know a way to see a list of all the ifindex values and the
>>> corresponding port number? I am testing some lldp configurations and
>>> the port number is advertised as the ifindex.
>>>
>>> Thanks,
>>>
>>> -Bryan
>>> _______________________________________________
>>> alcatel-nsp mailing list
>>> alcatel-nsp at puck.nether.net
>>> https://puck.nether.net/mailman/listinfo/alcatel-nsp
>>>
>>
>
> _______________________________________________
> alcatel-nsp mailing list
> alcatel-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/alcatel-nsp
>
More information about the alcatel-nsp
mailing list