Solved

How can I run this command across multiple Juniper interfaces?

Posted on 2015-02-09
6
147 Views
Last Modified: 2015-03-12
I am trying to find all the Avaya VOIP phone serial numbers on our network.  All the phones are 1608i & 1616 models.  All our network devices are Juniper.  We have EX2200 & EX3200 switches and SRX Firewalls.

The following command works, but it would be too time intensive to run this one command for each of 48 interfaces on 70 network devices.  Is there an easier way?  Or some way to get one command to list out all my serial numbers?

> show lldp neighbors interface ge-0/0/36.0 | match Serial
0
Comment
Question by:AvatharV
6 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 40599642
Sorry, not familiar with your devices and you don't specify how you're interfacing with them.  If it's via Telnet or SSH you can use a scripting tool - the Telnet Scripting Tool (TST) is free (google it) and there's another tool that supports Telnet and SSH but is not free.  (A colleague of mine likes to boast how he had something like 50 different Cisco routers to update and was given 3 months to complete the job, but used the TST to get it done in about half an hour.
0
 
LVL 1

Expert Comment

by:charles abtrim
ID: 40599761
One option is to use Juniper Virtual Chassis which will allow you to do this.
0
 

Author Comment

by:AvatharV
ID: 40599771
We SSH directly into each device.  

I don't believe I can run any scripts directly on the devices (much like when you console into a Cisco switch).  But, Juniper devices are linux based (underlying OS), so it might be possible. I am just not aware of how.

We use SecureCRT and there is a script recording feature that seems to partially work.  It only wants to accept 12 lines at a time.. which means I would have to run 4 different partial scripts.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:AvatharV
ID: 40599808
How can this be accomplished with Virtual Chassis?  

As far as I am aware, Virtual Chassis is only on our EX4200s, which is 2 of 70 devices.
0
 
LVL 1

Expert Comment

by:charles abtrim
ID: 40599834
I am pretty sure its a feature available on the ex2200 now,  In the beginning of the EX  I would agree however a lot has changed since then.  Here's a How-to on ex2200 vc.  I am not sure if there is an option for multiple chassis in on VC though.  4200 3200 2200.
0
 
LVL 32

Accepted Solution

by:
Kamran Arshad earned 500 total points
ID: 40602829
Hi,

Why don't you use a Network Discovery application which shows you the serial numbers of devices as well. Also using SNMP browser you can query using SNMP Walk.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When replacing some switches recently I started playing with the idea of having admins authenticate with their domain accounts instead of having local users on all switches all over the place. Since I allready had an w2k8R2 NPS running for my acc…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now