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
Re: find out what port of what switch its the remote computer
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 :)
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?
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?
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.
Re: find out what port of what switch its the remote computer
yeah i know it isnt....:S
Re: find out what port of what switch its the remote computer
if someone has the code..plz provide...jejejejejje :D
Re: find out what port of what switch its the remote computer
Quote:
Originally Posted by
justme369
if someone has the code..plz provide...jejejejejje :D
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.
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