[Long] Pb avec arpsnmp & linux

Page principale

Répondre à ce message
Auteur: guilde
Date:  
À: guilde
Sujet: [Long] Pb avec arpsnmp & linux
Bonjour,

Quelqu'un utilise arpsnmp avec succès sous linux ?

Parce que de mon côté, le fichier arp.dat reste toujours vide et aucun
mail n'est recu alors que arpfetch me genere bien le fichier de
correspondance @MAC/@IP.

Si quelqu'un a une idée, je suis preneur.

Pourtant lorsque l'on fait un strace, on pourrait penser que tout se
passe bien :

execve("/usr/sbin/arpsnmp", ["arpsnmp", "200.38.0.245"], [/* 33 vars
*/]) = 0
brk(0)                                  = 0x8060b8c
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=11193, ...}) = 0
mmap(0, 11193, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=4118299, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\250\202"...,
4096) = 4096
mmap(0, 993500, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40016000
mprotect(0x40101000, 30940, PROT_NONE)  = 0
mmap(0x40101000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xea000) = 0x40101000
mmap(0x40105000, 14556, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40105000
close(3)                                = 0
mprotect(0x40016000, 962560, PROT_READ|PROT_WRITE) = 0
mprotect(0x40016000, 962560, PROT_READ|PROT_EXEC) = 0
munmap(0x40013000, 11193)               = 0
personality(0 /* PER_??? */)            = 0
getpid()                                = 1255
brk(0)                                  = 0x8060b8c
brk(0x8060d2c)                          = 0x8060d2c
brk(0x8061000)                          = 0x8061000
open("arp.dat", O_RDONLY)               = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40013000, 4096)                = 0
open("ethercodes.dat", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=26201, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
read(3, "0:0:1\tSuperLAN-2U\n0:0:10\tHughes "..., 4096) = 4096
brk(0x8063000)                          = 0x8063000
read(3, ") (also 3Com)\n0:0:dd\tGould\n0:0:d"..., 4096) = 4096
brk(0x8064000)                          = 0x8064000
read(3, "\n0:40:6f\tSync Research Inc\n0:40:"..., 4096) = 4096
brk(0x8065000)                          = 0x8065000
read(3, ":80:3f\tHyundai Electronics\n0:80:"..., 4096) = 4096
brk(0x8066000)                          = 0x8066000
brk(0x8069000)                          = 0x8069000
read(3, "nc.\n0:c0:2d\tFuji Photo Film Co.,"..., 4096) = 4096
read(3, "Informatica\n0:c0:c6\tPersonal Med"..., 4096) = 4096
read(3, "orola\t\t\tVME bus processor module"..., 4096) = 1625
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40013000, 4096)                = 0
open("200.38.0.245", O_RDONLY)          = 3
time(NULL)                              = 943458641
fstat(3, {st_mode=S_IFREG|0777, st_size=9925, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
read(3, ":::c0:9d:9:49\t200.38.0.1:\n:8::38"..., 4096) = 4096
gettimeofday({943458641, 545941}, NULL) = 0
getpid()                                = 1255
open("/etc/resolv.conf", O_RDONLY)      = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40014000
read(4, "search intranet.ac-grenoble.fr\nn"..., 4096) = 54
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x40014000, 4096)                = 0
brk(0x806c000)                          = 0x806c000
time([943458641])                       = 943458641
open("/etc/localtime", O_RDONLY)        = 4
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0"..., 44)
= 44
read(4, "\221`PO\233Gx\360\233\327,p\234\274\221p\235\300H\360\236"...,
915) = 915
fstat(4, {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40014000
read(4, "\0\0\0021\0\0\0\0\16\20\1\4\0\0\0\0\0\t\0\0\16\20\1\4\0"...,
4096) = 123
close(4)                                = 0
munmap(0x40014000, 4096)                = 0
rt_sigaction(SIGPIPE, {0x400c3bf0, [], 0x4000000}, {SIG_DFL}, 8) = 0
socket(PF_UNIX, SOCK_DGRAM, 0)          = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
connect(4, {sun_family=AF_UNIX, sun_path="/dev/log"}, 16) = 0
send(4, "<27>Nov 24 16:50:41 arpsnmp: fil"..., 78, 0) = 78
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
time([943458641])                       = 943458641
rt_sigaction(SIGPIPE, {0x400c3bf0, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(4, "<27>Nov 24 16:50:41 arpsnmp: fil"..., 78, 0) = 78
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
...
time([943458645])                       = 943458645
rt_sigaction(SIGPIPE, {0x400c3bf0, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(4, "<27>Nov 24 16:50:45 arpsnmp: fil"..., 84, 0) = 84
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40013000, 4096)                = 0
open("arp.dat.new", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 3
fcntl(3, F_GETFL)                       = 0x1 (flags O_WRONLY)
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
_llseek(3, 0, [0], SEEK_CUR)            = 0
close(3)                                = 0
munmap(0x40013000, 4096)                = 0
rename("arp.dat", "arp.dat-")           = 0
rename("arp.dat.new", "arp.dat")        = 0
_exit(0)                                = ?