Ti allego una serie di messaggi scambiati da un altra parte alcune
settimane fa in cui si parla di questa cosa.

Il codice lo trovi qui:

https://gitorious.org/eigennet/gentool
Più precisamente qui:
https://gitorious.org/eigennet/gentool/blobs/master/batman-adv-txtinfo/home/apache/public_html/battxtinfo.php

E genera un output come questo:
http://coppermine.eigenlab.org/battxtinfo.php

Visto che gioacchino è sempre super impegnato e non ha potuto scrivere
uno straccio di documentazione.. se riuscissi a fare funzionare il suo
codice e riuscissi a scrivere due righe su wiki.ninux.org te ne sarei
infinitamente grato...

Fed

Il 10/16/2012 11:49 AM, Luca Postregna ha scritto:
> mi aiuti a trovare questo codice?
>
> 2012/10/16 Nemesis <[email protected] <mailto:[email protected]>>
>
>     Il 10/16/2012 09:21 AM, Luca Postregna ha scritto:
>>     e questa cosa funziona allo stesso modo anche per i nodi di pisa
>>     che basano il routing su batman-adv?
>
>     Gioacchino ha fatto uno script che genera un file con la topologia
>     delle reti di Pisa e Mistretta (batman) che ha una formattazione
>     identica al txtinfo lugin di OLSR
>
>
>
>
> -- 
>
> http://luca.postregna.name
> Luca Postregna
>

--- Begin Message --- Tnx a lot for the pointers Gioacchino, that's helpful, i'm probably going to implement on my ubuntu quantal test server, will let you know how it goes...

And sure Federico, will let you know as soon as it's up and running!
best
Mike

Gioacchino Mazzurco wrote, On 13/09/12 11:12:
We use apache with php enabled as web server, you need to enable the
user wich is running apache to execute the batdot command trough sudo
you should be able to do that trough /etc/sudoers

The exactly step to make it work higly depend on your server setup so i
just can give you some hints but don't know how exactly do that on your
machine

On 09/13/12 16:02, Nemesis wrote:
PS: mike when your nodeshot instance is up and running could you send us
the URL? I'd like to make a list of communities using nodeshot :-)


--- End Message ---
--- Begin Message ---
We use apache with php enabled as web server, you need to enable the
user wich is running apache to execute the batdot command trough sudo
you should be able to do that trough /etc/sudoers

The exactly step to make it work higly depend on your server setup so i
just can give you some hints but don't know how exactly do that on your
machine

On 09/13/12 16:02, Nemesis wrote:
> PS: mike when your nodeshot instance is up and running could you send us
> the URL? I'd like to make a list of communities using nodeshot :-)

--- End Message ---
--- Begin Message ---
We use apache with php enabled as web server, you need to enable the
user wich is running apache to execute the batdot command trough sudo
you should be able to do that trough /etc/sudoers

The exactly step to make it work higly depend on your server setup so i
just can give you some hints but don't know how exactly do that on your
machine

On 09/13/12 16:02, Nemesis wrote:
> PS: mike when your nodeshot instance is up and running could you send us
> the URL? I'd like to make a list of communities using nodeshot :-)

--- End Message ---
--- Begin Message ---
PS: mike when your nodeshot instance is up and running could you send us
the URL? I'd like to make a list of communities using nodeshot :-)

--- End Message ---
--- Begin Message ---
Il 09/13/2012 02:14 PM, Gioacchino Mazzurco ha scritto:
> The php script basically call a bash script that call batctl vd det and
> then with grep/sed/awk format the output in a way nodeshot like it

He already understood that, he was asking how to install it and make it
work. What are the usual steps?

--- End Message ---
--- Begin Message ---
The php script basically call a bash script that call batctl vd det and
then with grep/sed/awk format the output in a way nodeshot like it

