I browse the source code, and find it in sysinfo.c
It seems "sys.ipv4" is the only missing one :)
2009/12/17 Mark Burgess
>
> I'll look into a workaround for this. Clearly it needs to be fixed.
>
> The documentation is built automatically from the code, so all the
> different
> interfaces make i
I'll look into a workaround for this. Clearly it needs to be fixed.
The documentation is built automatically from the code, so all the different
interfaces make it tricky in this case.
Erlend Leganger wrote:
> 2009/12/17 flex
>> Thank you very much, it is useful!
>> But there is no mention of t
2009/12/17 flex
>
> Thank you very much, it is useful!
> But there is no mention of this builtin variable in the "cf3-Reference.pdf",
> how could you find this?
>
sys.ipv4 is mentioned a couple of times en passent in the cf3
reference, see for example
http://www.cfengine.org/manuals/cf3-reference
Thank you very much, it is useful!
But there is no mention of this builtin variable in the "cf3-Reference.pdf",
how could you find this?
2009/12/16 Mark Burgess
>
> Cfengine gives the address on the interface, like in the following from my
> host.
> There are too many possibilities to document i
Cfengine gives the address on the interface, like in the following from my host.
There are too many possibilities to document in the manual -- each interface
can have
a different name/address etc
$(sys.ipv4) 192.168.1.100
$(sys.ipv4[wlan0]) 192.168.1.100
$(sys.ipv4_1[wlan0]) 192
Can you tell us why you need to know the IP address? There might be
another way to meet that end result.
Sincerely,
--
Neil Watson
416-673-3465
CONFIDENTIALITY WARNING
This communication, including any attachments, is for the exclusive use of
addressee and may contain proprietary and/or con
Er...It's my fault not explaining my demands clearly...
I want to use cfengine3 to set my hostname which contains a part of the ip
address...
The only way i can find is using shell script to "grep" it from the output
of "ifconfig", and someone tells me in cfengine2 there is a builtin variable
so i
> HI, everyone, is there a way to get local ip address in cfengine3?
Hi,
You could use the builtin variable for hostname $(sys.fqhost) and use that to
get the ip from you nameservice
Perhaps something in the lines of:
"ip" string => execresult("host $(sys.fqhost) | sed -ne 's/$(sys.fqhost) ha
I am also aware the hard class name, but is there any way i can put the
"classname" into a variable or a system variable such as sys.resolv?
2009/12/16 Robert Markula
> Hi unknown sender,
>
> help-cfengine-requ...@cfengine.org wrote:
> > HI, everyone, is there a way to get local ip address in cf
Hi unknown sender,
help-cfengine-requ...@cfengine.org wrote:
> HI, everyone, is there a way to get local ip address in cfengine3?
You can get the local IP in form of a cfengine class, if you mean that.
Try running
cf-promises -v
on the client and you can see the local IP-Address in the form
192
There's always a hard class defined representing your IP address. E.g. the
address '172.31.102.56' will become the class '172_31_102_56'. As far as I
know, there's no special function for retrieving the IP adress, but I
might be wrong. Run 'cf-promises -v' to see the hard classes on your
system
11 matches
Mail list logo