Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Profilemanager - how to stop all tasks

OS X - Version 10.9.1

Server - Version 3.0.2


Question:
Is there anyway how i can stop/kill all the active tasks in Profile Manager


I look on the following sites:

https://discussions.apple.com/thread/5068610


I try this command in Terminal:

sudo psql -h "/Library/Server/PostgreSQL For Server Services/Socket" -U _postgres -d device_management -c "TRUNCATE TABLE tasks;"


It will give me this message:

psql: could not connect to server: No such file or directory

Is the server running locally and accepting

connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?

MacBook Pro, Mac OS X (10.6.7), iPhone, iPad, iMac, MacBook Pro

Posted on Jan 20, 2014 1:43 AM

Reply
Question marked as Best reply

Posted on Jan 20, 2014 6:22 AM

I found this:

https://discussions.apple.com/thread/5574533?answerId=23844951022#23844951022


Terminal

sudo psql -U _devicemgr -d devicemgr_v2m0 -h /Library/Server/ProfileManager/Config/var/PostgreSQL -c "DELETE FROM library_item_tasks WHERE completed_at IS NOT NULL"


Terminal says it deleted all the tasks, but when i check in profile manager all the tasks are still stuck.

2 replies
Question marked as Best reply

Jan 20, 2014 6:22 AM in response to Geuzencollege

I found this:

https://discussions.apple.com/thread/5574533?answerId=23844951022#23844951022


Terminal

sudo psql -U _devicemgr -d devicemgr_v2m0 -h /Library/Server/ProfileManager/Config/var/PostgreSQL -c "DELETE FROM library_item_tasks WHERE completed_at IS NOT NULL"


Terminal says it deleted all the tasks, but when i check in profile manager all the tasks are still stuck.

Profilemanager - how to stop all tasks

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.