TnmEther3tnm
A tcl package containing information about ethernet addresses.
Overview
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.
Releases
Unchanged in 2 releases since Debian 2.2 (Potato).