-
-
04 Nov 2008 12:08:23 UTC
- Development release
- Distribution: Net-Arping
- Module version: 0.03_01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (12 / 11 / 0)
- Kwalitee
Bus factor: 0- License: unknown
- Activity
24 month- Tools
- Download (5.61KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Oleg Prokopyev, Radoslaw Zielinski <radek@pld-linux.org>
- Dependencies
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::Arping - Ping remote host by ARP packets
SYNOPSIS
use Net::Arping; $q = Net::Arping->new(); $result = $q->arping($host); if ($result) { print "wow... it is alive... Host MAC address is $result\n"; } else { print "Sorry , but $host is dead...\n"; } You can also specify source interface and timeout. Default timeout is 1 second. $result = $q->arping(Host => $host, Interface => 'eth0', Timeout => 4); if ($result) { print "wow... it is alive... Host MAC address is $result\n"; } else { print "Sorry, but $host is dead on device eth0...\n"; }
DESCRIPTION
The module contains function for testing remote host reachability by sending ARP packets.
The program must be run as root or be setuid to root.
This module uses the libnet and pcap libraries, available here: http://www.packetfactory.net/libnet/ http://www.tcpdump.org/#latest.
FUNCTIONS
- Net::Arping->new();
-
Create a new arping object.
- $q->arping($host)
- $q->arping(Host => $host [, Interface => $interface, Timeout => $sec ])
-
Arping the remote host. Interface and Timeout parameters are optional. Default timeout is 1 second. Default device is selected by libnet_select_device function.
COPYRIGHT
Copyright (c) 2002 Oleg Prokopyev. All rights reserved. It's a free software. You can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
pcap(3), libnet(3)
AUTHOR
Oleg Prokopyev, <riiki@gu.net>
Maintained by Radoslaw Zielinski <radek@pld-linux.org>.
Module Install Instructions
To install Net::Arping, copy and paste the appropriate command in to your terminal.
cpanm Net::Arping
perl -MCPAN -e shell install Net::Arping
For more information on module installation, please visit the detailed CPAN module installation guide.