Junos
Junos

Displaying hostnames instead of IP addresses of ERO's

07.15.08   |  
‎07-15-2008 08:22 PM

Hi talented minds of the community,

 

Is that possible to display the reverse DNS entries of the ERO's instead of their IP addresses? For example, instead of 

 

lab@re0.r0> show mpls lsp ingress name lsp-1 detail
Ingress LSP: 12 sessions

192.168.1.4
  From: 192.168.1.1, State: Up, ActiveRoute: 10, LSPname: lsp-1
  ActivePath:  (primary)
  LoadBalance: Least-fill
  Metric: 10
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Bandwidth: 17Mbps
    SmartOptimizeTimer: 180
          Include Any: COLOR1 COLOR2
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 3505)
 10.0.2.2 S 10.0.3.2 S 10.0.4.2 S
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.0.2.2 10.0.3.2 10.0.4.2
Total 1 displayed, Up 1, Down 0

lab@re0.r0>

 

 

I can have

 

 lab@re0.r0> show mpls lsp ingress name lsp-1 detail
Ingress LSP: 12 sessions

192.168.1.4
  From: 192.168.1.1, State: Up, ActiveRoute: 10, LSPname: lsp-1
  ActivePath:  (primary)
  LoadBalance: Least-fill
  Metric: 10
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Bandwidth: 17Mbps
    SmartOptimizeTimer: 180
          Include Any: COLOR1 COLOR2
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 3505)
 so-0-0-0.r1 S so-0-0-0.r2 S so-0-0-0.r3 S
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          so-0-0-0.r1 so-0-0-0.r2 so-0-0-0.r3
Total 1 displayed, Up 1, Down 0

lab@re0.r0>

 

Where so-0-0-0.r1, so-0-0-0.r2 and so-0-0-0.r3 are revserse DNS entries of the respective p-to-p interfaces.

 

thanks in advance for your help.

 

bill

3 REPLIES
Junos

Re: Displaying hostnames instead of IP addresses of ERO's

07.16.08   |  
‎07-16-2008 12:52 AM

Hi Bill

 

I have not personally tried it but have you tried to use the resolve command at the end of the line. For example:

 

lab@re0.r0> show mpls lsp ingress name lsp-1 detail | resolve

 

 

 

Highlighted
Junos

Re: Displaying hostnames instead of IP addresses of ERO's

07.16.08   |  
‎07-16-2008 01:01 AM

Thanks Anton.

 

The IP addresses after "Computed ERO" do become hostnames yet those after "Received RRO" are still IP addresses. It does help a lot.

 

Thanks again.

 

bill

Junos

Re: Displaying hostnames instead of IP addresses of ERO's

07.16.08   |  
‎07-16-2008 02:37 AM

Hi Bill

 

Could you post the output on the forum please. I would like to see the results you mentioned.

 

Thanks.