Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netwatch(1) [debian man page]

NETWATCH()																NETWATCH()

NAME
Netwatch - Ethernet Internet Protocol Monitor SYNOPSIS
netwatch [ -h ] [-b] [-i dd.dd.dd.dd] [-m dd.dd.dd.dd] [-n] [ - t] [ -e ethnum ] [ -c netconfigfile ] DESCRIPTION
Netwatch examines all the packets travelling on an ethernet and analyses the IP packets. The information is tallied according to the source and destination hosts. An ncurses display indicates a dual-list status for all hosts. The left display refers to LOCAL hosts. The right list refers to REMOTE hosts. It is possible to examine statistics (counts) on number of packets, bytes, IP service type and last communi- cation host for each host. Use the arrow keys (left and right) to change the display. OPTIONS -e ethnum ethnum is the name of the ethernet device to attempt to run with netwatch. (e.g. -e eth1 selects the eth1 device rather than the default eth0 device. -c confignetfile selects the name of the file which contains the ifconfig information. Note that this is not necessary since netwatch will use the route information from /proc/net to build all the information needed (without using ANY configuration file). -b For a transparent bridge, ignore every other packet... (older kernels) -i dd.dd.dd.dd Fake a local internet address for "this" machine... (useful in making fake local net for monitoring when combined with the -m option ) -m dd.dd.dd.dd Fake the netmask which is used for the local net evaluation -n Do not resolve names (just display addresses) -h Simple help information -t Start Netwatch in TOP Mode (30 sec. startup delay) USER COMMANDS
The following description will attempt to clarify what keys netwatch understands. It is important to know that the program is mode depen- dent. This means commands may change depending on the current mode. The primary mode is dual-list mode. In this mode use <tab> key - switch scroll display to the other list (dual-lists). Look for KEY. <left> key - Change display options (moving left through the options) <right> key - Change display options (moving right through the options) <up> key - Scroll to previous host page on the current list (see KEY) Change display options (moving right through the options) <down> key - Scroll to next host page on the current list (see KEY) h key - gives help screen t key - Toggle TOP mode (where 30 sec update on busiest hosts) c key - Clear counts for all hosts n key - Clean the remote & local host tables N key - Clean the remote OR local host tables (depends on which is current) L key - Produce LOG of current display entries (REMOTE or LOCAL) b key - Toggle display of BLUE entries (OLD) d key - Toggle display of DOMAIN entries (Name Server Queries) w key - Enter WATCH mode for viewing ROUTING stats and HOST packets <F10>, <END> or q key - Exits the program AUTHOR
Gordon MacKay mackay@gmml.slctech.org COPYRIGHT
Copyright (c) Gordon MacKay 1997, under GPL BUGS
Yes, but hopefully the program is better than it was... NETWATCH()

Check Out this Related Man Page

libssh2_knownhost_check(3)					  libssh2 manual					libssh2_knownhost_check(3)

NAME
libssh2_knownhost_check - check a host+key against the list of known hosts SYNOPSIS
#include <libssh2.h> int libssh2_knownhost_check(LIBSSH2_KNOWNHOSTS *hosts, const char *host, const char *key, size_t keylen, int typemask, struct libssh2_knownhost **knownhost); DESCRIPTION
Checks a host and its associated key against the collection of known hosts, and returns info back about the (partially) matched entry. host is a pointer the host name in plain text. The host name can be the IP numerical address of the host or the full name. key is a pointer to the key for the given host. keylen is the total size in bytes of the key pointed to by the key argument typemask is a bitmask that specifies format and info about the data passed to this function. Specificly, it details what format the host name is, what format the key is and what key type it is. The host name is given as one of the following types: LIBSSH2_KNOWNHOST_TYPE_PLAIN or LIBSSH2_KNOWNHOST_TYPE_CUSTOM. The key is encoded using one of the following encodings: LIBSSH2_KNOWNHOST_KEYENC_RAW or LIBSSH2_KNOWNHOST_KEYENC_BASE64. knownhost if set to non-NULL, it must be a pointer to a 'struct libssh2_knownhost' pointer that gets filled in to point to info about a known host that matches or partially matches. RETURN VALUE
libssh2_knownhost_check(3) returns info about how well the provided host + key pair matched one of the entries in the list of known hosts. LIBSSH2_KNOWNHOST_CHECK_FAILURE - something prevented the check to be made LIBSSH2_KNOWNHOST_CHECK_NOTFOUND - no host match was found LIBSSH2_KNOWNHOST_CHECK_MATCH - hosts and keys match. LIBSSH2_KNOWNHOST_CHECK_MISMATCH - host was found, but the keys didn't match! AVAILABILITY
Added in libssh2 1.2 EXAMPLE
See the ssh2_exec.c example as provided in the tarball. SEE ALSO
libssh2_knownhost_init(3) libssh2_knownhost_free(3) libssh2_knownhost_add(3) libssh2 1.2 28 May 2009 libssh2_knownhost_check(3)
Man Page