stapelberg/zkj-nas-tools — pull request #1 by raphaelm (2014-11-23 15:29:00+00:00)
Title: Dramaqueen: Samba output parsing change

Currently, dramaqueen parses the ``hostname`` part of the output ``net status sessions parseable``. In my network setup, however, there are cases where the hostname of the client is unknwon and ``net status`` therefore outputs something like this:

```
939\raphael\raphael\192.168.0.10\ipv4:192.168.0.10:39509
```

Pinging ``ipv4:192.168.0.10:39509`` obviously fails, so the more robust way is to parse the ``remote_machine`` column which, on my systems, contains a raw IP address.