From: Richard Brown <richard.e.brown@dartware.com>
To: "cerowrt-devel@lists.bufferbloat.net"
<cerowrt-devel@lists.bufferbloat.net>
Subject: Re: [Cerowrt-devel] Scripting CeroWrt config
Date: Fri, 10 Feb 2012 19:33:52 -0800 [thread overview]
Message-ID: <38AC9513-7B32-4A97-A5C8-D0CB63A1244C@intermapper.com> (raw)
In-Reply-To: <mailman.2.1328904001.31486.cerowrt-devel@lists.bufferbloat.net>
> > What's the best way to script this?
>
> #!/bin/sh
>
> opkg update
> opkg install snmpd fprobe
> sed -i s/172.30.42/192.168.2/g /etc/config/* /etc/babeld.conf (etc -
> the full string is on the wiki)
> # etc, etc
Bingo! The attached script is *much* easier than configuring it by hand.
Rich
#!/bin/sh
# Install and configure the various bits of the
# CeroWrt router for my preferred setup.
# 10 Feb 2012 -reb
#
# ssh root@172.30.42.1
# cd /tmp
# cp > config.sh
# [paste in the contents of this file, then hit ^D]
# sh config.sh
# Presto!
opkg update # retrieve updated packages
opkg install snmpd fprobe # install snmpd & fprobe
/etc/init.d/snmpd start # default snmpd config uses 'public'
/etc/init.d/snmpd enable # community string for SNMPv1 & SNMPv2c
# Start fprobe now to send netflow records to local netflow
# collector at 192.168.2.13 (I use http://intermapper.com)
fprobe -i ge00 -f ip -d 15 -e 60 192.168.2.13:2055
# Also edit /etc/rc.local to add the same command
# so that it will start after next reboot
sed -i '$ i\
fprobe -i ge00 -f ip -d 15 -e 60 192.168.2.13:2055' /etc/rc.local
next parent reply other threads:[~2012-02-11 3:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2.1328904001.31486.cerowrt-devel@lists.bufferbloat.net>
2012-02-11 3:33 ` Richard Brown [this message]
[not found] <mailman.0.1328817602.19893.cerowrt-devel@lists.bufferbloat.net>
2012-02-09 22:25 ` Richard Brown
2012-02-10 2:32 ` Dave Taht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38AC9513-7B32-4A97-A5C8-D0CB63A1244C@intermapper.com \
--to=richard.e.brown@dartware.com \
--cc=cerowrt-devel@lists.bufferbloat.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox