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

GETENT(1)							   User Commands							 GETENT(1)

NAME
getent - get entries from Name Service Switch libraries SYNOPSIS
getent database [key ...] DESCRIPTION
The getent command displays entries from databases supported by the Name Service Switch libraries, which are configured in /etc/nss- witch.conf. If one or more key arguments are provided, then only the entries that match the supplied keys will be displayed. Otherwise, if no key is provided, all entries will be displayed (unless the database does not support enumeration). The database may be any of those supported by the GNU C Library, listed below: ahosts When no key is provided, use sethostent(3), gethostent(3), and endhostent(3) to enumerate the hosts database. This is identi- cal to using hosts. When one or more key arguments are provided, pass each key in succession to getaddrinfo(3) with the address family AF_UNSPEC, enumerating each socket address structure returned. ahostsv4 Same as ahosts, but use the address family AF_INET. ahostsv6 Same as ahosts, but use the address family AF_INET6. The call to getaddrinfo(3) in this case includes the AI_V4MAPPED flag. aliases When no key is provided, use setaliasent(3), getaliasent(3), and endaliasent(3) to enumerate the aliases database. When one or more key arguments are provided, pass each key in succession to getaliasbyname(3) and display the result. ethers When one or more key arguments are provided, pass each key in succession to ether_aton(3) and ether_hostton(3) until a result is obtained, and display the result. Enumeration is not supported on ethers, so a key must be provided. group When no key is provided, use setgrent(3), getgrent(3), and endgrent(3) to enumerate the group database. When one or more key arguments are provided, pass each numeric key to getgrgid(3) and each nonnumeric key to getgrnam(3) and display the result. gshadow When no key is provided, use setsgent(3), getsgent(3), and endsgent(3) to enumerate the gshadow database. When one or more key arguments are provided, pass each key in succession to getsgnam(3) and display the result. hosts When no key is provided, use sethostent(3), gethostent(3), and endhostent(3) to enumerate the hosts database. When one or more key arguments are provided, pass each key to gethostbyaddr(3) or gethostbyname2(3), depending on whether a call to inet_pton(3) indicates that the key is an IPv6 or IPv4 address or not, and display the result. initgroups When one or more key arguments are provided, pass each key in succession to getgrouplist(3) and display the result. Enumera- tion is not supported on initgroups, so a key must be provided. netgroup When one key is provided, pass the key to setnetgrent(3) and, using getnetgrent(3) display the resulting string triple (host- name, username, domainname). Alternatively, three keys may be provided, which are interpreted as the hostname, username and domainname to match to a netgroup name via innetgr(3). Enumeration is not supported on netgroup, so either one or three keys must be provided. networks When no key is provided, use setnetent(3), getnetent(3), and endnetent(3) to enumerate the networks database. When one or more key arguments are provided, pass each numeric key to getnetbyaddr(3) and each nonnumeric key to getnetbyname(3) and dis- play the result. passwd When no key is provided, use setpwent(3), getpwent(3), and endpwent(3) to enumerate the passwd database. When one or more key arguments are provided, pass each numeric key to getpwuid(3) and each nonnumeric key to getpwnam(3) and display the result. protocols When no key is provided, use setprotoent(3), getprotoent(3), and endprotoent(3) to enumerate the protocols database. When one or more key arguments are provided, pass each numeric key to getprotobynumber(3) and each nonnumeric key to getprotobyname(3) and display the result. rpc When no key is provided, use setrpcent(3), getrpcent(3), and endrpcent(3) to enumerate the rpc database. When one or more key arguments are provided, pass each numeric key to getrpcbynumber(3) and each nonnumeric key to getrpcbyname(3) and display the result. services When no key is provided, use setservent(3), getservent(3), and endservent(3) to enumerate the services database. When one or more key arguments are provided, pass each numeric key to getservbynumber(3) and each nonnumeric key to getservbyname(3) and display the result. shadow When no key is provided, use setspent(3), getspent(3), and endspent(3) to enumerate the shadow database. When one or more key arguments are provided, pass each key in succession to getspnam(3) and display the result. EXIT STATUS
One of the following exit values can be returned by getent: 0 Command completed successfully. 1 Missing arguments, or database unknown. 2 One or more supplied key could not be found in the database. 3 Enumeration not supported on this database. SEE ALSO
nsswitch.conf(5) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2013-03-15 GETENT(1)
Man Page