Results 1 to 10 of 10

Thread: find out what port of what switch its the remote computer

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    Unhappy 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.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    Re: find out what port of what switch its the remote computer

    bump

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    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 -

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    Question 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?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    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?

  6. #6
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    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.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    Re: find out what port of what switch its the remote computer

    yeah i know it isnt....:S

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    Re: find out what port of what switch its the remote computer

    if someone has the code..plz provide...jejejejejje

  9. #9
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: find out what port of what switch its the remote computer

    Quote Originally Posted by justme369 View Post
    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.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    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
  •  



Click Here to Expand Forum to Full Width