|
-
May 25th, 2010, 02:18 PM
#1
Thread Starter
Addicted Member
find out what port of what switch its the remote computer
ok i got a hard question
I have diferent computers, lets say 200 cps with all known mac address.
i got 3 switches with 24 ports each.
i want to know if i can be able to know the port No. and switch of a given computer given the mac address...
some computer arent in the domain.
how could i start puttin this into code
all help will be extremely appreciated
Last edited by justme369; May 25th, 2010 at 02:23 PM.
-
May 25th, 2010, 02:53 PM
#2
Thread Starter
Addicted Member
Re: find out what port of what switch its the remote computer
-
May 25th, 2010, 04:08 PM
#3
Re: find out what port of what switch its the remote computer
Unless you have managed switches, there's not a simple way to find out. Even with managed switches, you will need to redirect input/output from a command prompt windows and do a telnet session to the switches and query for a mac address. You then have to parse back the answer from the switches.
It's probably faster if you just have one person at the PC end and another at the switch end. Have the person at the PC end unplug the network cable from the PC and the other person watch the lights on the switches to see which one goes off
Last edited by stanav; May 25th, 2010 at 04:12 PM.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
May 25th, 2010, 04:30 PM
#4
Thread Starter
Addicted Member
Re: find out what port of what switch its the remote computer
theres a lot of switches here..thats why i rather have the port and switch....
so as i read so far and you have confirm is that
i need to have the mac, then do telnet, then get the info from the telnet correct?
what u said "input/output from a command prompt windows" whats this means?
-
May 25th, 2010, 04:31 PM
#5
Thread Starter
Addicted Member
Re: find out what port of what switch its the remote computer
also will it work for any given switch of for diferent switch like cisco,hp,steren, i got to do diferent commands?
-
May 25th, 2010, 05:04 PM
#6
Re: find out what port of what switch its the remote computer
What you are looking for is SNMP for managed switches.
Here is everything you need to know to write a telnet client
RFC 854
RFC 855
or use a library . Unless you find someone that has used the library you pick, you are going to be on your own for problems with the library.
What you are trying to do seems simple, but it isn't.
-
May 25th, 2010, 05:12 PM
#7
Thread Starter
Addicted Member
Re: find out what port of what switch its the remote computer
yeah i know it isnt....:S
-
May 25th, 2010, 05:14 PM
#8
Thread Starter
Addicted Member
Re: find out what port of what switch its the remote computer
if someone has the code..plz provide...jejejejejje
-
May 25th, 2010, 05:20 PM
#9
Re: find out what port of what switch its the remote computer
 Originally Posted by justme369
if someone has the code..plz provide...jejejejejje 
The code for what? If you want telnet, you should find plenty to entertain you by clicking on the Library link in my previous post.
-
Jun 29th, 2010, 03:18 PM
#10
Thread Starter
Addicted Member
Re: find out what port of what switch its the remote computer
ok so i got the telnet ...now how i do the snmp....the administrator of my network told me that telnet was not safe..that i should do snmp..so wat i do
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|