ssh_tunnel statistics: tal-v210-1 to screamer

Time: 2007-Dec-05 13:40:02 Wed

Current tunnel state: disabled          Current tunnel condition: DOWN

loader stats

------ loader (pid: 23573 ) ------------ (v3.26 2006/04/15) ----- State: disabled DOWN
Time:                2006-Oct-20 12:26:07 Fri
client:              tal-v210-1
server:              screamer
client heartbeat:    Client Heartbeat
server heartbeat:    Server Heartbeat
server heartbeat 1:  Server Heartbeat 1
server heartbeat 2:  Server Heartbeat 2
server heartbeat 3:  Server Heartbeat 3
server heartbeat 4:  Server Heartbeat 4
Sleep time:          242
loader loop counter: 0
bad port tests:      0     last: none yet
failed file updates: 0     last: none yet
tunnels killed:      2     last: 2006-Oct-20 12:26:07 Fri
emails sent:         0     last: none yet
email addresses:     john@larsen-family.us
loader started:      YYYY-MMM-DD HH:MM:SS DOW
debug flags:         0x0

tunnel stats

------ tunnel (pid: 4533 ) ------------ (v3.26 2006/04/15) ----- State: enabled UP
Time:                2006-Jul-18 11:45:32 Tue
client:              tal-v210-1
server:              screamer
client heartbeat:    Tue Jul 18 11:45:30 EDT 2006
server heartbeat:    Tue Jul 18 11:46:11 EDT 2006
Sleep time:          242
tunnel loop counter: 2
bad port tests:      0     last: none yet
emails sent:         1     last: 2006-Jul-18 11:40:56 Tue
email addresses:     john@larsen-family.us
tunnel started:      2006-Jul-18 11:41:28 Tue
debug flags:         0x0

Current users, uptime, and load average

  1:40pm  up 265 day(s), 21:48,  1 user,  load average: 0.00, 0.01, 0.02
User     tty           login@  idle   JCPU   PCPU  what
root     console      17Oct0749days                bash
leacu    pts/2        23Oct0735days                ssh omegared
leacu    pts/8         7Nov07  2:25                ssh omegared

Current processes

     UID   PID  PPID  C    STIME TTY      TIME CMD
    root     0     0  0   Mar 14 ?        0:10 sched
    root     1     0  0   Mar 14 ?        1:04 /etc/init -
    root     2     0  0   Mar 14 ?        0:00 pageout
    root     3     0  0   Mar 14 ?       1123:40 fsflush
    root   723     1  0   Mar 14 ?        0:00 /usr/lib/saf/sac -t 300
 0003623   728   395  0   Mar 14 ?        3:11 view_server //export/home1/ldubuc/viewstore/cell_ldubuc.vws -u caf9c17f.9f3411d
    root   136     1  0   Mar 14 ?        1:41 /usr/sbin/rpcbind
    root 11295   724  0   Oct 17 console  0:00 bash
    root    54     1  0   Mar 14 ?        0:00 /usr/lib/sysevent/syseventd
    root    60     1  0   Mar 14 ?       407:59 /usr/lib/picl/picld
    root   172     1  0   Mar 14 ?        0:00 /usr/sbin/inetd -s
    root   141     1  0   Mar 14 ?        0:09 /usr/sbin/nis_cachemgr
    root   285     1  0   Mar 14 ?        0:02 /usr/lib/inet/xntpd
    root   185     1  0   Mar 14 ?        0:18 /usr/lib/autofs/automountd
    root   139     1  0   Mar 14 ?        0:09 /usr/sbin/keyserv
    root   377     1  0   Mar 14 ?        0:17 /usr/lib/nfs/nfsd -a 16
    root   186   185  0   Mar 14 ?       93:11 /usr/lib/autofs/automountd
    root   223     1  0   Mar 14 ?        7:25 /usr/sbin/nscd
    root   174     1  0   Mar 14 ?        0:00 /usr/lib/nfs/lockd
  daemon   175     1  0   Mar 14 ?        0:00 /usr/lib/nfs/statd
    root   198     1  0   Mar 14 ?        0:30 /usr/sbin/syslogd
    root   289   288  0   Mar 14 ?        0:00 /usr/sbin/nsrexecd
    root   230     1  0   Mar 14 ?        0:00 /usr/lib/lpsched
    root   206     1  0   Mar 14 ?        0:15 /usr/sbin/cron
    root   243     1  0   Mar 14 ?        0:00 /usr/lib/power/powerd
    root   259     1  0   Mar 14 ?        0:00 /usr/sadm/lib/smc/bin/smcboot
    root   263   259  0   Mar 14 ?        0:00 /usr/sadm/lib/smc/bin/smcboot
    root   253     1  0   Mar 14 ?        0:10 /usr/lib/utmpd
    root   272     1  0   Mar 14 ?        0:00 /usr/sbin/vold
    root   727   723  0   Mar 14 ?        0:00 /usr/lib/saf/ttymon
    root   269     1  0   Mar 14 ?        0:01 /usr/lib/sendmail -bd -q15m
    root   288     1  0   Mar 14 ?        0:00 /usr/sbin/nsrexecd
    root   294     1  0   Mar 14 ?        0:00 /usr/lib/efcode/sparcv9/efdaemon
    root   395     1  0   Mar 14 ?        0:21 /opt/rational/clearcase/etc/albd_server
    root   302     1  0   Mar 14 ?        0:00 /opt/samba/sbin/smbd -D -d 0
    root   304     1  0   Mar 14 ?        0:00 /usr/dt/bin/dtlogin -daemon
    root   383     1  0   Mar 14 ?        0:00 /usr/lib/snmp/snmpdx -y -c /etc/snmp/conf
    root   308     1  0   Mar 14 ?       31:57 /opt/samba/sbin/nmbd -D -d 0
    root   375     1  0   Mar 14 ?        1:11 /usr/lib/nfs/mountd
    root   388   383  0   Mar 14 ?        2:49 mibiisa -r -p 32832
    root   397     1  0   Mar 14 ?        0:11 /opt/rational/clearcase/etc/lockmgr -a /var/adm/rational/clearcase/almd -q 1024
    root   713     1  0   Mar 14 ?        0:00 /usr/lib/dmi/dmispd
 0003623 11932     1  0   Apr 23 ?        0:00 tcsh
    root   718     1  0   Mar 14 ?        0:00 /opt/sbin/sshd
    root   724     1  0   Mar 14 console  0:00 -sh
    root   714     1  0   Mar 14 ?        0:00 /usr/lib/dmi/snmpXdmid -s tal-v210-1
    root 24524 24522  0 13:40:01 ?        0:00 /opt/bin/scp -p -F /.ssh/ssh_tunnel/old-beast/loader.conf loader:/home/tunnels/
    root 24490   206  0 13:40:00 ?        0:00 sh -c /.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
 0003623   815     1  0   Mar 14 ?        0:00 tcsh
    root 24526 24524  1 13:40:01 ?        0:00 /opt/bin/ssh -x -oForwardAgent no -oClearAllForwardings yes -F/.ssh/ssh_tunnel/
 0003623   805     1  0   Mar 14 ?        0:00 tcsh
 0003623   810     1  0   Mar 14 ?        0:00 tcsh
   leacu   197   196  0   Oct 23 pts/2    0:00 csh
   leacu 19224 19223  0   Nov 07 pts/8    0:00 csh
    root   916   172  0   Mar 14 ?       23:59 cachefsd
    root 24491 24490  1 13:40:00 ?        0:00 /usr/local/bin/perl -w /.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
   leacu 19236 19229  0   Nov 07 pts/8    0:01 ssh omegared
 0003623  7210   805  0   Mar 26 ?        0:00 csh
   leacu  3736   197  0   Oct 23 pts/2    0:01 ssh omegared
    root 24520 24491  0 13:40:01 ?        0:00 /usr/local/bin/perl -w /.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
   leacu 19229 19224  0   Nov 07 pts/8    0:00 bash
   leacu 19223     1  0   Nov 07 ?        0:02 /usr/openwin/bin/xterm -fn clr9x15 -sl 1024 -title tal-v210-1 -bg black -fg yel
    root 24530     1  0 13:40:02 ?        0:00 /usr/local/bin/perl -w /.ssh/ssh_tunnel/screamer/ssh_tunnel.pl
   leacu   196     1  0   Oct 23 ?        0:01 /usr/openwin/bin/xterm -fn clr9x15 -sl 1024 -title tal-v210-1 -bg black -fg yel
    root 24522 24520  0 13:40:01 ?        0:00 sh -c /opt/bin/scp -p  -F /.ssh/ssh_tunnel/old-beast/loader.conf loader:/home/t
    root 24536 24530  0 13:40:02 ?        0:00 /bin/ps -edf

Current netstat


TCP: IPv4
   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q  State
-------------------- -------------------- ----- ------ ----- ------ -------
tal-v210-1.41351     172.20.220.91.6000   65535      0 24820      0 ESTABLISHED
tal-v210-1.41668     172.20.220.82.22     12096      0 24820      0 ESTABLISHED
tal-v210-1.57622     172.20.220.91.6000   65535      0 24820      0 ESTABLISHED
tal-v210-1.57623     172.20.220.82.22     12096      0 24820      0 ESTABLISHED
tal-v210-1.565       speedy.nfsd          26280      0 24820      0 ESTABLISHED
tal-v210-1.54345     c-24-61-95-57.hsd1.nh.comcast.net.imap 16656     15 24820      0 ESTABLISHED
tal-v210-1.54346     c-24-61-95-57.hsd1.nh.comcast.net.22  9792      0 24820      0 TIME_WAIT

crontab file

#ident	"@(#)root	1.19	98/07/06 SMI"	/* SVr4.0 1.1.3.1	*/
#
# The root crontab should be used to perform accounting data collection.
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
10 3 * * 0,4 /etc/cron.d/logchecker
10 3 * * 0   /usr/lib/newsyslog
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
0,10,20,30,40,50 * * * * /.ssh/ssh_tunnel/screamer/ssh_tunnel.pl
0,10,20,30,40,50 * * * * /.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl

loader.conf file

# Filename:  loader.conf
# Description:  This is the configuration file for the loader portion of the 
# ssh_tunnel program.  The contents of this file never change.  This insures
# that the loader will always operate.  It is important not to change the 
# formatting of this file because it is read by the ssh_tunnel and processed 
# using perl which is expecting things to be in certain locations.
#
# loader.conf has two sections:
# 1. Configuration information such as the names of the ssh and sshd
#    hosts, the working directories on each host, and other data as needed.
# 2. The ssh host configuration for the loader program is in this file.
#    That configuration should never change.  It needs to be at the end
#    of the file because ssh uses everything between "Host" entries as
#    configuration.  There is only one Host section in this file.
#
########################################################################
# The following section contains host information 
# SSH_CLIENT      tal-v210-1
# SSH_CLIENT_DIR  /.ssh/ssh_tunnel/screamer
# SSH_SERVER      screamer
# SSH_SERVER_DIR  /home/tunnels/ssh_tunnel/tal-v210-1
#
########################################################################
# The following section is the ssh config file for the loader program.
# IMPORTANT!  The path on the client MUST have the SSH_SERVER name in
# it.  The script uses this name is search strings and it MUST be there.
Host loader
HostName larsen-family.us
Port = 22
UserKnownHostsFile = /.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /.ssh/ssh_tunnel/screamer/id_rsa.tal-v210-1

tunnel.conf file

# Filename:  tunnel.conf
#
# Description:  This is the configuration file for the tunnel portion of the 
# ssh_tunnel program.  The contents of this file can be changed during program execution.
# It is important not to change the formatting of the file because it is read by the
# tunnel program and processed using awk which is expecting things to be in certain
# locations.
#
# tunnel.conf has three sections:
# 1. Configuration information such as email addresses and thresholds.
# 2. The ssh host configuration for the tunnel.  This consists of two
#    host definitions, tunnel and heartbeat.  The tunnel is the permanent
#    connection and defines port forwarding.  The heartbeat uses one of 
#    the forwarded ports to write and copy heartbeat files between the
#    ssh client and the ssh server.  Changing heartbeats indicate that the
#    tunnel is functioning.
# 3. The webpage configuration section as described below.  This has the
#    ssh host configuration for updating a webpage on a webserver.
#
################################################################################
# The following section contains configuration information
#
# The tunnel is either "enabled" or "disabled" based on the value given
# below.  If disabled, then no processes are running on either the
# client or the server.  A cron job on the client runs ssh_tunnel.pl periodically
# to check if tunnel.conf has changed on the server.  If a change is detected
# then the new tunnel.conf file is transfered over.  If the tunnel state
# becomes "enabled" then the tunnel is activated.
# TUNNEL_STATE disabled
#
# The email addresses below receive diagnostic messages.  Separate
# multiple addresses with commas and no white space.  The word "none"
# turns off email sending and is the default.  The same email address
# is used by cron, loader, tunnel, and pulse.
# EMAIL_ADDRESS     john@larsen-family.us
#
# The threshold defined below is how many port failures are required
# before an email is sent.  Set this to "none" to turn this off.  If
# the ssh_server's ssh port isn't accessible then the loader kills 
# the tunnel.  This periodic email serves as a reminder that the tunnel
# is down.
# EMAIL_THRESHOLD   50
#
# The loader, tunnel, and pulse programs all have the same sleep value.
# The sleep time can be changed here.  It should be in the range of
# 60 to 3600 seconds.  Shorter sleep times increase system loading.
# The sleep time must be less than half the crontab time for ssh_tunnel.pl.
# SLEEP_TIME        242
#
#
################################################################################
# The following section is the ssh config file for the tunnel program.
# IMPORTANT!  The path on the client MUST have the SSH_SERVER name in
# it.  The script uses this name is search strings and it MUST be there.
#
# Important info about port numbers used in the "ssh_tunnel" and "heartbeat"
# sections below.  The "heartbeat" Port number must be the same as the last
# two port numbers in the "ssh_tunnel" section.  In this example 50022 is
# used.  The port number used must be unused by anything else on the two
# machines.  If you have multiple tunnels connecting to a single ssh_server
# be sure to use different port numbers.  
#
# Another requirement is that the ssh_server must be configured to
# allow remote port forwarding.  This is normally off by default in the 
# ssh_server's sshd_config file.  Set "GatewayPorts yes" in sshd_config.
#
Host tunnel
HostName larsen-family.us
Port = 22
UserKnownHostsFile = /.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /.ssh/ssh_tunnel/screamer/id_rsa.tal-v210-1
Compression = yes
RemoteForward = 29722 localhost:22
LocalForward = 29722 localhost:22

################################################################################
Host heartbeat
HostName localhost
Port = 29722
UserKnownHostsFile = /.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /.ssh/ssh_tunnel/screamer/id_rsa.tal-v210-1

################################################################################
Host pulse
HostName localhost
Port = 29722
UserKnownHostsFile = /home/tunnels/ssh_tunnel/tal-v210-1/known_hosts
User = root
IdentityFile = /home/tunnels/ssh_tunnel/tal-v210-1/id_rsa.tal-v210-1

################################################################################
# Note: This section must be last in tunnel.conf.
# A webpage will be copied to the directory set by WEBSERVER_DIR below.  The
# default value "none" turns this feature off.  Change "none" to the directory
# path where the webpage should be copied.  The "webpage" host information 
# below must also be changed to valid values to make this work.
# WEBSERVER_DIR     /home/tunnels/ssh_tunnel_html
#
# The filename of the webpage copied to the webserver defaults to
# SSH_CLIENT_to_SSH_SERVER.html.  To choose a different name replace the
# word "default" on the line below with the desired name.
# WEBPAGE_FILENAME  default
#
# A copy of the webpage can be put in the directory define by WEBPAGE_LOCAL_DIR.
# Change "none" to a valid directory to enable this feature.
# WEBPAGE_LOCAL_DIR  none
#
# The webpage update rate defaults to once per sleep time. Change the value below
# to select a different rate.  The update rate is the number of times through the
# loader while loop before updating the webpage.  This value is ignored when events
# occur such as the tunnel going down or during startup.  The webpage is updated
# for all non normal runtime events.
# WEBPAGE_UPDATE_RATE   1
#
Host webpage
HostName larsen-family.us
Port = 22
UserKnownHostsFile = /.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /.ssh/ssh_tunnel/screamer/id_rsa.tal-v210-1