Mac Update Tool

Support forums for the Habitat Automate plugin
Post Reply
SpazCat
Posts: 3
Joined: Fri Aug 28, 2020 6:02 pm
3

Mac Update Tool

Post by SpazCat »

Hello,

I am really enjoying learning about this tool and love the extra features, but the main reason I got it was for the MacOS update tool. Currently right now I am having an issue that a lot of the commands from the UI are not running (or not seeing any visible changes). I try to adjust the settings for the mac to allow Auto Update and Only Recommended ones, but the red dots do not change from Red to Green, I have exactly two Mac's that I am able to adjust but I have a long list of others that are not responding. I can however connect to them through the agent and I know they are online.

Thank you for your time!

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Mac Update Tool

Post by Cubert »

Ok, are you seeing the scripts being scheduled on your Mac Agents? Can you post some screen shots and script logs that reference the Habitat Mac scripting?

Also as 1.0.0.51 we have an automated service manager. Can you post a screen shot of the Mac Updater setting in that control?

SpazCat
Posts: 3
Joined: Fri Aug 28, 2020 6:02 pm
3

Re: Mac Update Tool

Post by SpazCat »

Sorry for the long delay.

The scripts are hitting on some of the macs but not all of them (that could be due to stalled agents),
Habitat1.png
Habitat1.png (35.61 KiB) Viewed 3788 times
I do know some of the macs on the list are connected and working properly, and those are currently not allowing any adjustment in settings when I try to make changes
Habitat2.png
Habitat2.png (23.28 KiB) Viewed 3788 times
I think part of my issue is with stalled agents.

When I try to run the screenconnect command under the stalled agent section to get them to respond I get this error
stalledagent.png
stalledagent.png (7.74 KiB) Viewed 3788 times
I have gone through and connected RMM+ to my screenconnect server.

On the macs that are reporting properly, I see the Habitat scripts failing. From the logs it is giving the failed state due to no updates are needed to be done.

Please let me know if you need some more info.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Mac Update Tool

Post by Cubert »

On the macs that are reporting properly, I see the Habitat scripts failing. From the logs it is giving the failed state due to no updates are needed to be done.


Can you post the script logs as you see them? I need to see the steps taken in the script and the responses from those steps to see if we just need to add a catch for the failure.

SpazCat
Posts: 3
Joined: Fri Aug 28, 2020 6:02 pm
3

Re: Mac Update Tool

Post by SpazCat »

Here is what I am seeing from a successful run of the update script:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
The Script(444) was successful in the Then section.

Script: S444 - Starting at Server Time: Tuesday, September 22, 2020 12:02:06 AM
IF F5 ValueOne (P1): CMD Comparer (P2): 2 ValueTwo (P3): SCAN T: 0.7704494
L2 F109 Delimiter (P2): Variable (P3): SOFTWAREUPDATELIST T: 0.7704494
L3 F70 Value (P1): SOFTWAREUPDATELIST Comparer (P2): 2 To (P3): Jump (P4): :NOSOFTWAREUPDATES T: 316.6773398
L4 F171 ValueOne (P1): 8 Operator (P2): '(931,TRIM(||Safari14.0Catalina...' ValueTwo (P3): , Variable (P4): T: 316.6773398
L5 F171 ValueOne (P1): 0 Operator (P2): '(931,TRIM(||Safari14.0Catalina...' ValueTwo (P3): 49 Variable (P4): 0 T: 316.6773398
L6 F171 ValueOne (P1): 9 Operator (P2): '(931,TRIM(||Safari14.0Catalina...' ValueTwo (P3): ' Variable (P4): || T: 316.6773398
L7 F20 SetType(P1):1 Parameter(P2):'INSERT IGNORE INTO plugin_p4a_...' VariableName(P3):SQLCMD1 T: 316.6773398
L8 F20 SetType(P1):1 Parameter(P2):'INSERT IGNORE INTO plugin_p4a_...' VariableName(P3):SQLCMD2 T: 316.6773398
L9 F29 Message (P1): 'Software update SQL [INSERT IGNORE INTO plugin_p4a_habitat_maxosx_updates (`ComputerID`,`P...' T: 316.6773398
L10 F67 Sql (P1): 'INSERT IGNORE INTO plugin_p4a_habitat_maxosx_updates (`ComputerID`,`Package`, `ScanDate`) ...' T: 316.6773398
L11 F29 Message (P1): Mac OS X Software update scan completed. T: 316.6773398
L12 F129 Jump (P1): T: 316.6773398
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Here is the log from a failure:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
The Script(444) failed in the Then section at step 5. The reason: Script String Manipulation Failed

Script: S444 - Starting at Server Time: Monday, September 21, 2020 1:03:20 PM
IF F5 ValueOne (P1): CMD Comparer (P2): 2 ValueTwo (P3): SCAN T: 0.8015757
L2 F109 Delimiter (P2): Variable (P3): SOFTWAREUPDATELIST T: 0.8015757
L3 F70 Value (P1): SOFTWAREUPDATELIST Comparer (P2): 2 To (P3): Jump (P4): :NOSOFTWAREUPDATES T: 204.2497233
L4 F171 ValueOne (P1): 8 Operator (P2): OK ValueTwo (P3): , Variable (P4): T: 204.2497233
L5 F171 ValueOne (P1): 0 Operator (P2): OK ValueTwo (P3): -1 Variable (P4): 0 T: 204.2497233
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

I suspect the failure of the script is not an error since it states it was unable to find updates. What I am thinking is the cause of the issue is the Mac Agents not reporting.

The more I dive into this I think I am finding out the issue not to be the scripts itself but the agent interaction with Automate.

I have tried to use the stalled agent detector to get them to talk but I dont see a change.

Thank you for your help.

PS. Really loving the SQL Tool it might solve my issue with getting reports from patch status of MacOS.

Post Reply

Return to “Habitat”