For troubleshooting, it may be necessary to check or change the status of the JumpCloud agent.
Mac
To check or change the agent status on a Mac, run as root:
[root@mymac ~]# launchctl list | grep jumpcloud
23392 -15 com.jumpcloud.darwin-agent
With process snapshot:
[root@mymac ~]# ps -fax | grep jumpcloud
0 23392 1 0 6:06PM ?? 0:00.01 /bin/bash ./jumpcloud-service.sh
0 23398 23392 0 6:06PM ?? 0:00.26 ./bin/jumpcloud-agent --conf=jcagent.conf
Launchctl will automatically try to start the service if it's loaded. If the service isn't running, make sure it's loaded:
[root@mymac /opt/jc]# launchctl load /Library/LaunchDaemons/com.jumpcloud.darwin-agent.plist
To restart:
[root@mymac /opt/jc]# launchctl stop com.jumpcloud.darwin-agent
To force a stop, unload the LaunchDaemon:
[root@mymac ~]# launchctl unload /Library/LaunchDaemons/com.jumpcloud.darwin-agent.plist
Windows
To check or change the agent status in Windows, Run As Administrator.
Via Command Line
To check state:
C:>sc query jumpcloud-agent
SERVICE_NAME: jumpcloud-agent
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
To start and stop:
sc start jumpcloud-agent
sc stop jumpcloud-agent
Via GUI
- Go to the Services object within Computer Management or run services.msc.
- Scroll to service name JumpCloud Agent and verify the value in the Status column.
- In Extended view, use the Stop, Start or Restart links, or find the options on the right click menu.
Linux
To check or change status in Linux, run as root (results truncated):
[root@host ~]# service jcagent status
jcagent.service - JumpCloud Agent
Loaded: loaded (/usr/lib/systemd/system/jcagent.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2016-09-01 13:27:16 MDT; 3h 26min ago
Docs: http://support.jumpcloud.com/knowledgebase
Main PID: 890 (code=exited, status=0/SUCCESS)
With process snapshot
[root@host ~]# ps -aufx | grep jumpcloud
root 2272 0.0 0.1 3840 1292 ? Sl 13:27 0:00 /opt/jc/bin/agent-monitor -exec=/opt/jc/bin/jumpcloud-agent -conf=/opt/jc/jcagent.conf
root 2275 0.0 1.6 682980 16400 ? Sl 13:27 0:03 _ /opt/jc/bin/jumpcloud-agent -conf=/opt/jc/jcagent.conf
To start, stop and/or restart:
service jcagent start
service jcagent stop
service jcagent restart
For newer systems with systemd, you can also use systemctl:
systemctl status jcagent
systemctl start jcagent
systemctl stop jcagent
systemctl restart jcagent