help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: IP address question


From: Dennis, Richard
Subject: RE: IP address question
Date: Wed, 1 Oct 2003 15:55:22 -0400

#!/bin/sh
#
# Module:getLocalIP

IPADDR=`/sbin/ifconfig eth0 | awk '/inet addr/{print $2}' | sed 's/addr://'`
echo "=MyIP="$IPADDR



-----Original Message-----
From: Systems Administrator [mailto:sysadmin@sunet.com.au] 
Sent: Wednesday, October 01, 2003 3:31 AM
To: Mark.Burgess@iu.hio.no
Cc: help-cfengine@gnu.org
Subject: Re: IP address question


On Wed, 1 Oct 2003 Mark.Burgess@iu.hio.no wrote:

> Someone else got this once because they had defined their own host as 
> localhost in files or dns. A reverse lookup effect.

        Right.  Phooey.  That means that I have to use ifconfig to get my 
other IP.  

        :)

> 
> M
> 
> On  1 Oct, Systems Administrator wrote:
> >     Hi all.  Does anyone know how cfengine determines $(ipaddress)?
> > Because mine is currently giving 127.0.0.1.  
> > 
> >     :)
> > 
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 

-- 
Tim Nelson
Systems Administrator
Sunet Internet
Tel: +61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: sysadmin@sunet.com.au




_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org http://mail.gnu.org/mailman/listinfo/help-cfengine

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]