Re: CPE firmware pull

2016-11-23 Thread Zaid Abdulla
On Thu, 2016-11-17 at 11:05 -0500, Kris Germann wrote: > I can push firmware to devices just fine, but I'd like to automate > this somewhat by having the devices reach out and choose the firmware > files I associate to their OUID. In v1.0 there's a special preset configuration for that. However,

Re: Extract only certain files via API

2016-11-23 Thread Zaid Abdulla
On Sat, 2016-11-19 at 19:33 +0100, Sergio wrote: > query={"metadata":{"productClass":"A-B-1"}} Looks like your query is incorrect. You need to use Mongo's dot notation:     query={"metadata.productClass":"A-B-1"} -- Zaid Abdulla z...@genieacs.com

Using idividual presets for CPE´s variable data

2016-11-23 Thread n...@gibfibrespeed.net
Hello, I cant find a way to create variable data based on the CPE serial number (because I cannot create Objects in 1.1.0 and I have no idea on how to use provisions scripts). But I have found I could provision CPE´s using an individual preset for each CPE containing individuals parameters

Re: Add present precondition to look at file list

2016-11-23 Thread Dan Morphis
Not to my knowledge. I haven't made updates or synced with the master branch because I'm going to throw it away when v1.1 is out. -dan > On Nov 23, 2016, at 12:05 PM, Kris Germann wrote: > > Thank you Dan - I'm seeing an issue when restarting the server after >

Re: Add present precondition to look at file list

2016-11-23 Thread Kris Germann
Thank you Dan - I'm seeing an issue when restarting the server after implementing your branch of the acs (with the original branch frontend I assume)Connection refused - connect(2) for "localhost" port 7557q['sort'] = ActiveSupport::JSON.encode(sort) if sort http = create_api_conn()

Re: Add present precondition to look at file list

2016-11-23 Thread Dan Morphis
You can use my branch in github . It will send a notification to a user defined URI with the acs ID, and the entire inform packet. You can then have the receiving service figure out what you need to do with the CPE. We use this to provision CPEs when they come

Add present precondition to look at file list

2016-11-23 Thread Kris Germann
I would like to have the ability to tag a big list of MAC addresses (8,000 CPE's) automatically once they connect, so I will need the ability to upload a list (CSV or whatever) of MAC addresses that will be tagged under a preset...Is this possible?Kris

Re: Adding customize fields

2016-11-23 Thread Sillawat Kim
Hi Dan, I deleted all keys in Redis and I called curl -i ' http://localhost:7557/devices/?query=%7B%22summary.wlanSsid%22%3A%22HUAWEI-WiFi%22%7D=Geo.Sector_city' to API and it returns {"_id":"00259E-HG8045A-485754432C0AB057","Geo":{"Sector_city":"TestCity"},"summary.sectorcity":"TestCity"} I

Re: Customize summary view in devices

2016-11-23 Thread Kris Germann
Hey there Dan,When I add "SIP Username: summary.sipUsername" to parameters.json and restart the services the field pops up and works fine, but when I add ""Device.Services.VoiceService./^\\d+$/.VoiceProfile./^\\d+$/.Line./^\\d+$/.SIP.AuthUserName" : {"alias" : "summary.sipUsername"}" and reboot

Re: Add fields to CSV export

2016-11-23 Thread Kris Germann
Dan,I am getting the following error:undefined method `join' for nil:NilClassExtracted source:%> “<%= param_names.keys.join('","').html_safe %>","Last inform” <% @devices.each do |device| %> “<%= param_names.collect{|k,v| (p = get_param(v, device)).is_a?(String) ? p : p['_value'] rescue

Re: Debug CPE

2016-11-23 Thread n...@gibfibrespeed.net
Thank you very much Pavel, I had to be using an old syntax. Regards, Miguel - Original Message - From: "Pavel Mracek" To: "Community support for GenieACS users" Sent: Thursday, 3 November, 2016 12:30:04 PM Subject: Re: Debug CPE