Skip to content

Commit 4695585

Browse files
committed
Add Linux detail
1 parent a56fc22 commit 4695585

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

source/_components/sensor.systemmonitor.markdown

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,29 @@ The table contains types and their argument to use in your `configuration.yaml`
5858
| last_boot | |
5959
| since_last_boot | |
6060

61+
## {% linkable_title Linux specific %}
6162

62-
**Windows Specific:**
63-
64-
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
63+
To retrieve all available network interfaces on a Linux System, execute the `ifconfig` command.
6564

65+
```bash
66+
$ ifconfig -a | sed 's/[ \t].*//;/^$/d'
6667
```
68+
69+
## {% linkable_title Windows specific %}
70+
71+
When running this platform on Microsoft Windows, Typically, the default interface would be called `Local Area Connection`, so your configuration might look like:
72+
73+
```yaml
6774
sensor:
6875
- platform: systemmonitor
6976
resources:
7077
- type: network_in
7178
arg: 'Local Area Connection'
7279
```
7380

74-
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
81+
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:
7582

76-
```
83+
```bash
7784
Wireless LAN adapter Wireless Network Connection:
7885
7986
Media State . . . . . . . . . . . : Media disconnected

0 commit comments

Comments
 (0)