On 09/13/12 14:11, Mike Jensen wrote:
> Thanks a Mill Federico, very helpful, and yes, plz let me know when you
> set up mailing list..
> In the meantime, Gioacchino, any notes or docs in implementing this
> would be most helpful..
> Best,
> Mike
> 
> Nemesis wrote, On 11/09/12 15:28:
>> Regarding BATMAN, Gioacchino (added in CC) has written a script which
>> generates the network topology, like
>> http://coppermine.eigenlab.org/battxtinfo.php
>>
>> The script is hosted here: https://gitorious.org/eigennet/gentool
>> And it's this file (which basically is a wrapper for other stuff):
>> https://gitorious.org/eigennet/gentool/blobs/master/batman-adv-txtinfo/home/apache/public_html/battxtinfo.php
>>
>> (Gioacchino, do you have some documentation about that stuff?)
>>
>> If you manage to make that file work, then you'll have to copy
>> read_topology_hna.py and edit the list TOPOLOGY_URLS to contain only the
>> URL of the file.
>> Once that is done, there's few additional things you have to do in the
>> admin:
>>
>>   * insert the devices of your network in the database
>>   * for each device, insert the interfaces with the correct mac address
>>     listed in the output of the php file
>>
>> Regarding snmp.py, for Ubiquiti devices the snmp.py script should manage
>> to retrieve useful info from your network, provided the server where
>> nodeshot resides is connected (phisically or virtually) to your local
>> network *and* that your interfaces have an ipv4 address that snmp can
>> query. It seems SNMP doesn't support ipv6 yet.
>> Regarding MeshPotatoe ... never tried it.. try hacking a bit and let us
>> know.
>>
>> We'll setup a mailing list for nodeshot, hopefully soon.
>>
>> Federico
>>
>>
>> Il 09/11/2012 07:55 PM, Mike Jensen ha scritto:
>>> Hi Fed, and Lorenzo, tnx much for the responses...(Lorenzo's response
>>> pasted further below...)
>>>
>>> Basically I'm using a mix of Ubiquiti and Mesh Potatoes - running
>>> batman-adv 2011.2.0 and acting as access points as well - Atheros
>>> chipset.
>>>
>>> I've used vis to generate maps using Spud, but it is limited in
>>> features compared to Nodeshot...I guess I need to incorporate some vis
>>> scripts into Nodeshot cronjobs to generate link info from batman? Or
>>> is there another way for me to implement measuring link quality and
>>> topology between nodes?
>>>
>>> best,
>>> mike
>>> ----
>>> Mesh Potato: http://villagetelco.org/mesh-potato/
>>>
>>> Spud:
>>> http://villagetelco.org/2011/06/spud-simple-unified-dashboard-for-mesh-networks/
>>>
>>>
>>>
>>>
>>> Nemesis wrote, On 11/09/12 09:58:
>>>> Hi Mike,
>>>>
>>>> what routing protocol are you using?
>>>> Which type of devices are you using? (eg: Ubiquiti, Mikrotic, ecc)
>>>>
>>>> the code of the scripts will need to be customized to suits your needs.
>>>>
>>>> Fed.
>>>
>>> > Hi Mike!
>>> > The cronjob scripts we did are _really_ community dependent.
>>> >
>>> > Their main goal is to set the link qualities by using snmp queries
>>> > and/or grabbing the OLSR (our routing protocol) link quality
>>> indicators
>>> > (ETX).
>>> >
>>> > So basically snmp.py bugs every nodes periodically for updating the
>>> dbm
>>> > field of the Link objects of the data model. You may want to adapt
>>> this
>>> > script to call the right OIDs of your devices (currently that script
>>> > works only with ubiquiti devices).
>>> >
>>> >
>>> > The script read_topology_hna.py reads files like this one:
>>> > http://coppermine.eigenlab.org/battxtinfo.php
>>> >
>>> > these files are generated automatically using OLSR txtinfo plugin [1]
>>> > and populated dynamically with the status of ETX (basically a metric
>>> > that keeps into account the packet loss ratio over a link).
>>> >
>>> > Some part of our network dismissed OLSR in favor of BATMAN (another
>>> > routing protocol). Those guy created a php dynamic page that mimics
>>> the
>>> > txtinfo plugin for the BATMAN network (this is the case of
>>> > http://coppermine.eigenlab.org/battxtinfo.php). This trick is a
>>> > workaround to make things work without changing too much!
>>> >
>>> > If your network is too much different from our one, you may want to
>>> > write your own crontab scripts to update the link quality periodically
>>> >
>>> > Ciao!
>>> >
>>> > Lorenzo
>>> >
>>> >
>>> > [1]http://www.olsr.org/?q=txtinfo_plugin
>>> >
>>> >
>>

--- End Message ---
--- Begin Message ---
The php script basically call a bash script that call batctl vd det and
then with grep/sed/awk format the output in a way nodeshot like it

On 09/13/12 14:11, Mike Jensen wrote:
> Thanks a Mill Federico, very helpful, and yes, plz let me know when you
> set up mailing list..
> In the meantime, Gioacchino, any notes or docs in implementing this
> would be most helpful..
> Best,
> Mike
> 
> Nemesis wrote, On 11/09/12 15:28:
>> Regarding BATMAN, Gioacchino (added in CC) has written a script which
>> generates the network topology, like
>> http://coppermine.eigenlab.org/battxtinfo.php
>>
>> The script is hosted here: https://gitorious.org/eigennet/gentool
>> And it's this file (which basically is a wrapper for other stuff):
>> https://gitorious.org/eigennet/gentool/blobs/master/batman-adv-txtinfo/home/apache/public_html/battxtinfo.php
>>
>> (Gioacchino, do you have some documentation about that stuff?)
>>
>> If you manage to make that file work, then you'll have to copy
>> read_topology_hna.py and edit the list TOPOLOGY_URLS to contain only the
>> URL of the file.
>> Once that is done, there's few additional things you have to do in the
>> admin:
>>
>>   * insert the devices of your network in the database
>>   * for each device, insert the interfaces with the correct mac address
>>     listed in the output of the php file
>>
>> Regarding snmp.py, for Ubiquiti devices the snmp.py script should manage
>> to retrieve useful info from your network, provided the server where
>> nodeshot resides is connected (phisically or virtually) to your local
>> network *and* that your interfaces have an ipv4 address that snmp can
>> query. It seems SNMP doesn't support ipv6 yet.
>> Regarding MeshPotatoe ... never tried it.. try hacking a bit and let us
>> know.
>>
>> We'll setup a mailing list for nodeshot, hopefully soon.
>>
>> Federico
>>
>>
>> Il 09/11/2012 07:55 PM, Mike Jensen ha scritto:
>>> Hi Fed, and Lorenzo, tnx much for the responses...(Lorenzo's response
>>> pasted further below...)
>>>
>>> Basically I'm using a mix of Ubiquiti and Mesh Potatoes - running
>>> batman-adv 2011.2.0 and acting as access points as well - Atheros
>>> chipset.
>>>
>>> I've used vis to generate maps using Spud, but it is limited in
>>> features compared to Nodeshot...I guess I need to incorporate some vis
>>> scripts into Nodeshot cronjobs to generate link info from batman? Or
>>> is there another way for me to implement measuring link quality and
>>> topology between nodes?
>>>
>>> best,
>>> mike
>>> ----
>>> Mesh Potato: http://villagetelco.org/mesh-potato/
>>>
>>> Spud:
>>> http://villagetelco.org/2011/06/spud-simple-unified-dashboard-for-mesh-networks/
>>>
>>>
>>>
>>>
>>> Nemesis wrote, On 11/09/12 09:58:
>>>> Hi Mike,
>>>>
>>>> what routing protocol are you using?
>>>> Which type of devices are you using? (eg: Ubiquiti, Mikrotic, ecc)
>>>>
>>>> the code of the scripts will need to be customized to suits your needs.
>>>>
>>>> Fed.
>>>
>>> > Hi Mike!
>>> > The cronjob scripts we did are _really_ community dependent.
>>> >
>>> > Their main goal is to set the link qualities by using snmp queries
>>> > and/or grabbing the OLSR (our routing protocol) link quality
>>> indicators
>>> > (ETX).
>>> >
>>> > So basically snmp.py bugs every nodes periodically for updating the
>>> dbm
>>> > field of the Link objects of the data model. You may want to adapt
>>> this
>>> > script to call the right OIDs of your devices (currently that script
>>> > works only with ubiquiti devices).
>>> >
>>> >
>>> > The script read_topology_hna.py reads files like this one:
>>> > http://coppermine.eigenlab.org/battxtinfo.php
>>> >
>>> > these files are generated automatically using OLSR txtinfo plugin [1]
>>> > and populated dynamically with the status of ETX (basically a metric
>>> > that keeps into account the packet loss ratio over a link).
>>> >
>>> > Some part of our network dismissed OLSR in favor of BATMAN (another
>>> > routing protocol). Those guy created a php dynamic page that mimics
>>> the
>>> > txtinfo plugin for the BATMAN network (this is the case of
>>> > http://coppermine.eigenlab.org/battxtinfo.php). This trick is a
>>> > workaround to make things work without changing too much!
>>> >
>>> > If your network is too much different from our one, you may want to
>>> > write your own crontab scripts to update the link quality periodically
>>> >
>>> > Ciao!
>>> >
>>> > Lorenzo
>>> >
>>> >
>>> > [1]http://www.olsr.org/?q=txtinfo_plugin
>>> >
>>> >
>>

--- End Message ---
--- Begin Message --- Thanks a Mill Federico, very helpful, and yes, plz let me know when you set up mailing list.. In the meantime, Gioacchino, any notes or docs in implementing this would be most helpful..
Best,
Mike

Nemesis wrote, On 11/09/12 15:28:
Regarding BATMAN, Gioacchino (added in CC) has written a script which
generates the network topology, like
http://coppermine.eigenlab.org/battxtinfo.php

The script is hosted here: https://gitorious.org/eigennet/gentool
And it's this file (which basically is a wrapper for other stuff):
https://gitorious.org/eigennet/gentool/blobs/master/batman-adv-txtinfo/home/apache/public_html/battxtinfo.php
(Gioacchino, do you have some documentation about that stuff?)

If you manage to make that file work, then you'll have to copy
read_topology_hna.py and edit the list TOPOLOGY_URLS to contain only the
URL of the file.
Once that is done, there's few additional things you have to do in the
admin:

  * insert the devices of your network in the database
  * for each device, insert the interfaces with the correct mac address
    listed in the output of the php file

Regarding snmp.py, for Ubiquiti devices the snmp.py script should manage
to retrieve useful info from your network, provided the server where
nodeshot resides is connected (phisically or virtually) to your local
network *and* that your interfaces have an ipv4 address that snmp can
query. It seems SNMP doesn't support ipv6 yet.
Regarding MeshPotatoe ... never tried it.. try hacking a bit and let us
know.

We'll setup a mailing list for nodeshot, hopefully soon.

Federico


Il 09/11/2012 07:55 PM, Mike Jensen ha scritto:
Hi Fed, and Lorenzo, tnx much for the responses...(Lorenzo's response
pasted further below...)

Basically I'm using a mix of Ubiquiti and Mesh Potatoes - running
batman-adv 2011.2.0 and acting as access points as well - Atheros
chipset.

I've used vis to generate maps using Spud, but it is limited in
features compared to Nodeshot...I guess I need to incorporate some vis
scripts into Nodeshot cronjobs to generate link info from batman? Or
is there another way for me to implement measuring link quality and
topology between nodes?

best,
mike
----
Mesh Potato: http://villagetelco.org/mesh-potato/

Spud:
http://villagetelco.org/2011/06/spud-simple-unified-dashboard-for-mesh-networks/



Nemesis wrote, On 11/09/12 09:58:
Hi Mike,

what routing protocol are you using?
Which type of devices are you using? (eg: Ubiquiti, Mikrotic, ecc)

the code of the scripts will need to be customized to suits your needs.

Fed.

> Hi Mike!
> The cronjob scripts we did are _really_ community dependent.
>
> Their main goal is to set the link qualities by using snmp queries
> and/or grabbing the OLSR (our routing protocol) link quality indicators
> (ETX).
>
> So basically snmp.py bugs every nodes periodically for updating the dbm
> field of the Link objects of the data model. You may want to adapt this
> script to call the right OIDs of your devices (currently that script
> works only with ubiquiti devices).
>
>
> The script read_topology_hna.py reads files like this one:
> http://coppermine.eigenlab.org/battxtinfo.php
>
> these files are generated automatically using OLSR txtinfo plugin [1]
> and populated dynamically with the status of ETX (basically a metric
> that keeps into account the packet loss ratio over a link).
>
> Some part of our network dismissed OLSR in favor of BATMAN (another
> routing protocol). Those guy created a php dynamic page that mimics the
> txtinfo plugin for the BATMAN network (this is the case of
> http://coppermine.eigenlab.org/battxtinfo.php). This trick is a
> workaround to make things work without changing too much!
>
> If your network is too much different from our one, you may want to
> write your own crontab scripts to update the link quality periodically
>
> Ciao!
>
> Lorenzo
>
>
> [1]http://www.olsr.org/?q=txtinfo_plugin
>
>


--- End Message ---
--- Begin Message ---
Regarding BATMAN, Gioacchino (added in CC) has written a script which
generates the network topology, like
http://coppermine.eigenlab.org/battxtinfo.php

The script is hosted here: https://gitorious.org/eigennet/gentool
And it's this file (which basically is a wrapper for other stuff):
https://gitorious.org/eigennet/gentool/blobs/master/batman-adv-txtinfo/home/apache/public_html/battxtinfo.php
(Gioacchino, do you have some documentation about that stuff?)

If you manage to make that file work, then you'll have to copy
read_topology_hna.py and edit the list TOPOLOGY_URLS to contain only the
URL of the file.
Once that is done, there's few additional things you have to do in the
admin:

  * insert the devices of your network in the database
  * for each device, insert the interfaces with the correct mac address
    listed in the output of the php file

Regarding snmp.py, for Ubiquiti devices the snmp.py script should manage
to retrieve useful info from your network, provided the server where
nodeshot resides is connected (phisically or virtually) to your local
network *and* that your interfaces have an ipv4 address that snmp can
query. It seems SNMP doesn't support ipv6 yet.
Regarding MeshPotatoe ... never tried it.. try hacking a bit and let us
know.

We'll setup a mailing list for nodeshot, hopefully soon.

Federico


Il 09/11/2012 07:55 PM, Mike Jensen ha scritto:
> Hi Fed, and Lorenzo, tnx much for the responses...(Lorenzo's response
> pasted further below...)
>
> Basically I'm using a mix of Ubiquiti and Mesh Potatoes - running
> batman-adv 2011.2.0 and acting as access points as well - Atheros
> chipset.
>
> I've used vis to generate maps using Spud, but it is limited in
> features compared to Nodeshot...I guess I need to incorporate some vis
> scripts into Nodeshot cronjobs to generate link info from batman? Or
> is there another way for me to implement measuring link quality and
> topology between nodes?
>
> best,
> mike
> ----
> Mesh Potato: http://villagetelco.org/mesh-potato/
>
> Spud:
> http://villagetelco.org/2011/06/spud-simple-unified-dashboard-for-mesh-networks/
>
>
>
> Nemesis wrote, On 11/09/12 09:58:
>> Hi Mike,
>>
>> what routing protocol are you using?
>> Which type of devices are you using? (eg: Ubiquiti, Mikrotic, ecc)
>>
>> the code of the scripts will need to be customized to suits your needs.
>>
>> Fed.
>
> > Hi Mike!
> > The cronjob scripts we did are _really_ community dependent.
> >
> > Their main goal is to set the link qualities by using snmp queries
> > and/or grabbing the OLSR (our routing protocol) link quality indicators
> > (ETX).
> >
> > So basically snmp.py bugs every nodes periodically for updating the dbm
> > field of the Link objects of the data model. You may want to adapt this
> > script to call the right OIDs of your devices (currently that script
> > works only with ubiquiti devices).
> >
> >
> > The script read_topology_hna.py reads files like this one:
> > http://coppermine.eigenlab.org/battxtinfo.php
> >
> > these files are generated automatically using OLSR txtinfo plugin [1]
> > and populated dynamically with the status of ETX (basically a metric
> > that keeps into account the packet loss ratio over a link).
> >
> > Some part of our network dismissed OLSR in favor of BATMAN (another
> > routing protocol). Those guy created a php dynamic page that mimics the
> > txtinfo plugin for the BATMAN network (this is the case of
> > http://coppermine.eigenlab.org/battxtinfo.php). This trick is a
> > workaround to make things work without changing too much!
> >
> > If your network is too much different from our one, you may want to
> > write your own crontab scripts to update the link quality periodically
> >
> > Ciao!
> >
> > Lorenzo
> >
> >
> > [1]http://www.olsr.org/?q=txtinfo_plugin
> >
> >


--- End Message ---
_______________________________________________
Wireless mailing list
[email protected]
http://ml.ninux.org/mailman/listinfo/wireless

Rispondere a