Tnm extension for TCL network management session log file
Thursday, August 28, 2008
% Tnm::snmp generator
invalid command name "Tnm::snmp"
% package require Tnm 3.0.0
3.0.0
% namespace import Tnm::snmp
% Tnm:snmp generator
invalid command name "Tnm:snmp"
% Tnm::snmp generator
snmp0
% Tnm:snmp man
invalid command name "Tnm:snmp"
% Tnm::snmp man
bad option "man": must be alias, delta, expand, find, generator, info, listener, notifier, oid, responder, type, value, wait, or watch
% namespace import Tnm::mib
% Tnm::mib man
bad option "man": must be access, children, compare, defval, description, displayhint, enums, exists, file, format, index, info, label, length, load, macro, member, module, name, oid, pack, parent, range, scan, size, split, status, subtree, syntax, type, unpack, variables, or walk
% namspace import Tnm::icmp
invalid command name "namspace"
% namespace import Tnm::icmp
% Tnm::icmp man
bad option "man": must be echo, mask, timestamp, trace, or ttl
% namespace import Tnm::dns
% Tnm::dns
wrong # args: should be "Tnm::dns ?-timeout t? ?-retries r? ?-server hosts? option arg"
% Tnm::dns man
wrong # args: should be "Tnm::dns ?-timeout t? ?-retries r? ?-server hosts? option arg"
% namespace import Tnm::udp
% Tnm::udp man
bad option "man": should be bind, close, connect, info, open, receive, or send
% namespace import Tnm::syslog
% Tnm::syslog man
wrong # args: should be "Tnm::syslog ?-ident string? level message"
% namespace import Tnm::ntp
% Tnm::ntp na
wrong # args: should be "Tnm::ntp ?-timeout t? ?-retries r? host arrayName"
% namespace import Tnm::netdb
% Tnm::netdb man
bad option "man": must be hosts, ip, networks, protocols, services, or sunrpcs
% namespace import Tnm::sunrpc
% Tnm::sunrpc man
bad option "man": must be ether, exports, info, mount, pcnfs, probe, or stat
% namespace import Tnm::map
% Tnm::map man
bad option "man": must be create, find, or info
% namespace import Tnm::job
% Tnm::job na
bad option "na": must be create, current, find, schedule, or wait
Tnm::snmp
% Tnm::snmp alias
localhost mcasttrap
% Tnm::snmp info
wrong # args: should be "Tnm::snmp info subject ?pattern?"
% Tnm::snmp delta
wrong # args: should be "Tnm::snmp delta varBindList1 varBindList2"
% Tnm::snmp expand
wrong # args: should be "Tnm::snmp expand varBindList"
% Tnm::snmp find
snmp0
% Tnmp::snmp notifier
invalid command name "Tnmp::snmp"
% Tnm::snmp notifier
snmp1
% Tnm::snmp listener
snmp2
% tnm::snmp oid
invalid command name "tnm::snmp"
% Tnm::snmp oid
wrong # args: should be "Tnm::snmp oid varBindList ?index?"
% Tnm::snmp value
wrong # args: should be "Tnm::snmp value varBindList ?index?"
% Tnm::snmp responder
snmp3
% Tnm::snmp type
wrong # args: should be "Tnm::snmp type varBindList ?index?"
% Tnm::snmp find
snmp3 snmp2 snmp1 snmp0
% Tnm::snmp watch
0
% Tnm::snmp wait
%
% Tnm::mib access
wrong # args: should be "Tnm::mib access node ?varName?"
% Tnm::children
invalid command name "Tnm::children"
% Tnm::mib children
wrong # args: should be "Tnm::mib children node ?varName?"
% Tnm::mib compare
wrong # args: should be "Tnm::mib compare oid1 oid2"
% Tnm::mib defval
wrong # args: should be "Tnm::mib defval node ?varName?"
% Tnm::mib description
wrong # args: should be "Tnm::mib description nodeOrType ?varName?"
% Tnm::mib diplayhint
bad option "diplayhint": must be access, children, compare, defval, description, displayhint, enums, exists, file, format, index, info, label, length, load, macro, member, module, name, oid, pack, parent, range, scan, size, split, status, subtree, syntax, type, unpack, variables, or walk
% Tnm::mib displayhint
wrong # args: should be "Tnm::mib displayhint type ?varName?"
% tnm::mib enums
invalid command name "tnm::mib"
% Tnm::mib enums
wrong # args: should be "Tnm::mib enums type ?varName?"
% Tnm::mib exists
wrong # args: should be "Tnm::mib exists nodeOrType"
% Tnm::mib file
wrong # args: should be "Tnm::mib file nodeOrType"
% Tnm::mib format
wrong # args: should be "Tnm::mib format nodeOrType value"
% Tnm::mib index
wrong # args: should be "Tnm::mib index node"
% Tnm::mib index 10.11.0.1
unknown MIB node "10.11.0.1"
% Tnm::mib info
wrong # args: should be "Tnm::mib info subject ?pattern?"
% Tnm::mib label
wrong # args: should be "Tnm::mib label nodeOrType"
% Tmn::mib load
invalid command name "Tmn::mib"
% Tnm::mib load
wrong # args: should be "Tnm::mib load file"
% Tnm::mib load file
couldn't open MIB file "file": no such file or directory
% Tnm::mib macro
wrong # args: should be "Tnm::mib macro nodeOrType"
% Tnm::mib member
wrong # args: should be "Tnm::mib member node"
% Tnm::mib module
wrong # args: should be "Tnm::mib module nodeOrType"
% Tnm::mib name
wrong # args: should be "Tnm::mib name node"
% Tnm::mib name 10.11.0.1
unknown MIB node "10.11.0.1"
% Tnm::mib oid
wrong # args: should be "Tnm::mib oid node"
% Tnm::mib pack
wrong # args: should be "Tnm::mib pack oid value ?value ...?"
% Tnm::mib parent
wrong # args: should be "Tnm::mib parent node"
% tnm::mib range
invalid command name "tnm::mib"
% Tnm::mib range
wrong # args: should be "Tnm::mib range type"
% Tnm::mib scan
wrong # args: should be "Tnm::mib scan nodeOrType value"
% Tnm::mib size
wrong # args: should be "Tnm::mib size type"
% Tnm::mib split
wrong # args: should be "Tnm::mib split oid"
% Tnm::mib status
wrong # args: should be "Tnm::mib status nodeOrType"
% Tnm::mib subtree
wrong # args: should be "Tnm::mib subtree oid1 oid2"
% Tnm::mib syntax
wrong # args: should be "Tnm::mib syntax nodeOrType"
% Tnm::mib unpack
wrong # args: should be "Tnm::mib unpack oid"
% Tnm::mib variables
wrong # args: should be "Tnm::mib variables node"
% Tnm::mib walk
wrong # args: should be "Tnm::mib walk varName node command"
%
% Tnm::netdb hosts
% Tnm::netdb networks
% Tnm::netdb protocols
% Tnm::netdb services
% Tnm::netdb sunrpc
bad option "sunrpc": must be hosts, ip, networks, protocols, services, or sunrpcs
% Tnm::netdb sunrpcs
% Tnm::map create
map0
% Tnm::map find
map0
% Tnm::map info
wrong # args: should be "Tnm::map info subject ?pattern?"
% Tnm::job current
% Tnm::job create
job0
% Tnm::job find
job0
% Tnm::job schedule
% Tnm::job wait
% Tnm::icmp echo
wrong # args: should be "Tnm::icmp ?-retries n? ?-timeout n? ?-size n? ?-delay n? ?-window size? option ?arg? hosts"
% Tnm::icmp mask
wrong # args: should be "Tnm::icmp ?-retries n? ?-timeout n? ?-size n? ?-delay n? ?-window size? option ?arg? hosts"
% Tnm::icmp timestamp
wrong # args: should be "Tnm::icmp ?-retries n? ?-timeout n? ?-size n? ?-delay n? ?-window size? option ?arg? hosts"
% Tnm::icmp trace
wrong # args: should be "Tnm::icmp ?-retries n? ?-timeout n? ?-size n? ?-delay n? ?-window size? option ?arg? hosts"
% Tnm::icmp ttl
wrong # args: should be "Tnm::icmp ?-retries n? ?-timeout n? ?-size n? ?-delay n? ?-window size? option ?arg? hosts"
% Tnm::dns
wrong # args: should be "Tnm::dns ?-timeout t? ?-retries r? ?-server hosts? option arg"
% Tnm::udp
wrong # args: should be "Tnm::udp option ?arg arg ...?"
% Tnm::udp open
udp1
% Tnm::udp connect
wrong # args: should be "Tnm::udp connect host port"
% Tnm::udp connect 10.11.0.13 80
udp2
% Tnm::udp connect 10.11.0.1 8080
udp3
% Tnm::udp recieve
bad option "recieve": should be bind, close, connect, info, open, receive, or send
% Tnm::udp receive
wrong # args: should be "Tnm::udp receive handle"
% Tnm::udp receive handle
bad udp handle "handle"
% Tnm::udp info
udp3 udp1 udp2
% Tnm::udp send
wrong # args: should be "Tnm::udp send handle ?host port? string"
% Tnm::udp close
wrong # args: should be "Tnm::udp close handle"
% Tnm::udp bind
wrong # args: should be "Tnm::udp bind handle event ?script?"
% Tnm::syslog
wrong # args: should be "Tnm::syslog ?-ident string? level message"
%
Tnm::netdb(n) Tnm Tcl Extension Tnm::netdb(n)
NAME
Tnm::netdb - Access local network databases.
DESCRIPTION
The Tnm::netdb command provides access to network informa-
tion that is stored in configuration files, the Network
Information Service (NIS) or in the Domain Name System
(DNS). The results of the Tnm::netdb command usually
depend on the local configuration of your operating sys-
tem.
NETDB COMMAND
Tnm::netdb hosts
Tnm::netdb hosts name address
Tnm::netdb hosts address name
Tnm::netdb hosts aliases address
The first version of the Tnm::netdb hosts command
returns a list of all locally known hosts. Each
element of this list contains a host name and its
IP address. The result is an empty list on many
systems that are configured to use the DNS for
hostname lookups. The second version of the
Tnm::netdb hosts command converts an IP address
into a host name and the third version of the
Tnm::netdb hosts command converts a host name into
an IP address. The fourth version of the Tnm::netdb
hosts command returns a list of all known aliases
for an IP address.
Tnm::netdb networks
Tnm::netdb networks name address
Tnm::netdb networks address name
Tnm::netdb networks aliases address
The first version of the Tnm::netdb networks com-
mand returns a list of all locally known networks.
Each element of this list contains a network name
and the IP network address. The second version of
the Tnm::netdb networks command returns the network
name that belongs to the IP network address and the
third version of the Tnm::netdb networks command
returns the network address that belongs to a given
network name. The fourth version of the Tnm::netdb
networks command returns a list of all known
aliases for an IP address.
Tnm::netdb protocols
Tnm::netdb protocols name number
Tnm::netdb protocols number name
Tnm::netdb protocols aliases number
The first version of the Tnm::netdb protocols com-
mand returns a list of all locally known Internet
protocols. Each element of this list contains a
Tnm::netdb(n) Tnm Tcl Extension Tnm::netdb(n)
protocol name and its protocol number. The second
version of the Tnm::netdb protocols command returns
the protocol name that belongs to number and the
third version of the Tnm::netdb protocols command
returns the protocol number that belongs to a pro-
tocol name. The fourth version of the Tnm::netdb
protocols command returns a list of all known
aliases for a protocol number.
Tnm::netdb services
Tnm::netdb services name number protocol
Tnm::netdb services number name protocol
Tnm::netdb services aliases number protocol
The first version of the Tnm::netdb services com-
mand returns the list of all locally known ser-
vices. Each element of this list contains a service
name, the service number and the transport proto-
col. The second version of the Tnm::netdb services
command returns the service name for the service
described by number and protocol. The third version
of the Tnm::netdb services command returns the pro-
tocol number for the service described by name and
protocol. The fourth version of the Tnm::netdb ser-
vices command returns a list of all known aliases
for a given service number and protocol.
Tnm::netdb sunrpcs
Tnm::netdb sunrpcs name number
Tnm::netdb sunrpcs number name
Tnm::netdb sunrpcs aliases number
The first version of the Tnm::netdb sunrpcs command
lists all locally known Sun RPCs. Each element of
this list contains a RPC name and its registration
number. The second version of the Tnm::netdb sunr-
pcs command returns the RPC name for a given RPC
number and the third version of the Tnm::netdb sun-
rpcs command returns the RPC number for a given RPC
name. The fourth version of the Tnm::netdb sunrpcs
command returns a list of all known aliases for a
given RPC number.
Tnm::netdb ip apply address mask
Tnm::netdb ip broadcast address mask
Tnm::netdb ip class address
Tnm::netdb ip compare mask mask
Tnm::netdb ip range address mask
The first version of the Tnm::netdb ip command
applies the mask to the address and returns the
resulting subnet. The Tnm::netdb ip broadcast com-
mand applies the mask to the address and returns
the resulting broadcast address. The netdb ip class
command returns the IP class of the address argu-
ment. The following classes are recognized: A, B,
C, D and loopback. The Tnm::netdb ip compare
command compares two masks and returns -1, 0 or 1,
depending on whether the first mask is smaller,
equal or greater than the second mask. The
Tnm::netdb ip range command returns the list of IP
addresses in the address range given by address and
mask.
TnmTerm(n) Tnm Tcl Extension TnmTerm(n)
NAME
TnmTerm - A Tcl/Tk package for simple output terminals
DESCRIPTION
The TnmTerm package provides a set of Tcl/Tk command pro-
cedures used to create and display simple output termi-
nals.
USING THE PACKAGE
The TnmTerm package is loaded into a Tcl interpreter by
using the following sequence of Tcl commands:
package require Tnm
package require TnmTerm $tnm(version)
All the TnmTerm commands live in the TnmTerm namespace.
You can import these commands into the current namespace
by using the following Tcl command:
namespace import TnmTerm::*
It is however suggested to import commands explicitely or
to use the full name in scripts to avoid name clashes.
COMMANDS
TnmTerm::Open path
The TnmTerm::Open procedure creates a new output
terminal. The terminal is created with the given
widget path.
TnmTerm::Clear path
The TnmTerm::Clear procedure removes all the text
from the output terminal and positions the curser
in the first line and first column.
TnmTerm::Write path text
The TnmTerm::Write procedure appends the text at
the end of the text in the terminal window identi-
fied by path.
TnmTerm::SetName path name
The TnmTerm::SetName procedure sets the name of the
terminal window identified by path. The name is
displayed in the title bar of the window manager.
TnmTerm::SetIcon path bitmap
The TnmTerm::SetIcon procedure sets the bitmap icon
Tnm January 1998 1
TnmTerm(n) Tnm Tcl Extension TnmTerm(n)
displayed when the output terminal window identi-
fied by path is iconified.
TnmTerm::ToggleFreeze path
The TnmTerm::ToggleFreeze procedure toggles the
frozen state of the output terminal window identi-
fied by path on and off. New text written to the
terminal window normally scrolls the window so that
the text is visible. No automatic scrolling will
take place in the frozen state. The procedure
returns a boolean indicating whether the terminal
is currently in the frozen state or not.
TnmTerm::ToggleWrap path
The TnmTerm::ToggleWrap procedure toggles the line
wrapping mode of the output terminal window identi-
fied by path. Normally, text lines that exceed the
line length of the terminal window will not be
shown completely. If the wrap mode is on, the long
text lines will wrap around and be displayed in
several lines in the terminal window. The procedure
returns a boolean indicating whether the terminal
is currently in wrap mode or not.
TnmTerm::ToggleXScroll path
The TnmTerm::ToggleYScroll procedure toggles the
visibility of the horizontal scrollbar attached to
the output terminal window identified by path. The
procedure returns a boolean indicating whether the
scrollbar is visible or not.
TnmTerm::ToggleYScroll path
The TnmTerm::ToggleYScroll procedure toggles the
visibility of the vertical scrollbar attached to
the output terminal window identified by path. The
procedure returns a boolean indicating whether the
scrollbar is visible or not.
TnmTerm::Save path
The TnmTerm::Save procedure issues a dialog to save
the contents of the terminal window identified by
path into a text file.
TnmTerm::Load path
The TnmTerm::Load procedure issues a dialog to read
a text file into the terminal window identified by
path.
Tnm January 1998 2
TnmTerm(n) Tnm Tcl Extension TnmTerm(n)
TnmTerm::Print path
The TnmTerm::Print procedure issues a dialog to
send the contents of the terminal window identified
by path to a local printer.
TnmTerm::EMail path
The TnmTerm::EMail procedure issues a dialog to
send the contents of the terminal window identified
by path via email.
TnmTerm::Close path The TnmTerm::Close procedure closes and destroys an existing output terminal identified by path.

0 comments:
Post a Comment