-
×InformationWindows update impacting certain printer icons and names. Microsoft is working on a solution.
Click here to learn moreInformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
-
×InformationWindows update impacting certain printer icons and names. Microsoft is working on a solution.
Click here to learn moreInformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
- HP Community
- Desktops
- Business PCs, Workstations and Point of Sale Systems
- ThinPro hpdmagent restart HPDM task
Create an account on the HP Community to personalize your profile and ask a question
12-08-2016 05:58 AM
On a local bash I can use:
service hpdmagent --full-restart
and it works, but not within a HPDM task.
Is there a possibility to restart the HPDM agent by HPDM Task?
I have tried following ways with and without sudo:
1. _File and Registry > Script
service hpdmagent --full-restart
2. _File and Registry > Script-File
Deploy Script-File
Run Script-File
With both ways the agent stops but don't restarts and the tasks is still running "in progess"!
Kind regards
Lukas
Solved! Go to Solution.
Accepted Solutions
12-12-2016 01:30 AM
Create a text file "ManipulateDMAgent.sh" with below command in it:
#!/bin/sh
sleep 3
/etc/init.d/hpdmagent stop
# you can add more here per needs, like I want to remove the log files: rm –f /etc/hpdmagent/*.log
/etc/init.d/hpdmagent start
- Download the file to /tmp
- Add Command subtask chmod +x /tmp/manipulateDMAgent.sh to make the file executable
- Add Command subtask /tmp/manipulateDMAgent.sh to execute it with WAIT option(in DM template) set to "No"
Note: you might see “bad interpreter” error on ThinPro. Please make sure the .sh file is converted to UNIX (via third party editor or “set ff=unix” locally) before executing it.
My opinions are my own, and do not express those of HPI.
**Click the White Thumbs Up Button on the right to say Thanks**
12-12-2016 01:30 AM
Create a text file "ManipulateDMAgent.sh" with below command in it:
#!/bin/sh
sleep 3
/etc/init.d/hpdmagent stop
# you can add more here per needs, like I want to remove the log files: rm –f /etc/hpdmagent/*.log
/etc/init.d/hpdmagent start
- Download the file to /tmp
- Add Command subtask chmod +x /tmp/manipulateDMAgent.sh to make the file executable
- Add Command subtask /tmp/manipulateDMAgent.sh to execute it with WAIT option(in DM template) set to "No"
Note: you might see “bad interpreter” error on ThinPro. Please make sure the .sh file is converted to UNIX (via third party editor or “set ff=unix” locally) before executing it.
My opinions are my own, and do not express those of HPI.
**Click the White Thumbs Up Button on the right to say Thanks**
Didn't find what you were looking for? Ask the community