My favorites
▼
|
Sign in
liub-open-source
[LIUB] Open source applications and scripts
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
scripts
/
netconsole_monitor.sh
r23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash -
#=======================================================================
#
# FILE: netconsole_monitor.sh
# USAGE: ./netconsole_monitor.sh <ip>
# DESCRIPTION: Fetch console output of devel machine (from monitor)
# REQUIREMENTS: TBD
# BUGS: N/A
# NOTES: N/A
# AUTHOR: Ali Ayoub
# EMAIL: ali@mellanox.com
# COMPANY: N/A
# CREATED: 09.17.2010-15:26:23
# REVISION: 1.0
#=======================================================================
USAGE="Usage: $0 <ip-to-monitor>"
EXAMPLE="Example: $0 10.20.1.21"
if [ $# != 1 ]; then
echo $USAGE
echo $EXAMPLE
exit 1
fi
ip=$1
cmd="tail -f /var/log/messages | grep ' $ip '"
if ! ( ps -lefc | grep syslog | grep syslogd | grep '\-m 0 \-r \-x' -q); then
echo "-E- please set SYSLOGD_OPTIONS='-m 0 -r -x'"
echo " in /etc/sysconfig/syslog and restart syslog service"
exit 1
fi
dmesg -n 8
nohup xterm -bg black -fg white -title "netconosle $ip" -hold -e "$cmd" &
Show details
Hide details
Change log
r3
by Ali.Ayoub on Sep 17, 2010
Diff
add netconsole scripts
Go to:
.../scripts/netconsole_devel_set.sh
...nk/scripts/netconsole_monitor.sh
...cripts/netconsole_monitor_set.sh
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1007 bytes, 37 lines
View raw file
File properties
svn:executable
*
Powered by
Google Project Hosting