Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Query Mac Address
Results 1 to 3 of 3

Thread: Query Mac Address

  1. #1
    Newbie
    Join Date
    May 2006
    Location
    Turkiye
    Posts
    4

    Query Mac Address

    Hi all,
    How i can query the mac addresses on a url with bash script..

    Example output:

    .#./say_mac -m 00:30:a3:11:22:34
    Compaq Computer Corporation

  2. #2
    You would first need a database of mac addresses by manufacturer, then look it up in that database. By "database" I mean any stored information (this could be a flat file in text just as easily as an SQL query.)

  3. #3
    Newbie
    Join Date
    May 2006
    Location
    Turkiye
    Posts
    4
    Thx..
    Theres a database from IEEE..

    I solve problem, script is:

    #!/bin/bash

    a='-scan'

    if [ "$1" = $a ]
    then
    echo 'looking up system arp tables..'
    echo 'finding mac addresses'
    curl -s http://standards.ieee.org/regauth/oui/oui.txt | grep ""
    else
    curl -s http://standards.ieee.org/regauth/oui/oui.txt | grep "$1"
    fi

    byez

Similar Threads

  1. firewall query
    By ratty in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 12-14-2009, 04:38 AM
  2. set up disk query
    By jar in forum Linux - General Topics
    Replies: 5
    Last Post: 04-01-2006, 02:29 AM
  3. A SIMPLE QUERY
    By perpetualnewbie in forum Windows - General Topics
    Replies: 0
    Last Post: 12-02-2005, 10:29 AM
  4. How to Achive IP address through MAC(Ethernet) address
    By krishnacins in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 10-03-2005, 02:17 PM
  5. SQL Query
    By jimmyfo in forum Windows - General Topics
    Replies: 0
    Last Post: 06-13-2005, 02:53 PM

Bookmarks

Posting Permissions

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