{"id":103498,"date":"2024-01-12T12:44:00","date_gmt":"2024-01-12T17:44:00","guid":{"rendered":"https:\/\/jumpcloud.com\/?post_type=support&p=103498"},"modified":"2024-03-26T16:00:02","modified_gmt":"2024-03-26T20:00:02","slug":"view-agent-logs-using-commands","status":"publish","type":"support","link":"https:\/\/jumpcloud.com\/support\/view-agent-logs-using-commands","title":{"rendered":"View Agent Logs Using Commands"},"content":{"rendered":"\n
Admins can gather the 探花大神 Agent log manually or through the Admin Portal by downloading the logs under the Actions menu of the target device. However, it\u2019s also possible to view the logs using Commands within 探花大神. The following examples show how to read the Agent log on different operating systems.<\/p>\n\n\n\n
<\/p><\/div>
Note:<\/strong> \n
Agent logs may exceed the 1MB size limitation of 探花大神 Commands, resulting in a truncated log. The following examples are designed to return the last 1MB (most recent portion) of the log if it exceeds that limitation. <\/p>\n <\/div><\/div><\/div><\/div>\n\n\n\n
Viewing the Windows Agent Log<\/h2>\n\n\n\n\n
From DEVICE MANAGEMENT<\/strong> > Commands<\/strong>, click +<\/strong>, then click Command<\/strong>.<\/li>\n\n\n\n
For Name<\/strong>, enter Read Windows Agent Log<\/strong>. <\/li>\n\n\n\n
For Type<\/strong>, select Windows<\/strong>.<\/li>\n\n\n\n
Check the Windows PowerShell<\/strong> option.<\/li>\n\n\n\n
Paste the following in the Command<\/strong> field:<\/li>\n<\/ol>\n\n\n\n
Under the Device Groups<\/strong> and Devices<\/strong> tabs, select the devices on which the command will run and click save<\/strong>.<\/li>\n\n\n\n
From the commands list view, select the command you just created and click Run Now<\/strong>.<\/li>\n\n\n\n
The command will execute with a Command Running…<\/strong> message. Wait at least two minutes for the command to run and create a readable result. <\/li>\n\n\n\n
From the Commands page, click the Results<\/strong> tab to see the command output. Click view<\/strong> on the appropriate command result to open the Command Result Details and view the log.<\/li>\n<\/ol>\n\n\n\n
Viewing the macOS Log<\/h2>\n\n\n\n\n
From DEVICE MANAGEMENT<\/strong> > Commands<\/strong>, click +<\/strong>, then click Command<\/strong>.<\/li>\n\n\n\n
For Name<\/strong>, enter Read macOS Agent Log<\/strong>. <\/li>\n\n\n\n
Under Run As<\/strong>, select root<\/strong>.<\/li>\n\n\n\n
For Type<\/strong>, select Mac<\/strong>.<\/li>\n\n\n\n
Paste the following in the Command<\/strong> field:<\/li>\n<\/ol>\n\n\n\n
Under the Device Groups<\/strong> and Devices<\/strong> tabs, select the devices on which the command will run and click save<\/strong>.<\/li>\n\n\n\n
From the commands list view, select the command you just created and click Run Now<\/strong>.<\/li>\n\n\n\n
The command will execute with a Command Running…<\/strong> message. Wait at least two minutes for the command to run and create a readable result. <\/li>\n\n\n\n
From the Commands page, click the Results<\/strong> tab to see the command output. Click view<\/strong> on the appropriate command result to open the Command Result Details and view the log.<\/li>\n<\/ol>\n\n\n\n
Viewing the Linux Agent Log<\/h2>\n\n\n\n\n
From DEVICE MANAGEMENT<\/strong> > Commands<\/strong>, click +<\/strong>, then click Command<\/strong>.<\/li>\n\n\n\n
For Name<\/strong>, enter Read Linux Agent Log<\/strong>. <\/li>\n\n\n\n
Under Run As<\/strong>, select sudo<\/strong>.<\/li>\n\n\n\n
For Type<\/strong>, select Linux<\/strong>.<\/li>\n\n\n\n
Paste the following in the Command<\/strong> field:<\/li>\n<\/ol>\n\n\n\n
Under the Device Groups<\/strong> and Devices<\/strong> tabs, select the devices on which the command will run and click save<\/strong>.<\/li>\n\n\n\n
From the commands list view, select the command you just created and click Run Now<\/strong>.<\/li>\n\n\n\n
The command will execute with a Command Running…<\/strong> message. Wait at least two minutes for the command to run and create a readable result. <\/li>\n\n\n\n
From the Commands page, click the Results<\/strong> tab to see the command output. Click view<\/strong> on the appropriate command result to open the Command Result Details and view the log.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"
Admins can gather the 探花大神 Agent log manually or through the Admin Portal by downloading the logs under the Actions […]<\/p>\n","protected":false},"author":206,"featured_media":0,"template":"","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"2normal","inline_featured_image":false,"footnotes":""},"support_category":[2923,3161,2895,2852,3127],"support_tag":[],"coauthors":[2842],"acf":[],"yoast_head":"\n
View Agent Logs Using Commands - 探花大神<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n