I think the functionality you are looking for is provided by vim, not by vi - it would give you the lines where the changes occurred if thats what you are after?
Hi there,
I have a problem here that involves bash script since I was noob in that field. Recently, I have to monitor data involve in logs so I just run command tail -f for the monitoring. The logs was generate every hour so I need to quickly change my logs every time the new hour hits according... (2 Replies)
I would like to monitor a log file using a shell script and as soon as a line with a certain string in it appears I would like to run a program. I have been playing around with doing this using tail -f, but cannot get it to work. I found something similar here:... (1 Reply)
hi All,
how to find a pattern in the log file & display the above and below line
for example in the log file, i have many lines, whenever i search for "Category" it should display the above line with only few parameter like i want only the location name & department name
Thu Jul 02 11:05:23... (2 Replies)
Hi Folks,
I need help in creating a script to monitor a continuously updating log for one particular error. If the the script finds the error it should send out an email.
Thanks for all ur help (2 Replies)
Hi Friends,
I am trying to write a script which continiously monitor one specific error message from a log file. This script should continiously monitor the file for the error and send out the email when detect the error message. I tried the below command but fails. Please help me.
tail -f... (4 Replies)
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (1 Reply)
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (7 Replies)
Hi,
Have written a script to monitor linux non standard log file based on line numbers, so each check store $otalinenum ..
then in next check after 10 minutes it compre the current_total_line_num > last_total_line_num then it will parse the log file from last_total_line_num to... (0 Replies)
Hi,
I need to amend an existing ksh script so that it runs a process (stop weblogic) and in parallel needs to monitor a log file (startup.log) in the background for a certain string (e.g. unable to stop weblogic). If the string appears in the log i need to kill the stop weblogic process.
... (5 Replies)
Discussion started by: dholmaster
5 Replies
LEARN ABOUT DEBIAN
iptraf
IPTRAF(8) System Manager's Manual IPTRAF(8)NAME
iptraf - Interactive Colorful IP LAN Monitor
SYNOPSIS
iptraf { [ -f ] [ -q ] [ -u ] [ { -i iface | -g | -d iface | -s iface | -z iface | -l iface } [ -t timeout ] [ -B [ -L logfile ] ] ] | [ -h
] }
DESCRIPTION
iptraf is an ncurses-based IP LAN monitor that generates various network statistics including TCP info, UDP counts, ICMP and OSPF informa-
tion, Ethernet load info, node stats, IP checksum errors, and others.
If the iptraf command is issued without any command-line options, the program comes up in interactive mode, with the various facilities
accessed through the main menu.
OPTIONS
These options can also be supplied to the command:
-i iface
immediately start the IP traffic monitor on the specified interface, or all interfaces if "-i all" is specified
-g immediately start the general interface statistics
-d iface
allows you to immediately start the detailed on the indicated interface (iface)
-s iface
allows you to immediately monitor TCP and UDP traffic on the specified interface (iface)
-z iface
shows packet counts by size on the specified interface
-l iface
start the LAN station monitor on the specified interface, or all LAN interfaces if "-l all" is specified
-t timeout
tells IPTraf to run the specified facility for only timeout minutes. This option is used only with one of the above parameters.
-B redirect standard output to /dev/null, closes standard input, and forks the program into the background. Can be used only with one
of the facility invocation parameters above. Send the backgrounded process a USR2 signal to terminate.
-L logfile
allows you to specify an alternate log file name. The default log file name is based on either the interface selected (detailed
interface statistics, TCP/UDP service statistics, packet size breakdown), or the instance of the facility (IP traffic monitor, LAN
station monitor). If a path is not specified, the log file is placed in /var/log/iptraf
-f clears all locks and counters, causing this instance of IPTraf to think it's the first one running. This should only be used to
recover from an abnormal termination or system crash.
-u allow use of unsupported interfaces as ethernet devices. This is needed if you changed the name of an interface (ex: ip link set
eth0 name foo0)
-q no longer needed, maintained only for compatibility.
-h shows a command summary
SIGNALS
SIGUSR1 - rotates log files while program is running
SIGUSR2 - terminates an IPTraf process running in the background.
FILES
/var/log/iptraf/*.log - log file
/var/lib/iptraf/* - important IPTraf data files
SEE ALSO
Documentation/* - complete documentation written by the author
AUTHOR
Gerard Paul Java (riker@mozcom.com)
MANUAL AUTHOR
Frederic Peters (fpeters@debian.org), using iptraf -h General manual page modifications by Gerard Paul Java (riker@mozcom.com)
IPTraf Help Page IPTRAF(8)