From 46955859c810c49002896f39f95f7da631e36a58 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 Jan 2017 15:54:12 +0100 Subject: [PATCH] Add Linux detail --- .../_components/sensor.systemmonitor.markdown | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/source/_components/sensor.systemmonitor.markdown b/source/_components/sensor.systemmonitor.markdown index 1e52ffb93e8..836b0d4641f 100644 --- a/source/_components/sensor.systemmonitor.markdown +++ b/source/_components/sensor.systemmonitor.markdown @@ -58,12 +58,19 @@ The table contains types and their argument to use in your `configuration.yaml` | last_boot | | | since_last_boot | | +## {% linkable_title Linux specific %} -**Windows Specific:** - -When running this component on windows, `eth0` is not valid a valid network name. Typically, the default interface would be called `Local Area Connection`, so your config might look like +To retrieve all available network interfaces on a Linux System, execute the `ifconfig` command. +```bash +$ ifconfig -a | sed 's/[ \t].*//;/^$/d' ``` + +## {% linkable_title Windows specific %} + +When running this platform on Microsoft Windows, Typically, the default interface would be called `Local Area Connection`, so your configuration might look like: + +```yaml sensor: - platform: systemmonitor resources: @@ -71,9 +78,9 @@ sensor: arg: 'Local Area Connection' ``` -If you need to use some other interface, open a command prompt and type `ipconfig` to list all interface names. For example a wireless connection output from `ip_config` might look like +If you need to use some other interface, open a commandline prompt and type `ipconfig` to list all interface names. For example a wireless connection output from `ifconfig` might look like: -``` +```bash Wireless LAN adapter Wireless Network Connection: Media State . . . . . . . . . . . : Media disconnected