Reference

TnmEther(3tnm)

A Tcl package containing information about Ethernet addresses.


        
    

    
        

NAME

TnmEther - A Tcl package containing information about Ethernet addresses.


        
    


        

DESCRIPTION

The TnmEther package provides a database of IEEE 802 Ethernet addresses.

USING THE PACKAGE

The TnmEther package is loaded into a Tcl interpreter by using the following sequence of Tcl commands:

package require Tnm
package require TnmEther $tnm(version)

All the TnmEther commands live in the TnmEther namespace. You can import these commands into the current namespace by using the following Tcl command:

namespace import TnmEther::*

It is however suggested to import commands explicitely or to use the full name in scripts to avoid name clashes.

COMMANDS

TnmEther::GetVendor ether

Get the vendor for a given IEEE 802 ethernet address. The ethernet address must be in the format aa:bb:cc:dd:ee:ff. The command returns the name of the vendor or an empty string if there is no known vendor for the given ethernet address.

TnmEther::GetEthers pattern

Get the ethernet address prefixes for all vendors that match a given pattern. Regular expression style pattern matching is used when matching the pattern against vendor names. The command returns a list of ethernet address prefixes in the format aa:bb:cc.

SEE ALSO

scotty(1), Tnm(n), Tcl(n)

AUTHORS

Juergen Schoenwaelder <[email protected]>