Re: Antw: Re: Q: ping (ocf:pacemaker:ping) from specific address?
"Ulrich Windl" <[email protected]>
| Newsgroups | gmane.linux.highavailability.user |
|---|---|
| Message-ID | <[email protected]> |
>>> Dimitri Maziuk <[email protected]> schrieb am 04.09.2014 um 20:05 in Nachricht <[email protected]>: > On 09/04/2014 09:23 AM, Ulrich Windl wrote: > >> 2) You can use an IP address as "interface" for -I >> 3), but you cannot use a hostname (resolving to the same IP address as in > 2)): >> "ping: unknown iface <hostname>" > > Uhmm... ping -I `host <hostname> | awk '{print $NF;}'` ? Yes, I had that in mind, but I think specifying option="-I `host <hostname> | awk '{print $NF;}'`" is at least non-portable (assuming that the options are evaluated by some shell). > > -- > Dimitri Maziuk > Programmer/sysadmin > BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems