Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] How to clean esmond/perfsonar/archive ????

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] How to clean esmond/perfsonar/archive ????


Chronological Thread 
  • From: Andrew Lake <>
  • To: Pedro Henrique Diniz Da Silva <>
  • Cc: "" <>
  • Subject: Re: [perfsonar-user] How to clean esmond/perfsonar/archive ????
  • Date: Mon, 23 Mar 2015 09:06:47 -0400

Hi Pedro,

That's my fault, there was an extra comma in the config file I sent you. See attached for a valid file.

Thanks,
Andy

Attachment: clear_data.conf
Description: Binary data


On Mar 18, 2015, at 9:46 AM, Pedro Henrique Diniz Da Silva <> wrote:

Andrew,

Thank you for your answer but after attempting to execute your steps I get the following errors:

[root@ps02 esmond]# cd /opt/esmond
[root@ps02 esmond]# source /opt/rh/python27/enable
[root@ps02 esmond]# . bin/activate
(esmond)[root@ps02 esmond]# 
(esmond)[root@ps02 esmond]# python ./util/ps_remove_data.py -c /home/gridlafex/clear_data.conf
cassandra_db [INFO] Checking/creating column families
cassandra_db [INFO] Schema check done
cassandra_db [DEBUG] Opening ConnectionPool
cassandra_db [INFO] Connected to ['localhost:9160']
cassandra_db [INFO] Checking/creating column families
cassandra_db [INFO] Checking/creating column families
cassandra_db [INFO] Schema check done
cassandra_db [INFO] Schema check done
cassandra_db [DEBUG] Opening ConnectionPool
cassandra_db [DEBUG] Opening ConnectionPool
cassandra_db [INFO] Connected to ['localhost:9160']
cassandra_db [INFO] Connected to ['localhost:9160']
Error: No JSON object could be decoded
(esmond)[root@ps02 esmond]# 

Any idea of what can be the problem?

Cheers,
Pedro Diniz


From: Andrew Lake []
Sent: Wednesday, March 18, 2015 10:50 AM
To: Pedro Henrique Diniz Da Silva
Cc: 
Subject: Re: [perfsonar-user] How to clean esmond/perfsonar/archive ????

Hi,

If you don't want to wait for teh GUI to clear things out after a few days. You can do the following:

1. Download the config file attached to the host with the data you want deleted

2. Run the following commands to delete everything older than 2 days on the host with the data you want deleted:

cd /opt/esmond
source /opt/rh/python27/enable
. bin/activate
python ./util/ps_remove_data.py -c clear_data.conf

In the last command you will likely need to change clear_data.conf to the full path of the file you downloaded from this email. If you want to change the time range, adjust the '"expire":          "2"' line in the file to be another value (the value is in days).

Hope that helps,
Andy

On Mar 17, 2015, at 10:42 AM, Pedro Henrique Diniz Da Silva <> wrote:

Dears,

On the "Throughput / Latency Graphs" page (https://ps02.cat.cbpf.br/serviceTest/psGraph.cgi) I have a lot of tests that aren't being handled anymore.

In http://ps02.cat.cbpf.br/esmond/perfsonar/archive/?format=json I can see all of them, but how could I erase them?

Cheers,
Pedro Diniz

Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.16.

Top of Page