User Tools

Site Tools


informatique:logiciels:arpwatch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

informatique:logiciels:arpwatch [2017/08/28 14:10] – créée pteuinformatique:logiciels:arpwatch [2025/10/21 13:10] (current) – [Afficher les dates au format lisible] pteu
Line 65: Line 65:
 Aug 28 16:06:00 ipscc2 arpwatch: bogon 192.168.1.112 0:25:90:0:11:c Aug 28 16:06:00 ipscc2 arpwatch: bogon 192.168.1.112 0:25:90:0:11:c
 Aug 28 16:06:02 ipscc2 arpwatch: bogon 0.0.0.0 0:a0:98:0:11:50 Aug 28 16:06:02 ipscc2 arpwatch: bogon 0.0.0.0 0:a0:98:0:11:50
 +</code>
 +
 +=====Tips=====
 +
 +====Afficher les dates au format lisible====
 +
 +Par défaut les dates journalisées par arpwatch sont au format UNIX, qui n'est pas lisible. On peut les convertir avec la commande suivante:
 +<code bash>
 +# avant
 +head -1 /var/lib/arpwatch/arp.dat
 +0:1e:6:32:bc:31 10.0.3.154    1759842498      odroid-test
 +
 +# avec la conversion de la date
 +head -1 /var/lib/arpwatch/arp.dat | awk '{print $1,$2,strftime("%Y:%m:%d_%H:%M:%S", $3),$4}'
 +0:1e:6:32:bc:31 10.0.3.154 2025:10:07_15:08:18 odroid-test
 </code> </code>
informatique/logiciels/arpwatch.txt · Last modified: 2025/10/21 13:10 by pteu