Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, October 5, 2015

Argus Examples (ra, racount, racluster, rabins, rasort)

Argus is a data network transaction auditing tool originally developed at CERT in 1993. 

This article made a brief summary for the usage of some Argus tools: ra, racount, racluster, rabins & resort, based on past experience. For more detailed documentation, please refer to http://qosient.com/argus/manuals.shtml 

1. List traffic records under certain filtering condition 
ra -r filename.arg - tcp //list all TCP records 

2. Display records statistics 
racount -r filename.arg - udp port domain //display record/packet/byte counts with DNS filtering 

3. Process traffic data into structured ‘bins’ (usually time bins) 
rabins -r filename.arg -M time 1h -m srcid -s load //align data into hourly bins, aggregates on srcid and display load (bps) for each hourly aggregation 

4. Aggregate traffic data and sort (For example, find out what IP address is receiving the most traffic) 
racluster -r filename.arg -m daddr -w - | rasort -r - -m sbytes -s daddr sbytes //use racluster tool to aggregate the records by destination address then pass the aggregated output to rasort tool to sort on the source to destination transaction bytes in descending order

Install Autoconf, Automake and Libtool on Mac OS X

I am currently working on a speech recognition related project and want to install an open source library that does the backend computation on my laptop. 

To install the library, aclocal, autoconf, automake and libtool are required. 

However, according to some blog articles, Mac OS X stopped to support auto tools ever since Xcode 4.4.1. 

Below are scripts I learned from other bloggers to manually install auto tools:

export build=~/devtools # or wherever you'd like to build
mkdir -p $build

cd $build
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.68.tar.gz
tar xzf autoconf-2.68.tar.gz
cd autoconf-2.68
./configure --prefix=$build/autotools-bin
make
make install
export PATH=$PATH:$build/autotools-bin/bin

cd $build
curl -OL http://ftpmirror.gnu.org/automake/automake-1.11.tar.gz
tar xzf automake-1.11.tar.gz
cd automake-1.11
./configure --prefix=$build/autotools-bin
make
make install

cd $build
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.tar.gz
tar xzf libtool-2.4.tar.gz
cd libtool-2.4
./configure --prefix=$build/autotools-bin
make
make install