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 |
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_interfacescommand ofRex::Commands::Gathermodule 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::FreeBSDclass to obtain the device's network configuration information relying on theifconfigUnix 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)?All reactions