Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    Brookings, South Dakota, USA
    Posts
    449
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Get MAC Address, OPsys, etc

    Hi All,
    I had developed a set of web pages which would allow a student to register for ResNet (Residence Hall internet). The "normal" procedure is as follows:

    <UL><LI> When a student first connects to the port in their room, opens their browser and their MAC address is not registered in any of the residence hall vlans, they are directed into the URT-default VLAN, where they can not "go anywhere" and their browser displays a default.htm displaying and explaining their status.
    <LI> If they haven't already contacted the Help Desk (or signed up at pre-registration) and it is before a certain cut-off date, they may register and have the charges placed on their University fees invoice.
    <LI> Up until Windows XP SP1 I had been able to run a quick vbscript in an asp page to determine the users MAC, their operating system, machine name, etc. This was done with their knowledge: the disclaimer is located on a page and when they clicked OK, the script was run and the next page showed the results as well as entered them into the db.
    <LI> If the script was unable to run, for some reason, a page with instructions (both verbal and pictoral) displayed so they could enter the necessary information themselves.
    <LI> This proved to be, if nothing else, very comical. We have had students enter data for a MAC address as:
    ma:th:ew:s2:19 (mathews 219 - dorm/room number) and yes there are too few characters;
    their user name (from who knows where) with every 2 characters separated by a colon;
    and others too numerous to mention.[/list]And there is where I stand, how do I get the students to load or otherwise run a short script, so that we can get this information, again with their knowledge and a display of the results? What is the "best" script (or scripts) to run as each scripting language has its limitations or is limited by settings in their respective operating systems?
    We have, by far and away, a majority of PC users, but we do have a few Linux machines and a more than a few Mac's. If necessary, I'll just go with the majority (PC's with Windows (95 through XP)) and let the RCC's (Residential Computing Consultants - students living in the Res Halls themselves and employed by us) touch those machines we are unable to reach.
    Thank you.

    gdr
    <IMG SRC=http://www.wopr.com/w3tuserpics/gdrezek_sig.jpg>
    "Those who dance are considered insane by those who can't hear the music" - George Carlin

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Get MAC Address, OPsys, etc

    So the problem is that your script instantiates a sensitive, system-level object like the Windows Shell? I'm not sure there is any substitute for that, unless you develop using a third party control (or maybe Java or Flash) which can use Windows API calls to retrieve the desired information.

  3. #3
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    Brookings, South Dakota, USA
    Posts
    449
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Get MAC Address, OPsys, etc

    Hi Jefferson,
    Yes, that, in a much more succinct manner, is my problem. <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>
    I'll just have to resort and try to use Java. (Actually, I'll try and find some code and modify it for my use.) <img src=/S/groan.gif border=0 alt=groan width=16 height=15>
    Thank you.

    gdr
    <IMG SRC=http://www.wopr.com/w3tuserpics/gdrezek_sig.jpg>
    "Those who dance are considered insane by those who can't hear the music" - George Carlin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •