ssh_tunnel statistics: tattle to screamer

Time: 2007-Feb-26 11:50:07 Mon

Current tunnel state: disabled          Current tunnel condition: DOWN

loader stats

------ loader (pid: 27988 ) ------------ (v3.26 2006/04/15) ----- State: disabled DOWN
Time:                2006-Oct-20 13:20:02 Fri
client:              tattle
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:          243
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 13:20:02 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: 16602 ) ------------ (v3.26 2006/04/15) ----- State: enabled UP
Time:                2006-Jul-18 11:44:27 Tue
client:              tattle
server:              screamer
client heartbeat:    Tue Jul 18 11:44:22 EDT 2006
server heartbeat:    Tue Jul 18 11:41:22 EDT 2006
Sleep time:          243
tunnel loop counter: 2
bad port tests:      0     last: none yet
emails sent:         1     last: 2006-Jul-18 11:40:17 Tue
email addresses:     john@larsen-family.us
tunnel started:      2006-Jul-18 11:40:19 Tue
debug flags:         0x0

Current users, uptime, and load average

 11:50am  up 29 day(s), 23:37,  0 users,  load average: 0.14, 0.05, 0.04
User     tty           login@  idle   JCPU   PCPU  what
kher     pts/1        Fri 3pm 3days   1:09   1:09  emacs mcf_m_net_create.c

Current processes

     UID   PID  PPID  C    STIME TTY      TIME CMD
    root     0     0  0   Jan 27 ?        0:00 sched
    root     1     0  0   Jan 27 ?        0:27 /etc/init -
    root     2     0  0   Jan 27 ?        0:00 pageout
    root     3     0  0   Jan 27 ?       65:03 fsflush
    root   795     1  0   Jan 27 ?        0:00 /usr/lib/saf/sac -t 300
    root   235     1  0   Jan 27 ?        0:00 /usr/lib/lpsched
    root   138     1  0   Jan 27 ?        0:10 /usr/sbin/keyserv
    root    51     1  0   Jan 27 ?        0:00 /usr/lib/sysevent/syseventd
    root    53     1  0   Jan 27 ?        0:00 /usr/lib/sysevent/syseventconfd
    root    59     1  0   Jan 27 ?        0:00 /usr/lib/picl/picld
    root   192     1  0   Jan 27 ?        8:44 /usr/lib/autofs/automountd
    root   142     1  0   Jan 27 ?        0:05 /usr/sbin/nis_cachemgr
    root   230     1  0   Jan 27 ?       36:23 /usr/sbin/nscd
    root   203     1  0   Jan 27 ?        0:10 /usr/sbin/syslogd
    root   135     1  1   Jan 27 ?       24:11 /usr/sbin/rpcbind
    root   307     1  0   Jan 27 ?       21:33 /opt/samba/sbin/nmbd -D -d 0
    root   169     1  0   Jan 27 ?        0:00 /usr/sbin/inetd -s
    root   173     1  0   Jan 27 ?        0:00 /usr/lib/nfs/lockd
  daemon   175     1  0   Jan 27 ?        0:00 /usr/lib/nfs/statd
    root   284     1  0   Jan 27 ?        0:00 /usr/lib/inet/xntpd
    root   387     1  0   Jan 27 ?        0:00 /usr/lib/nfs/mountd
    root   274     1  0   Jan 27 ?        0:02 /usr/sbin/vold
    root   212     1  0   Jan 27 ?        0:15 /usr/sbin/cron
    root   248     1  0   Jan 27 ?        0:00 /usr/lib/power/powerd
    root   263     1  0   Jan 27 ?        0:00 /usr/sadm/lib/smc/bin/smcboot
    root   265   263  0   Jan 27 ?        0:00 /usr/sadm/lib/smc/bin/smcboot
    root   258     1  0   Jan 27 ?        0:05 /usr/lib/utmpd
    root   268     1  0   Jan 27 ?        0:01 /usr/lib/sendmail -bd -q15m
    root   395     1  0   Jan 27 ?        0:00 /usr/lib/snmp/snmpdx -y -c /etc/snmp/conf
    root   286     1  0   Jan 27 ?        0:01 /usr/sbin/nsrexecd -s legato
    root   287   286  0   Jan 27 ?        0:01 /usr/sbin/nsrexecd -s legato
    root   293     1  0   Jan 27 ?        0:00 /usr/lib/efcode/sparcv9/efdaemon
    root   798   795  0   Jan 27 ?        0:00 /usr/lib/saf/ttymon
    root 15694   212  0 11:50:00 ?        0:00 sh -c /.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
    root   301     1  0   Jan 27 ?        0:02 /usr/dt/bin/dtlogin -daemon
    root   303     1  0   Jan 27 ?        0:00 /opt/samba/sbin/smbd -D -d 0
    root   389     1  0   Jan 27 ?        0:00 /usr/lib/nfs/nfsd -a 16
    kher 13485   406  0   Feb 16 ?        2:22 view_server /export/home/viewstore/kher_non_mcoe.vws -u d3813b37.583111d9.b57e.
    root   406     1  0   Jan 27 ?        0:10 /opt/rational/clearcase/etc/albd_server
    root   408     1  0   Jan 27 ?        0:02 /opt/rational/clearcase/etc/lockmgr -a /var/adm/rational/clearcase/almd -q 1024
    root   457   395  0   Jan 27 ?        7:17 mibiisa -r -p 32892
    kher 27937 27935  0   Feb 23 pts/1    0:00 tcsh
    kher 25455   406  0   Feb 12 ?        4:11 view_server /export/home/viewstore/kher_cell.vws -u e623aab6.9f3111da.81b5.00:0
    root   796     1  0   Jan 27 console  0:00 /usr/lib/saf/ttymon -g -h -p tattle console login:  -T sun -d /dev/console -l c
    root   723     1  0   Jan 27 ?        0:00 /usr/lib/dmi/snmpXdmid -s tattle
    root   721     1  0   Jan 27 ?        0:00 /usr/lib/dmi/dmispd
    root   790     1  0   Jan 27 ?        0:01 /opt/sbin/sshd
    root 15715 15713  0 11:50:02 ?        0:00 /usr/bin/telnet larsen-family.us 143
    kher 26491   406  0   Feb 12 ?        0:03 view_server /export/home/viewstore/kher_6x.vws -u bee822e3.0eb711d7.a314.00:01:
    root 15695 15694  3 11:50:00 ?        0:01 /usr/local/bin/perl -w /.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
    root  1014   169  0   Jan 27 ?        0:06 cachefsd
    root 15758     1  0 11:50:07 ?        0:00 /usr/local/bin/perl -w /.ssh/ssh_tunnel/screamer/ssh_tunnel.pl
    kher 27926     1  0   Feb 23 ?        0:00 /usr/openwin/bin/xterm -title tattle -sl 1024 -display 172.16.120.253:0.0
    kher  3189   406  0   Feb 22 ?        0:01 view_server /export/home/viewstore/kher_t3.vws -u dc08cf81.2c9f11db.97ab.00:01:
    kher 27927 27926  0   Feb 23 pts/1    0:00 csh
    root 15710 15695  0 11:50:02 ?        0:00 /usr/local/bin/perl -w /.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
    root 15713 15710  0 11:50:02 ?        0:00 sh -c echo test | /usr/bin/telnet larsen-family.us 143 2>1
    kher 27944 27937  0   Feb 23 pts/1    1:10 emacs mcf_m_net_create.c
    kher 27935 27927  0   Feb 23 pts/1    0:00 csh -c tcsh
    root 15717 15715  0                   0:00 
    root 15764 15758  0 11:50:07 ?        0:00 /bin/ps -edf

Current netstat


TCP: IPv4
   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q  State
-------------------- -------------------- ----- ------ ----- ------ -------
tattle.675           iris.nfsd             8760      0 24820      0 ESTABLISHED
tattle.46850         dhcp_client-120-253.6000 65535      0 24820      0 ESTABLISHED
tattle.46853         dhcp_client-120-253.6000 65527      0 24820      0 ESTABLISHED
tattle.50975         tcnew.692            49640      0 24820      0 CLOSE_WAIT
tattle.568           apollo.nfsd          65535      0 24820      0 TIME_WAIT
tattle.51950         tattle.32779         32768      0 32768      0 TIME_WAIT
tattle.564           speedy.nfsd          26280      0 24820      0 ESTABLISHED
tattle.51954         fog2.32986           24820      0 24820      0 TIME_WAIT
tattle.51955         fog2.32986           24820      0 24820      0 TIME_WAIT
tattle.51956         fog2.32986           24820      0 24820      0 TIME_WAIT
tattle.51957         fog2.32986           24820      0 24820      0 TIME_WAIT
tattle.563           fog2.nfsd            24820      0 24820      0 ESTABLISHED
tattle.51958         fog1.33059           24820      0 24820      0 TIME_WAIT
tattle.51959         fog1.33059           24820      0 24820      0 TIME_WAIT
tattle.51960         fog1.33059           24820      0 24820      0 TIME_WAIT
tattle.51961         fog1.33059           24820      0 24820      0 TIME_WAIT
tattle.562           fog1.nfsd            24820      0 24820      0 ESTABLISHED
tattle.561           apollo.nfsd          65535      0 24820      0 ESTABLISHED
tattle.51962         c-66-31-7-212.hsd1.nh.comcast.net.22  9480      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      tattle
# SSH_CLIENT_DIR  /.ssh/ssh_tunnel/screamer
# SSH_SERVER      screamer
# SSH_SERVER_DIR  /home/tunnels/ssh_tunnel/tattle
#
########################################################################
# 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.tattle

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        243
#
#
################################################################################
# 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.tattle
Compression = yes
RemoteForward = 38222 localhost:22
LocalForward = 38222 localhost:22

################################################################################
Host heartbeat
HostName localhost
Port = 38222
UserKnownHostsFile = /.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /.ssh/ssh_tunnel/screamer/id_rsa.tattle

################################################################################
Host pulse
HostName localhost
Port = 38222
UserKnownHostsFile = /home/tunnels/ssh_tunnel/tattle/known_hosts
User = root
IdentityFile = /home/tunnels/ssh_tunnel/tattle/id_rsa.tattle

################################################################################
# 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.tattle