nettool(3tcl) | nettool | nettool(3tcl) |
nettool - Tools for networked applications
package require Tcl 8.5
package require nettool ?0.5.2?
package require twapi 3.1
package require ip 0.1
package require platform 0.1
::cat filename
::nettool::allocate_port startingport
::nettool::arp_table
::nettool::broadcast_list
::nettool::claim_port port ?protocol?
::nettool::cpuinfo args
::nettool::find_port startingport
::nettool::hwid_list
::nettool::ip_list
::nettool::mac_list
::nettool::network_list
::nettool::port_busy port
::nettool::release_port port ?protocol?
::nettool::status
::nettool::user_data_root appname
The nettool package consists of a Pure-tcl set of tools to perform common network functions that would normally require different packages or calls to exec, in a standard Tcl interface. At present nettool has reference implementations for the following operating systems: Windows, MacOSX, and Linux (debian).
The exact contents are platform specific.
For Linux, information is drawn from /proc/cpuinfo and /proc/meminfo.
For MacOSX, information is drawn from sysctl
For Windows, information is draw from TWAPI.
If arguments are given, the result with be a key/value list limited to the fields requested.
Canonical fields for all platforms:
This command uses a built-in database of known ports to avoid returning a port which is in common use. (For example: http (80))
For MacOSX, the motherboard serial number and macids for all network devices is returned.
For Windows, the volume serial number of C and macids for all network devices is returned.
For Linux, macids for all network devices is returned.
Common fields include:
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category odie of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation.
When proposing code changes, please provide unified diffs, i.e the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.
nettool, odie
System
Copyright (c) 2015-2018 Sean Woods <yoda@etoyoc.com>
0.5.2 | tcllib |