New Zealand ADSL Mailing List


Dynalink RTA020

From: David Mill <maildave_at_inspire.net.nz>
Date: Fri, 5 Jul 2002 09:19:56 +1200
Message-ID: <005c01c223a0$8bc94c40$1c0a000a@dave>

Most peoples queries I think have been answered by now, but here is a cut
down history from my telnet sessions and bash_history files. Should help
people get MRTG and SNMP on the Dynalink configured.

This was done a debian machine, which is a mix between sid and experimental.
Should work fairly similar on any linux machine tho. Heaps of help is also
available on
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/unix-guide.html.

hax0r:/home/term# telnet 192.168.0.1
Trying 192.168.0.1...
Connected to 192.168.0.1.
Escape character is '^]'.
password:
logged on; type `@close' to close connection.
00:90:96:19:08:E4 nat> home
00:90:96:19:08:E4> ip
00:90:96:19:08:E4 ip> snmp

Commands are:

  ? access config help
  trap version

  '.' repeats the last command
Type "snmp help all" or "snmp help <command>" for more details

<---

 This stuff is the important part. Basically it means the Dynalink is
accesible using public@ip.address. This also may cause various security
issues. Need to look into this

----->

00:90:96:19:08:E4 ip> snmp access
access read public
access write private

<--- This next bit is just help - might be useful ----->

00:90:96:19:08:E4 ip> snmp access help
Syntax:
  snmp access [read | write] <community> [<IP addr>]
                   - allow read-only or read-write access
  snmp access delete <community> [<IP addr>]
                   - revoke specified access
  snmp access flush
                   - revoke all access
  snmp access list - list allowed access

Now I get along to sorting out MRTG, most of this is just extracts from
bash_history along with comments.

wget http://freshmeat.net/redir/gd/3111/url_tgz/gd-1.8.4.tar.gz
tar xfz gd-1.8.4.tar.gz
wget http://www.gzip.org/zlib/zlib-1.1.4.tar.gz
wget http://belnet.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.3.tar.gz
tar xfz libpng-1.2.3.tar.gz
cd libpng-1.2.3
cp scripts/makefile.linux .
cp makefile.linux Makefile
make
make install
cd ..
tar xfz zlib-1.1.4.tar.gz
cd zlib-1.1.4
./configure
make ; make install
cd ..
<--- i got bored about here and decided to rely on apt a bit
apt-get install libjpeg62
apt-get install libjpeg62-dev
cd gd-1.8.4
make
make install
cd ..
wget http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-2.9.18.tar.gz
tar xfz mrtg-2.9.18.tar.gz
cd mrtg-2.9.18
./configure
make
make install
mkdir /usr/local/apache/htdocs/mrtg
/usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir:
/usr/local/apache/htdocs/mrtg' --global 'Options[_]:
bits,growright'
        --output /etc/mrtg.cfg public@192.168.0.1
cd /usr/local/apache/htdocs/mrtg/
/usr/local/mrtg-2/bin/mrtg /etc/mrtg.cfg
ls -la

Everything should be sussed now. After here you probably want to tweak
MRTG's config so that it just shows interface 2 and possibly 18 on the
Dynalink. I normally changes bits to bytes as well (just remove the entry
regarding kbits)

If anyone tries this on a 210 let me know if it works.

Regards,

David Mill

-- 
This message is part of the NZ ADSL mailing list. 
see http://unixathome.org/adsl/ for archives, FAQ, 
and various documents. 
To unsubscribe: send mail to majordomo@lists.unixathome.org 
with "unsubscribe adsl" in the body of the message 
 
Received on Fri Jul 5 09:20:09 2002

This archive was generated by hypermail 2.2.0 : Thu Nov 30 11:48:23 2006 EST