Solved

Script to verify Vlan on HPUX

Posted on 2009-04-01
4
760 Views
Last Modified: 2013-12-21
I need a script to verify the vlan thru linkloop of the interfaces of each servers in the vlan.
We are recabling 100 servers and this will be our check to verify that all the cables and vlans are correct after the recabling.

I need that script is smart enough to verify the central server so that there will be a central server identified to linkloop the mac address of all the servers in that same vlan.
0
Comment
Question by:oo07
  • 3
4 Comments
 
LVL 3

Accepted Solution

by:
Craig Sharp earned 500 total points
ID: 24058813
Good morning,

I do not have a script but you could use something very simple with a couple of commands.

Use lanscan to get the hardware address of the distant station (link address) ie:
0/5/1/0/4/0 0x001A4BF56734 2 UP lan2 snap2 1 ETHER Yes 119

then from your local station:
linkloop -i 0x001A4BF56734

This will test the actual physical connectivity between stations and then ping your subnet gateway and then outside the gateway.


0
 

Author Comment

by:oo07
ID: 24060340
1. How will I know and verify that the server1 is not connected anymore from the original Vlan
2. I know the commands already but I need a script also to make my tasks faster in checking 100 servers vlans instead of typing one by one.
3. Two servers can linkloop each other but we cannot see their MACs into the switches. How will I know if they are in different vlans, or if htey are using hubs in between or they are just connected with crossover cables?


0
 

Author Comment

by:oo07
ID: 24063548
Any updates on this please?
0
 

Author Comment

by:oo07
ID: 24067735
Hi ,
tfewster had a very good and related suggestion from a ticket I opened before. tfewster, maybe you can help us please since we need this script as soon as possible. Thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

747 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

8 Experts available now in Live!

Get 1:1 Help Now