[Spacewalk-list] Getting IP address of system

Jan Pazdziora jpazdziora at redhat.com
Fri Apr 8 08:09:52 UTC 2011


On Thu, Apr 07, 2011 at 05:41:39PM -0400, Josh.Mullis at cox.com wrote:
> 
> Can anyone tell me what the "spacewalk-report inventory" command does to get the ip_address (4th) field?
> 
> The API call "getNetwork" does not return the same ip as spacewalk-report in some cases.
> 

Right. The getNetwork tries to return IP address for eth0* and eth1*
first and then tries to avoid 127.0.0.1. The report merely returns
IP address of the first device it finds in the database.

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list