Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Script to verify Vlan on HPUX

Posted on 2009-04-01
4
Medium Priority
?
775 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 1000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

885 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