How to clear all CPE

Dan Morphis dan at milkcarton.com
Wed Jan 17 12:36:37 EST 2018


The API will remove the CPE from Mongo.

Put this on line 19ish of your script:

sed -i 's/%/%25/g' data.txt

That will encode the % in the acs id.

-dan


On Tue, Jan 16, 2018 at 5:05 PM, Alfred George <a.george at team.wantok.vu>
wrote:

> Hi Dan,
>
> Iam getting this results
> HTTP/1.1 200 OK
>
> Date: Wed, 17 Jan 2018 03:17:24 GMT
>
> Connection: keep-alive
>
> Transfer-Encoding: chunked
>
>
>
> Can you let me know whether  this API totally remove CPE from my database?
>
>
>
> *From:* Users [mailto:users-bounces at lists.genieacs.com] *On Behalf Of *Alfred
> George
> *Sent:* Wednesday, January 17, 2018 11:56 AM
> *To:* 'Community support for GenieACS users' <users at lists.genieacs.com>
> *Subject:* RE: How to clear all CPE
>
>
>
> See Attached.. I have also included task API in my code testing purposes.
>
>
>
> Thanks
>
> Alfred G
>
>
>
> *From:* Users [mailto:users-bounces at lists.genieacs.com
> <users-bounces at lists.genieacs.com>] *On Behalf Of *Dan Morphis
> *Sent:* Wednesday, January 17, 2018 11:08 AM
> *To:* Community support for GenieACS users <users at lists.genieacs.com>
> *Subject:* Re: How to clear all CPE
>
>
>
> Can you please send the code so I can look at it? Send the file with your
> device ids in it too please.
>
>
>
> On Tue, Jan 16, 2018 at 3:06 PM, Alfred George <a.george at team.wantok.vu>
> wrote:
>
> ${device_ID} is my variable run in while loop…
> my code will:
> - collect device ID store in txt file
> - while read line txt file and delete each device
>
>
>
> Alfred G
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180117/4f2ff51b/attachment.html>


More information about the Users mailing list