chirag_sharma2
Frequent contributor

MAC Usage Feature On/Off Missing

Why setting usage via mgsft_rollout_response file is not supported?

Why is it as per design? 

In Windows, we do have the option to Turn Usage On/Off at the time of deployment, why is it missing in MAC ?

0 Kudos
11 Replies
ChrisG
Community Manager Community Manager
Community Manager

Re: MAC Usage Feature On/Off Missing

The mgsft_rollout_response file is only used to configure a few selected/special bootstrap settings. On UNIX-like operating systems, the mgsconfig tool is typically used as part of your installation script to configure default agent settings.

For example, you could include something like the following in your agent deployment script to enable usage metering when the agent is installed:

cat <<EOF >/var/tmp/mgsconfig.$$.ini
[Usage Agent]
desc0 = Disabled
val0 = False
EOF

/opt/managesoft/bin/mgsconfig -i /var/tmp/mgsconfig.$$.ini

rm -f /var/tmp/mgsconfig.$$.ini

Here are some other posts which you may find helpful that talk about agent configuration:

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)
chirag_sharma2
Frequent contributor

Re: MAC Usage Feature On/Off Missing

Hi @ChrisG ,

Is it okay to create 1 final Config.ini with Usage ON and replace that file on all MAC devices instead of running a script or replacing temp file?

0 Kudos
ChrisG
Community Manager Community Manager
Community Manager

Re: MAC Usage Feature On/Off Missing

Is the idea you're suggesting here to install/update the /var/opt/managesoft/etc/config.ini file directly?

I would suggest it is better practice to update the file by running mgsconfig than trying to make any modifications to the file directly. If you modify the file yourself (particularly if you replace the entire file) then you don't necessarily know what you will be overwriting. Running mgsconfig will take care of safely merging the settings you are trying to configure with current settings that are in the file.

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)
chirag_sharma2
Frequent contributor

Re: MAC Usage Feature On/Off Missing

Yes @ChrisG , According to support Engineer - I should follow this process - 

1. Modify var/opt/managesoft/etc/config.ini and Put Disabled=False under [ManageSoft\Usage Agent\CurrentVersion]
2. Restart servcies of mgsusageag and ndtask


sudo /bin/launchctl stop com.flexerasoftware.mgsusageag
ssudo /bin/launchctl start com.flexerasoftware.mgsusageag

sudo /bin/launchctl stop com.flexerasoftware.ndtask
sudo /bin/launchctl start com.flexerasoftware.ndtask