Feel free to toss this up on the wiki somewhere Anreas, these are nice examples of how you can use CURL to manipulate the system.
Chris On Tue, 06 Mar 2012 16:16:31 +0100 (CET) [email protected] wrote: > As regards deleting of recordings: > > This is what we do to remove recordings (credits to our admin for > this): "$1" denotes the mediapackageId: > > echo "Retracting Download Distribution ..........." > echo "$(curl --digest -u matterhorn_system_account:CHANGEME -H > 'X-Requested-Auth: Digest' -F mediapackageId=$1 > http://our.core.server.url/distribution/download/retract)" echo "Done > Retracting Download Distribution ..........." echo echo "Retracting > Stream Distribution ..........." echo "$(curl --digest -u > matterhorn_system_account:CHANGEME -H 'X-Requested-Auth: Digest' -F > mediapackageId=$1 > http://our.core.server.url/distribution/streaming/retract)" echo > "Done Retracting Stream Distribution ..........." echo echo "Removing > mediaPackage from Search index ..........." echo "$(curl --digest -u > matterhorn_system_account:CHANGEME -H 'X-Requested-Auth: Digest' -X > DELETE http://our.core.server.url/search/$1)" echo "Done Removing > mediaPackage from Search index ..........." echo "Removing > mediaPackage from file system ......" rm > -rf /opt/matterhorn/opencast/files/mediapackage/$1 rm > -rf /opt/matterhorn/opencast/workspace/mediapackage/$1 echo "Done > Removing mediaPackage from file system ......" > > ... and we hope to have cleaned the server from most of the data > > Regards, Andreas > > > ZENG Shan schrieb am Tue, 6 Mar 2012 betreff "Re: [Matterhorn-users] > error...": > > is there any relationship with the clear job of the database? I > > have just cleared the database, and then restart the matterhorn > > service, if so, what can I do to delete the recordings? > > > -----ÿÿÿÿÿÿÿÿ----- > ÿÿÿÿÿÿ: "ZENG Shan" <[email protected]> > ÿÿÿÿÿÿÿÿ: 2012ÿÿ3ÿÿ6ÿÿ ÿÿÿÿÿÿ > ÿÿÿÿÿÿ: "Dr Leslaw Zieleznik" <[email protected]> > ÿÿÿÿ: [email protected] > ÿÿÿÿ: [Matterhorn-users] error in deleting recording in the > matterhorn core's admin tools page > > > > Hi , > > I expand finished in the Unscheduled-IHEPcapture-1330340462691 > recording, but I get nothing about the id, but spect Workflow, only > this two words, is there anybody know what's the problem, and how can > I delete the recording of Unscheduled-IHEPcapture-1330340462691 ? > > | > Title > | > Presenter > | > Course/Series > | > Recording Date&Time > | Status | Action | > | | Unscheduled-IHEPcapture-1330340462691 | | | Mon, Feb 27 2012 - > 19:01 Duration: 00:00:09 | > Finished > | View Info | Play | > | | Unscheduled-IHEPcapture-1330501721121 | | | Wed, Feb 29 2012 - > 15:48 Duration: 00:02:14 | > Finished > | View Info | Play | > | | Unscheduled-IHEPcapture-1330503467445 | | | Wed, Feb 29 2012 - > 16:17 Duration: 00:00:08 | > Finished > | View Info | Play | > | | test | | | Tue, Mar 06 2012 - 14:41 > Duration: 00:02:00 | > Finished > | View Info | Play | > > > > -----ÿÿÿÿÿÿÿÿ----- > ÿÿÿÿÿÿ: "Dr Leslaw Zieleznik" <[email protected]> > ÿÿÿÿÿÿÿÿ: 2012ÿÿ3ÿÿ6ÿÿ ÿÿÿÿÿÿ > ÿÿÿÿÿÿ: "ZENG Shan" <[email protected]> > ÿÿÿÿ: > ÿÿÿÿ: Re: ÿÿÿÿ: Re: [Matterhorn-users] delete recording in the > matterhorn core's admin tools page > > > When you expand Finished, you should see Workflow Instance and below > the Id. > > > The id is also obtained from the Media Module when you place mouse > over the particular recording, but I suspect you don't have it? The > same id also corresponds to the folder name, which you already > deleted. > > > > > On Mar 6, 2012, at 12:54 PM, ZENG Shan wrote: > > I expand Finished, and I got the URL: > http://202.38.128.13:8080/admin/index.html#/inspect?id=479, is the id > "479" the one I can delete in the REST Endpoint Docs, I tried, but > failed: > > Sample:/delete/{id} > Form action:/episode/delete/479 > | > | > | > | > | > > | > Response: > Status: 400 (Bad Request > > > > -----ÿÿÿÿÿÿÿÿ----- > ÿÿÿÿÿÿ: "Dr Leslaw Zieleznik" <[email protected]> > ÿÿÿÿÿÿÿÿ: 2012ÿÿ3ÿÿ6ÿÿ ÿÿÿÿÿÿ > ÿÿÿÿÿÿ: zengshan <[email protected]> > ÿÿÿÿ: > ÿÿÿÿ: Re: ÿÿÿÿ: Re: [Matterhorn-users] delete recording in the > matterhorn core's admin tools page > > > If you can expand Finished you see the Id, otherwise I don't know. > > > > > > > On Mar 6, 2012, at 9:02 AM, zengshan wrote: > > > is the id the same with "Unscheduled-IHEPcapture-1330340462691" > > 2012-03-06 > ZENG SHAN > Tel,861088236837 > E-mail,[email protected] > Computing Center > Institute of High Energy Physics,CAS > > ÿÿÿÿÿÿÿÿDr Leslaw Zieleznik > ÿÿÿÿÿÿÿÿÿÿ2012-03-06 16:48 > ÿÿÿÿÿÿRe: [Matterhorn-users] delete recording in the matterhorn > core's admin tools page ÿÿÿÿÿÿÿÿMatterhorn Users > ÿÿÿÿÿÿ > > Go to Search REST Endpoint Docs, then use DELETE /{id} > > > > > Leslaw > > > > > > > On 6 Mar 2012, at 07:09, zengshan wrote: > > > How can I delete recording in the matterhorn core's admin tools page, > for example:I want to delete the recording titled > "Unscheduled-IHEPcapture-1330340462691", I have deleted all the files > named "Unscheduled-IHEPcapture-1330340462691" under the directory > of /opt/matterhorn, but the recording is still there. | | | Title | > Presenter > | > Course/Series > | > Recording Date&Time > | Status | Action | > | Unscheduled-IHEPcapture-1330340462691 | | | Mon, Feb 27 2012 - 19:01 > Duration: 00:00:09 | > Finished > | View Info |Play | > | Unscheduled-IHEPcapture-1330501721121 | | | Wed, Feb 29 2012 - 15:48 > Duration: 00:02:14 | > Finished > | View Info |Play | > | Unscheduled-IHEPcapture-1330503467445 | | | Wed, Feb 29 2012 - 16:17 > Duration: 00:00:08 | > Finished > | View Info |Play | > | test | | | Tue, Mar 06 2012 - 14:41 > Duration: 00:02:00 | > Finished > | View Info |Play | > > > > 2012-03-06 > ZENG SHAN > Tel,861088236837 > E-mail,[email protected] > Computing Center > Institute of High Energy Physics,CAS > > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users > > > > Dr Leslaw Zieleznik > OBIS (Oxford Brookes Information Solutions) > Oxford Brookes University > [email protected] > Tel: +44 (0)1865 483973 > > ----------------------- > [email protected] > 01/58801 DW 41523 > mobil: 0664/60 588 4523 > TU Wien > DVR-Nummer: 0005886 > ----------------------- -- Christopher Brooks, BSc, MSc ARIES Laboratory, University of Saskatchewan Web: http://www.cs.usask.ca/~cab938 Phone: 1.306.966.1442 Mail: Advanced Research in Intelligent Educational Systems Laboratory Department of Computer Science University of Saskatchewan 176 Thorvaldson Building 110 Science Place Saskatoon, SK S7N 5C9 _______________________________________________ Matterhorn-users mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
