[Nodeshot] Latest changes thanks to your feedback

Nemesis nemesis at ninux.org
Wed Nov 20 18:22:53 CET 2013


Hi,

First of all, thankyou all for the feedback you are sending.

I've done most of thechanges that I needed to do after receiving your
answers to my latest technical questions.
This is surely the way to go, after receiving yourfeedback I feel much
more secure, so please keep to do so!

And good news, hey Clauz, look at this code:

*>>> device = Device.objects.get(name='RM5PomeziaSNode')**
*(0.015) SELECT "net_device"."id", "net_device"."added",
"net_device"."updated", "net_device"."access_level",
"net_device"."name", "net_device"."node_id", "net_
device"."type", "net_device"."status", "net_device"."location",
"net_device"."elev", "net_device"."os", "net_device"."os_version",
"net_device"."first_seen", "
net_device"."last_seen", "net_device"."description",
"net_device"."notes", "net_device"."data", "net_device"."shortcuts" FROM
"net_device" WHERE "net_device"."
name" = 'RM5PomeziaSNode' ; args=('RM5PomeziaSNode',)
*>>> device.connector.connect()**
*True
*>>> device.connector.get_os()**
*('AirOS', 'XM.ar7240.v5.3.3.sdk.9634.111221.2238')
*>>> device.connector.get_wireless_output_power()*
27
*>>> device.connector.get_wireless_channel()**
*'5765'
>>> *device.connector.disconnect()*

I'm slowly getting the syntactic sugar I desire! And it's self
explanatory! :)

It willbe super cool to have a connector_class that uses SNMP or any
other lighter protocol instead of SSH.
This would save us the need of having to call "connect()" and
"disconnect()".

Federico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ninux.org/pipermail/nodeshot/attachments/20131120/fde83236/attachment-0001.html>


More information about the Nodeshot mailing list