All of lore.kernel.org
 help / color / mirror / Atom feed
From: Germano Massullo <germano.massullo@gmail.com>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] Suggestions to get extended jsondoc alfred output
Date: Tue, 29 Sep 2015 10:45:05 +0200	[thread overview]
Message-ID: <560A4F91.8010109@gmail.com> (raw)
In-Reply-To: <10386832.M3RZMRiWCT@prime>

Il 29/09/2015 01:24, Simon Wunderlich ha scritto:
> batadv-vis is also a daemon which must run in background to collect
> data from batman-adv and push it (periodically) into alfred. Maybe you
> are not running it but only used the client part to query? Cheers, Simon 
Yeah that was the problem, thank you very much!
I attach again the whole and fixed procedure I followed, hoping that it
can be useful to other people. At the end of the e-mail you can find
also the jsondoc output I got.

1) Install a Fedora VirtualBox virtual machine;
2) In the virtual machine VirtualBox settings, set the network interface
in bridge mode;
3) Clone two times the virtual machine, enabling the "re-initialise MAC
addresses" option;
4) Start them and then run the following commands on each of them:

    Maybe not required, but to avoid all possible problems, I also
disabled the firewall
    # systemctl disable firewalld; systemctl stop firewalld
   
    # dnf -y install batctl
    then download and install alfred from git source code (certain
guides show alfredadv-vis , I instead got batadv-vis)

    # ip link set dev enp0s3 mtu 1532
    # batctl if add enp0s3
    # ip link set bat0 up
    # alfred -i enp0s3 -m

    Then I opened a new console (tty2)
    # cat /etc/hostname | alfred -s 65
    # batadv-vis -s

    Then I opened a new console (tty3)
    # cat /etc/hostname | alfred -s 65
    # alfred -r 65  (note: this one will show the info sent from the
three nodes only if you entered the previous command on all the VMs)
    # batadv-vis --format=jsondoc


And here we go!







{
  "source_version" : "2015.1-2-g4384c2b",
  "algorithm" : 4,
  "vis" : [
    { "primary" : "08:00:27:8f:b1:c2",
      "neighbors" : [
         { "router" : "08:00:27:8f:b1:c2",
           "neighbor" : "08:00:27:a9:8d:af",
           "metric" : "1.000" },
         { "router" : "08:00:27:8f:b1:c2",
           "neighbor" : "08:00:27:83:e5:59",
           "metric" : "1.000" }
      ],
      "clients" : [
        "33:33:00:00:00:01",
        "33:33:ff:f4:13:fb",
        "d6:ba:c2:f4:13:fb",
        "01:00:5e:00:00:01"
      ]
    },
    { "primary" : "08:00:27:83:e5:59",
      "neighbors" : [
         { "router" : "08:00:27:83:e5:59",
           "neighbor" : "08:00:27:a9:8d:af",
           "metric" : "1.000" },
         { "router" : "08:00:27:83:e5:59",
           "neighbor" : "08:00:27:8f:b1:c2",
           "metric" : "1.016" }
      ],
      "clients" : [
        "1a:7c:e9:74:cc:47",
        "33:33:00:00:00:01",
        "33:33:ff:74:cc:47",
        "01:00:5e:00:00:01"
      ]
    },
    { "primary" : "08:00:27:a9:8d:af",
      "neighbors" : [
         { "router" : "08:00:27:a9:8d:af",
           "neighbor" : "08:00:27:8f:b1:c2",
           "metric" : "1.000" },
         { "router" : "08:00:27:a9:8d:af",
           "neighbor" : "08:00:27:83:e5:59",
           "metric" : "1.004" }
      ],
      "clients" : [
        "4e:ae:15:0e:ba:a2",
        "33:33:00:00:00:01",
        "01:00:5e:00:00:01",
        "33:33:ff:0e:ba:a2"
      ]
    }
  ]
}




  reply	other threads:[~2015-09-29  8:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28 16:56 [B.A.T.M.A.N.] Suggestions to get extended jsondoc alfred output Germano Massullo
2015-09-28 17:35 ` Simon Wunderlich
2015-09-28 21:10   ` Germano Massullo
2015-09-28 23:24     ` Simon Wunderlich
2015-09-29  8:45       ` Germano Massullo [this message]
2015-09-29 16:17         ` Germano Massullo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=560A4F91.8010109@gmail.com \
    --to=germano.massullo@gmail.com \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.