Replies: 1 comment
-
Rex::Hardware::Network::Linux already has support for parsing the output of either Based on that, at least the following things come to my mind as coding opportunities:
As far as a workaround is concerned, I think there's currently no easy way to force using the Rex::Hardware::Network::Linux modules for discovery on other OSes. If the managed endpoint has the Getting the raw command output from the managed endpoint with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
network_interfaces
command ofRex::Commands::Gather
module fails to reflect the interface with multiple IP addresses only retrieving the first one.I run Rex on FreeBSD so this eventually calls the get_network_configuration method of the
Rex::Hardware::Network::FreeBSD
class to obtain the device's network configuration information relying on theifconfig
Unix command:This is very unfortunate for my use case, and many real world setups with VLAN's and IP aliases.
Should I instead do
run "ifconfig";
and parse the output using CPAN modules (which avoids Rex very much)?Beta Was this translation helpful? Give feedback.
All reactions