Found out all of the nics cards on a system
Jerome Jean Verleyen <[email protected]> Tue, 19 Nov 2024 10:29:20 -0800 (PST)
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
Dear all.
I'm really new on Cfengine, and learning on the way.,..
What i need now is to get the list of all the networds cards present in one
system, to configure specific one on an ipv4 network. I do use the
sys.interfaces variables. But this get me back uniquely the configured
interfaces, not alla of then.
What get me the cfengine report:
R: Value of nics lo
R: Value of nics eth0
What i have on my system:
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP
group default qlen 1000
link/ether 52:54:00:5f:b0:58 brd ff:ff:ff:ff:ff:ff
inet 172.16.1.11/24 brd 172.16.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fe5f:b058/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
qlen 1000
link/ether 52:54:00:23:70:cb brd ff:ff:ff:ff:ff:ff
I don't found out how to get back eth1, in this case...
Is there a function or variable i could use for this purpose?
Thank's a lof!
Regards
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/help-cfengine/6d30e667-c540-4f54-946c-d36bd934bcedn%40googlegroups.com.