Results 1 to 10 of 10

Thread: All new here

Threaded View

  1. #8
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: All new here

    Hi Martyn,

    I'm not sure about the Wyse Terminals, I assume they're thin clients, but if the terminal session 'looks like' a normal PC you could use something like the GetAdaptersInfo API which returns, amongst other things, the IP and MAC Addresses of devices connected to network adapters on the device. (You might not even have to use the API with the .Net languages)

    Presumably each PC / Wyse Terminal has a network adapter for local connection to the LAN, and either another for the 'phone, or a 'virtual adapter' that looks like a real one to the System (eg if connected via USB), so you could use the IP Address to identify the adapter to which the 'phone was connected (eg if the IP Address of the adapter is not the local IP Address, or 'localhost' then it must be the 'phone) or, perhaps, use the Description returned by the API

    I'm guessing here, but I suspect if you want to use CDP you'll have to log on to a Router, in which case you'd be replacing one unknown with another, and / or get so many responses that you'd not be able to distinguish one 'phone from another !

    You could try a 'proof of concept' using a WMI script to return the Adapter Information (if you have WMI enabled), there's example scripts here:

    http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

    If it gets what you want (for both a PC and Wyse Terminal Session) then the API solution should be a goer. (wouldn't recommend WMI for 'production' use as it's a bit slow and 'flakey' in some areas.)

    If you've got VB6 laying around there's an example of getting Network Adapter info here: http://vbnet.mvps.org/index.html?cod...lipaddress.htm

    For VB.Net there's something in the Codebank (http://www.vbforums.com/showthread.p...getadapterinfo) which could (excuse the pun) be adapted.

    I'd be interested to know how you get on.

    Of course, if all else fails, there's always the low-tec solution; sticky label with the MAC Address on in big letters, stuck to the 'phone

    EDIT: This is quite an undertaking for someone 'new to programming' so be prepared to burn the midnight oil and if you do run into problems, well, that's what we're here for.
    Last edited by Doogle; Jul 5th, 2011 at 01:19 AM.

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