Forum: Cfengine Help Subject: Re: Unix_GetInterfaceInfo() too slow to read > 100 ip's on one interface, possible solution? Author: lero Link to topic: https://cfengine.com/forum/read.php?3,17516,17529#msg-17529
Mark, There's a faster way to get these information about network interfaces? When you use "ip addr show dev eth2" for example, it takes just 0.004s, according to time: # time ip addr show dev eth2 >/dev/null 2>&1 real 0m0.004s user 0m0.000s sys 0m0.000s Maybe get this information directly from /proc? I'll try to take a look at that. Neil, That's an option too. I think cfengine2 had that (--no-ifconfig), right? Could be wrong, because i didn't play with cfengine2. Just saw the cfagent man page right now. Thanks. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine