There is one catch while you compile & install in Ubuntu since the object_statstransfer.c , object_sleeper.c uses CLK_TCK i think CLK_TCK obsolete we have to use CLOCKS_PER_SEC instead. But i just defined as followed in the both files.
/* Define my constant */
#define CLK_TCK 100
Installation process :
1 ) gunzip -c neo-1.3.1.tar.gz | tar xvf -
2 ) cd neo-1.3.1
3 ) ./configure
4 ) Do the relevant changes as explained earlier in the both source files.
5 ) make
6 ) make install
neo has its own command line. But basic things you need to get ip to port map two command arpfind , locate .
Before doing that you can define the switches & the core router in one file. (router needed to find the ip to arp resolution)
if you want to find the relevant ip to arp mapping you could issue the command as
neo -c "community string" arpfind
This will give u the arp address ,
then you can issue the location command to locate the port number.
neo -c "community string" locate
I've combined both into one perl script. I haven't use the community string here since i complied the default community as relevant string. You can change the community string while compiling (
#Arp to IP Mapper Argument as host
$arg = $ARGV;
#To save the actual arp
$real_arp = "";
#Identify the arp of the host
@arp = `neo arpfind $arg \@f:/root/gobi/neo-1.3.1/switches`;
if ($_ =~ /says/)
$real_arp = substr($_,-18);
@port = `neo locate -u $real_arp \@f:/root/gobi/neo-1.3.1/switches`;
root@--:~/gobi# ./run.pl 192.168.29.2
Found on firstname.lastname@example.org
Found on email@example.com
I'm doing some reverse mapping also using simple snmp queries like
@ip2arp_tbl = `snmpwalk -c "public" -v 2c 192.168.0.99 "ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress"`; I'll give that in a different post if successful .