+p10cfgd (1.0-11) unstable; urgency=low
+
+ * update to current standards, clear lintian report
+
+ -- Bdale Garbee <bdale@gag.com> Tue, 1 Jan 2002 10:39:47 -0700
+
+p10cfgd (1.0-10) unstable; urgency=low
+
+ * update to latest standards, add Build-Depends, move to FHS
+
+ -- Bdale Garbee <bdale@gag.com> Fri, 7 Jan 2000 20:32:57 -0700
+
+p10cfgd (1.0-9) unstable; urgency=low
+
+ * update control file to depend on perl5 instead of perl, per new perl policy
+
+ -- Bdale Garbee <bdale@gag.com> Sat, 17 Jul 1999 17:46:21 -0600
+
+p10cfgd (1.0-7) unstable; urgency=low
+
+ * fixing minor problem with .orig.tar.gz file
+ * moving to cvs and updating a few details in the process
+
+ -- Bdale Garbee <bdale@gag.com> Sun, 20 Jun 1999 08:02:21 -0600
+
+p10cfgd (1.0-6) unstable; urgency=low
+
+ * address lintian errors
+ * move from debstd to debhelper
+
+ -- Bdale Garbee <bdale@gag.com> Tue, 10 Feb 1998 00:37:22 -0700
+
+p10cfgd (1.0-5) unstable; urgency=low
+
+ * Move executable to /usr/sbin, make it executable. Closes bug 8281.
+ * Include some 'expect' scripts in examples directory showing how to extract
+ stats from a Packeten.
+
+ -- Bdale Garbee <bdale@gag.com> Sun, 27 Apr 1997 23:47:13 -0600
+
p10cfgd (1.0-4) unstable; urgency=low
* New package format.
Section: hamradio
Priority: extra
Maintainer: Bdale Garbee <bdale@gag.com>
-Standards-Version: 2.1.0.0
+Build-Depends-Indep: debhelper
+Standards-Version: 3.5.6.0
Package: p10cfgd
Architecture: all
-Depends: netbase (>=1.23), perl
+Depends: netbase (>=1.23), perl5
Description: Remote configuration daemon for Gracilis Packeten.
The 'p10cfgd' daemon provides support for the 'rmtcfg' command in the
Gracilis Packeten amateur radio network packet switch. With this daemon,
--- /dev/null
+usr/sbin
+usr/share/doc
+usr/share/man/man1
# add our entry to the /etc/inetd.conf file
-update-inetd --group "HAM-RADIO" --add "rmtcfg stream tcp nowait root /usr/bin/p10cfgd p10cfgd"
-
+update-inetd --group "HAM-RADIO" --add "rmtcfg stream tcp nowait root /usr/sbin/p10cfgd p10cfgd"
+#DEBHELPER#
# clean up the /etc/inetd.conf file
-update-inetd --disable rmtcfg
+update-inetd --remove rmtcfg
+#DEBHELPER#
#!/usr/bin/make -f
-# Sample debian.rules file - for GNU Hello (1.3).
-# Copyright 1994,1995 by Ian Jackson.
-# I hereby give you perpetual unlimited permission to copy,
-# modify and relicense this file, provided that you do not remove
-# my name from the file itself. (I assert my moral right of
-# paternity under the Copyright, Designs and Patents Act 1988.)
-# This file may have to be extensively modified
-# There used to be `source' and `diff' targets in this file, and many
-# packages also had `changes' and `dist' targets. These functions
-# have been taken over by dpkg-source, dpkg-genchanges and
-# dpkg-buildpackage in a package-independent way, and so these targets
-# are obsolete.
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-package=p10cfgd
-
-build:
- $(checkdir)
- touch build
+build: build-stamp
+build-stamp:
+ dh_testdir
+ touch build-stamp
clean:
- $(checkdir)
- -rm -f build
- -rm -rf *~ debian/tmp debian/*~ debian/files*
-
-binary-indep: checkroot build
- $(checkdir)
-
-binary-arch: checkroot build
- $(checkdir)
- -rm -rf debian/tmp
- install -d debian/tmp/usr/bin debian/tmp/usr/man/man1
- install -g root -m 755 -o root p10cfgd debian/tmp/usr/bin/p10cfgd
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ dh_clean
+
+# Build architecture-independent files here.
+binary-indep: build
+
+# Build architecture-dependent files here.
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ install -g root -m 755 -o root p10cfgd debian/tmp/usr/sbin/p10cfgd
install -g root -m 644 -o root p10cfgd \
- debian/tmp/usr/man/man1/p10cfgd.1
- debstd $(package) CHANGES INSTALL README* TODO
- dpkg-gencontrol
- chown -R root.root debian/tmp
- chmod -R g-ws debian/tmp
- dpkg --build debian/tmp ..
-
-define checkdir
- test -f debian/rules
-endef
-
-# Below here is fairly generic really
-
-binary: binary-indep binary-arch
-
-source diff:
+ debian/tmp/usr/share/man/man1/p10cfgd.1
+ dh_installdocs
+ dh_installexamples examples/*
+ dh_installmenu
+ dh_installcron
+ dh_installmanpages
+ dh_installchangelogs
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-checkroot:
- $(checkdir)
- test root = "`whoami`"
-
-.PHONY: binary binary-arch binary-indep clean checkroot
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
--- /dev/null
+These are some simple 'expect' scripts written by John Conner WD0FHG to help
+gather stats from Packeten switches, along with sample outputs from some of
+the scripts.
+
+These will require substantial modification for use in other environments, but
+hopefully get the point across that interacting with a switch using 'expect'
+is pretty easy.
+
+Bdale
--- /dev/null
+Mon Nov 6 16:08:17 1995
+spawn telnet 44.32.0.32
+Trying 44.32.0.32...
+Connected to 44.32.0.32.
+Escape character is '^]'.
+
+Gracilis NOS302 (gw.wd0fhg)
+
+Callsign / login: WD0FHG
+Password:
+
+
+Gracilis NOS302 NET/ROM Emulator
+j
+ax4:
+Callsign Last Heard Packets Callsign Last Heard Packets
+WD0FHG 0:00:03:23 14
+A6YKE0-1 0:05:56:56 1 WA6YKE 0:05:20:06 176
+N0UOD 0:00:11:44 912 K0YUM 0:05:23:34 10
+KE0GB-1 0:00:13:27 7025 N0NJY-2 0:00:01:06 2720
+KE0GB 0:19:28:27 7 KB0KQH-3 0:00:12:59 4596
+N0NJY 0:00:05:12 1970 K0QDF 0:20:22:06 355
+ax1:
+Callsign Last Heard Packets Callsign Last Heard Packets
+WD0FHG 0:00:09:16 9
+WA6YKE 0:05:23:36 3 K0YUM 0:00:07:09 16045
+KE0GB-1 0:00:03:53 34343 KE0GB 0:17:26:03 65
+N0IAK 0:00:05:33 38735 N3EUA-8 0:00:09:39 3912
+N0QCU 0:00:36:54 260
+@
+The escape character is: CTRL-X
+$empire>uptime
+Time since last system restart: 1 Week(s), 3 Days, 02:17:08
+$empire>syncstat
+PackeTen Switch Sync Channel Statistics
+
+68302 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf
+----- --------- ------- ------ ------ ---- --------- ------- ----- ------
+ 1 14976052 189537 7185 59938 8 93915 1580 0
+0
+
+8530 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf
+----- --------- ------- ------ ------ ---- --------- ------- ----- ------
+ 4 2394020 21908 1685 16012 3 139103 1878 1
+0
+
+$empire>asystat
+PackeTen Switch Async Channel Statistics
+
+Dev Name 302 RxChars TxChars Overruns FramingErrs
+-------- ---- --------- --------- -------- -----------
+ sl0 0 0 0 0 0
+ sl2 2 121948 180044 0 0
+
+
+$empire>dom db
+ppfma.ampr.org. 480000 IN A 44.32.4.2
+ke0gb.ampr.org. 480000 IN A 44.32.4.80
+k0yum.ampr.org. 86400 IN A 44.20.15.195
+$empire>route
+Dest Len Interface Gateway Metric P Timer Use
+44.32.0.33 32 sl0 1 0 0
+44.32.0.34 32 sl2 1 0 2661
+44.32.0.2 32 ax1 44.32.4.1 1 0 1
+44.32.0.80 30 ax1 44.32.4.80 1 0 0
+44.20.0.192 29 ax1 44.32.4.192 1 0 10
+44.32.0.72 29 ax1 44.32.4.72 1 0 0
+44.32.0.0 28 ax1 44.32.4.1 1 0 0
+44.32.4.0 24 ax1 1 0 1017
+44.32.0.0 23 ax4 1 0 427
+44.20.0.0 16 ax1 44.32.4.16 1 0 401
+default 0 ax1 44.32.4.16 1 0 0
+$empire>exit
+Leaving Sysop mode...
+
+b
+Connection closed by foreign host.
--- /dev/null
+#!/usr/local/bin/expect --
+# a dumb little 'expect' program to check the status of gw.wd0fhg.ampr.org
+
+set timeout 5
+set addr "44.32.0.32"
+set call "WD0FHG"
+set pass ""
+set prompt "empire>*"
+
+puts [timestamp -format %c] ;# time tag the output
+
+spawn telnet $addr
+expect "login: " { send "$call\r" }
+expect "word: " { send "$pass\r" }
+
+expect "NET/ROM*" { send "j \r" } ;# for now we will just look at ax0
+
+expect { ;# no easy way to tell that the list is
+ ;# complete so we'll just time out
+ "NET/WRONG*" {} ;# looking for we can't find.
+ }
+
+expect "*" { send "\r@\r" };# flush the expect buffer and go to sysop
+
+expect $prompt { send "uptime\r" }
+expect $prompt { send "syncstat\r" }
+expect $prompt { send "asystat\r" }
+expect $prompt { send "dom db\r" }
+expect $prompt { send "route\r" }
+expect $prompt { send "exit\r" }
+
+expect "mode...*" { }
+
+expect "*" { send "\rb\r" };# flush the expect buffer and signoff
+
+expect "closed*" ;# wait for the connection to close
+
+exec sleep 3
+
+expect eof
+
--- /dev/null
+non Nov 6 16:08:49 1995
+spawn telnet 44.32.4.2
+Trying 44.32.4.2...
+Connected to 44.32.4.2.
+Escape character is '^]'.
+
+Gracilis NOS302 (ppfma)
+
+Callsign / login: N3EUA-8
+Password:
+
+
+Gracilis NOS302 NET/ROM Emulator
+j ax0
+ax0:
+Callsign Last Heard Packets Callsign Last Heard Packets
+N3EUA-8 0:00:00:00 15
+K0YUM 0:00:07:44 812 KE0GB-1 0:00:04:29 33105
+N0IAK 0:00:06:09 37363 WD0FHG 0:00:00:00 43
+N0QCU 0:00:37:30 89
+
+@
+The escape character is: CTRL-X
+$cos>uptime
+Time since last system restart: 1 Week(s), 1 Days, 19:05:50
+$cos>syncstat
+PackeTen Switch Sync Channel Statistics
+
+68302 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf
+----- --------- ------- ------ ------ ---- --------- ------- ----- ------
+ 0 14454936 171144 33867 25599 8 302487 3021 0
+0
+
+8530 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf
+----- --------- ------- ------ ------ ---- --------- ------- ----- ------
+ 4 23567157 565579 144553 544228 3 882763 27605 0
+0
+
+Channel 1 is UN-attached
+Channel 2 is UN-attached
+$cos>asystat
+PackeTen Switch Async Channel Statistics
+
+
+Channel 1 is UN-attached
+Channel 2 is UN-attached
+
+$cos>exit
+Leaving Sysop mode...
+
+b
+Connection closed by foreign host.
--- /dev/null
+#!/usr/local/bin/expect --
+# a dumb little 'expect' program to check the status of ppfma.ampr.org
+
+set timeout 5
+set addr "44.32.4.2"
+set call "N3EUA-8"
+set pass ""
+set prompt "cos>*"
+
+puts [timestamp -format %c] ;# time tag the output
+
+spawn telnet $addr
+expect "login: " { send "$call\r" }
+expect "word: " { send "$pass\r" }
+
+expect "NET/ROM*" { send "j ax0\r" } ;# for now we will just look at ax0
+
+expect { ;# no easy way to tell that the list is
+ ;# complete so we'll just time out
+ "NET/WRONG*" {} ;# looking for we can't find.
+ }
+
+expect "*" { send "\r@\r" };# flush the expect buffer and go to sysop
+
+expect $prompt { send "uptime\r" }
+expect $prompt { send "syncstat\r" }
+expect $prompt { send "asystat\r" }
+expect $prompt { send "exit\r" }
+
+expect "mode...*" { }
+
+expect "*" { send "\rb\r" };# flush the expect buffer and signoff
+
+expect "closed*" ;# wait for the connection to close
+
+exec sleep 3
+
+expect eof
+
--- /dev/null
+#!/usr/local/bin/expect --
+# a dumb little 'expect' program to check the heard list on ppfma.ampr.org
+
+set timeout 15
+
+puts [timestamp -format %c] ;# time tag the output
+
+spawn telnet 44.32.4.2
+expect "login: " { send "wd0fhg\r" }
+
+expect "NET/ROM*" { send "j\r" } ;# for now we will just look at all
+
+expect { ;# no easy way to tell that the list is
+ ;# complete so we'll just time out
+ "NET/WRONG*" {} ;# looking for we can't find.
+ }
+
+expect "*" { send "\r\r" };# flush the expect buffer
+
+expect "*" { send "c ax4 w0lkd-1\r" } :# try to connect on .01
+
+expect "Connected" {send "\rb\r" } ;# just try the connection
+
+expect "*" { send "\rb\r" };# flush the expect buffer and signoff
+
+expect "closed*" ;# wait for the connection to close
+
+exec sleep 3
+
+expect eof
+