We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Network plugin has a check to see if the ip command exists:
ip
if which("IP")
if this fails it falls back to route and executes:
shell_out("route -n")
When remote ohai is run against a Unifi UDM Pro:
[2021-05-10T20:58:54-07:00] DEBUG: [SSH] [email protected] cmd = stat -L /bin/ip 2>/dev/null --printf '%s %f %U %u %G %g %X %Y %C' [2021-05-10T20:58:54-07:00] DEBUG: [SSH] [email protected] cmd = stat -L /sbin/ip 2>/dev/null --printf '%s %f %U %u %G %g %X %Y %C' [2021-05-10T20:58:54-07:00] DEBUG: [SSH] [email protected] cmd = stat -L /usr/bin/ip 2>/dev/null --printf '%s %f %U %u %G %g %X %Y %C' [2021-05-10T20:58:54-07:00] DEBUG: [SSH] [email protected] cmd = stat -L /usr/sbin' '/ip 2>/dev/null --printf '%s %f %U %u %G %g %X %Y %C' [2021-05-10T20:58:54-07:00] DEBUG: [SSH] [email protected] cmd = stat -L /usr/local/sbin/ip 2>/dev/null --printf '%s %f %U %u %G %g %X %Y %C' [2021-05-10T20:58:54-07:00] DEBUG: [SSH] [email protected] cmd = stat -L /usr/local/bin/ip 2>/dev/null --printf '%s %f %U %u %G %g %X %Y %C' [2021-05-10T20:58:54-07:00] DEBUG: [SSH] [email protected] cmd = stat -L /usr/sbin/ip 2>/dev/null --printf '%s %f %U %u %G %g %X %Y %C' [2021-05-10T20:58:55-07:00] DEBUG: [SSH] [email protected] cmd = route -n
It's clearly failing to find the IP command which is there:
# which ip /sbin/ip
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The Network plugin has a check to see if the
ip
command exists:if this fails it falls back to route and executes:
When remote ohai is run against a Unifi UDM Pro:
It's clearly failing to find the IP command which is there:
The text was updated successfully, but these errors were encountered: