how to delete device using SSH and remote logging

I have 2 questions.

  1. how can i delete a device using the commandline (ssh)?

  2. is it possible to activate a remote logging server, so my vera logs are saved on an external log server within my network?
    (i don’t wat to log onto a usb stick but direct on a remote log server

[quote=“B3rt, post:1, topic:189151”]I have 2 questions.

  1. how can i delete a device using the commandline (ssh)?[/quote]
    You can do that with an HTTP request.
    http://wiki.micasaverde.com/index.php/Luup_Requests#device
2. is it possible to activate a remote logging server, so my vera logs are saved on an external log server within my network? (i don't wat to log onto a usb stick but direct on a remote log server

EventWatcher or DataYours can send to a file or syslog.

Rather than using SSH, just use an HTTP request http://ip_address:3480/data_request?id=device&action=delete&device=5

2. is it possible to activate a remote logging server, so my vera logs are saved on an external log server within my network?
Yes. You could [url=http://forum.micasaverde.com/index.php/topic,7288.0.html]use a syslog server[/url] or you could use SMB to mount a remote share to your log directory. Both of these options require significant changes to Vera that will be wiped with a firmware update.

A simpler method would be to write your own or modify the standard log rotation script, to copy/backup your log file to a remote server via sftp or scp. It will still be wiped by a firmware update, but, its just a simple bash script, so it wouldn’t be problematic to copy it back to Vera.

[quote=“Z-Waver, post:3, topic:189151”]

2. is it possible to activate a remote logging server, so my vera logs are saved on an external log server within my network?

Yes. You could use a syslog server or you could use SMB to mount a remote share to your log directory. Both of these options require significant changes to Vera that will be wiped with a firmware update.

A simpler method would be to write your own or modify the standard log rotation script, to copy/backup your log file to a remote server via sftp or scp. It will still be wiped by a firmware update, but, its just a simple bash script, so it wouldn’t be problematic to copy it back to Vera.[/quote]What I do is filter specific conditions, and use a cron batch-job to copy them to my RSyslog server (found on ip X.X.X.X) using the following command you can push data to the RSYSlog server:

echo "SmartMeter Import_1: $Import1 Import_2: $Import2 Export_1: $Export1 Export_2: $Export2 Import_P: $ImportP Import_G: $GasImport HouseTemp: $LivingroomTemp TempSetpoint: $TempSetpoint Home_State: $Home_State" | /usr/bin/nc X.X.X.X 514 -c
The parameters are grepped/awked from the logs in the batch scripts. AFAIK no update killed this so far.

Jaap