Sponsored Content
Top Forums Shell Programming and Scripting getting mac from ip (or the contrary) Post 302296505 by chebarbudo on Wednesday 11th of March 2009 08:15:51 AM
Old 03-11-2009
getting mac from ip (or the contrary)

Hi there,
I need to find a way to check that a remote machine got the correct ip address. I have a dhcp server and need to run some commands after machine M acquired address A.
There are lots of reasons why machine M could have another address:
1) DHCP not reloaded
2) Machine M offline or powered off
3) Machine M has not renewed its ip address

Is there a way to do one of the following?
Code:
if [$(getmacfromip $ip) == $mac]; then ...
if [$(getipfrommac $mac) == $ip]; then ...

Can you help me lead me in the right direction?
Thanks in advance
Santiago
 

We Also Found This Discussion For You

1. OS X (Apple)

Let's get a .mac top level domain! As in www.xyz.mac

ICANN, the Internet Corporation for Assigned Names and Numbers, is inviting proposals for new sponsored top level domains. This may be wishful thinking, but isn't that a chance to push for a .mac top level domain (TLD)? I for one would VASTLY like the idea of having a domain of something.mac --... (0 Replies)
Discussion started by: ropers
0 Replies
bt-serial(1)							    bluez-tools 						      bt-serial(1)

NAME
bt-serial - a bluetooth serial manager SYNOPSIS
bt-serial [OPTION...] Help Options: -h, --help Application Options: -a, --adapter=<name|mac> -c, --connect <name|mac> <pattern> -d, --disconnect <name|mac> <tty_device> DESCRIPTION
This utility is used to manage serial service connections. OPTIONS
-h, --help Show help -a, --adapter <name|mac> Specify adapter to use by his Name or MAC address (if this option does not defined - default adapter used) -c, --connect <name|mac> <pattern> Connects to a specific RFCOMM based service on a remote device and then creates a RFCOMM TTY device for it; `pattern` is a profile short name (spp, dun), RFCOMM channel (1-30) -d, --disconnect <name|mac> <tty_device> Disconnect a RFCOMM TTY device that has been created AUTHOR
Alexander Orlenko <zxteam@gmail.com>. SEE ALSO
bt-adapter(1) bt-agent(1) bt-audio(1) bt-device(1) bt-input(1) bt-monitor(1) bt-network(1) 2010-08-12 bt-serial(1)
All times are GMT -4. The time now is 09:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy