how to save arp logs

Taking care of your Linux box.
Post Reply
smk08
Naik
Posts: 56
Joined: Fri Aug 08, 2008 1:44 pm
Location: Sheikhupura, Pakistan

how to save arp logs

Post by smk08 »

Asslamu Alaikum

dear friends kindly guide me how to save arp entries in log files.




Jazaku Mullah
Shahid Mahmood
0321-4538113
i am crazy to learn linux
osama
Havaldaar
Posts: 117
Joined: Fri Aug 22, 2008 9:08 am

Re: how to save arp logs

Post by osama »

smk08 wrote:
Jazaku Mullah
Jazaku Mullah ???
smk08
Naik
Posts: 56
Joined: Fri Aug 08, 2008 1:44 pm
Location: Sheikhupura, Pakistan

Post by smk08 »

Asslamu Alaikum

dear this meant that Allah SWT will give you reward for the help.
Shahid Mahmood
0321-4538113
i am crazy to learn linux
osama
Havaldaar
Posts: 117
Joined: Fri Aug 22, 2008 9:08 am

Post by osama »

Easy way is

# tcpdump arp > /arparp


I think its like

Jazak Allah
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

you probably want

Code: Select all

tcpdump -n -w /var/log/arp.dump arp
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
osama
Havaldaar
Posts: 117
Joined: Fri Aug 22, 2008 9:08 am

Post by osama »

lambda wrote:you probably want

Code: Select all

tcpdump -n -w /var/log/arp.dump arp
Packets will be in raw form doing this.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

yes, but then you can load them up into any program that understands the tcpdump format -- wireshark, etc.

i don't see why any of this is necessary: arpwatch should take care of this problem.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Post Reply