Yana (yet another network analyzer) 0.3.0/CLI Utilities/chkip

From SK:: Wiki

Jump to: navigation, search

← Back


Warning
works under root / admin privileges due to sockets use.

To run at user privileges under *NIX:

su
chmod 4755 chkip

Contents

NAME

chkip - check network hosts presence in a given address range

SYNOPSIS

chkip [-rgm] [-p protocol_to_use] [-s packet_size] [-t timeout] [-d dns_to_use] first_ip_address [last_ip_address]

DESCRIPTION

chkip pinging using different techniques, every ip address in a range between first_ip_address .. last_ip_address. If reply is received host IP address followed by reply time is printed in a list form. Depending on command line options, host name, MAC (hardware) address and SNMP SysDescr value may be printed as well.

OPTIONS

-r
Resolve host name using DNS.
-g
Get MAC address from host.
-m
Get snmp SysDescr from host.
-p protocol_to_use
Protocol to be used to ping. Could be [icmp|udp|snmp|arp|all]. Default is icmp.
-s packet_size
Specifies the number of data bytes to be sent. The default is 56, which translates into 64 ICMP data bytes when combined with the 8 bytes of ICMP header data.
-t timeout
Timeout in ms, Default is 50, assuming chkip is working in LAN.
-d dns_to_use
if -r is specified, use given DNS server to resolve host name, By default first DNS will be used. If no DNS present, an error will be returned. If -r is not specified, -d paramater is ignored.
first_ip_address
first address of range to check. Mandatory parameter.
last_ip_address
last address of range. If omitted only first_ip_address will be checked
Personal tools