Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

Getting isis hostname and router-id

‎04-09-2019 01:48 AM

Hi Experts.. I'm getting the info by executing 'show isis hostname'. I would like to know if there is any possibilities to get list of hostname and router-id with any other command line?

For example Im trying below but it return nothing. 

show isis database extensive | match "IP router id" | match "Hostname"

 

Any simple python script to extract those info would be helpful also. Thank you.

 

2 REPLIES 2
Junos Automation (Scripting)
Solution
Accepted by topic author jar
‎04-09-2019 05:36 PM

Re: Getting isis hostname and router-id

‎04-09-2019 04:00 AM

Hi,

 

You might try as following:

show isis database extensive | match "Hostname|IP router id"

 

Regards,

Roman

Junos Automation (Scripting)

Re: Getting isis hostname and router-id

‎04-09-2019 05:36 PM

Hi sir, Yup..as what I requested... thank you sir.