Fortinet black logo
7.2.0

MacOS Files Directories and Commands

MacOS Files Directories and Commands

There are two locations where Persistent Agent Settings are stored:

  • Default Settings: Upon installation of the Persistent Agent, the default settings are written to the files indicated in the chart below. Settings written to the default location remain until one of the following occurs:

    • Entry is manually changed.

    • Agent is uninstalled.

    • Agent is updated.

      Important:

    • The default location should not be used when pushing settings via software.

    • If the Persistent Agent installer is modified in any way, the update functionality in FortiNAC may remove any or all customization.

  • Policy Settings: Used when pushing settings via software. These settings take precedence over the Default Settings. Policy Settings can only be changed via software push.

Files and Directories

Description

File or Directory

Created upon installation of the agent. Contains all default Persistent Agent settings

/Library/Preferences/com.bradfordnetworks.bndaemon.plist

Contains all non-default (Policy) Persistent Agent settings

/Library/Preferences/com.bradfordnetworks.bndaemon.policy.plist

Directory Persistent Agent package is installed

/Library/Application Support/Bradford Networks/Persistent Agent

Persistent Agent management script

/Library/LaunchDaemons/com.bradfordnetworks.agent.plist

Commands

Description

Command

View default plist file

sudo defaults read /Library/Preferences/com.bradfordnetworks.bndaemon

Create a new policy file by making a copy of the default plist file

sudo cp /Library/Preferences/com.bradfordnetworks.bndaemon.plist /Library/Preferences/com.bradfordnetworks.bndaemon.policy.plist

Stop the agent: Unload the launchDaemon plist.

sudo launchctl unload /Library/LaunchDaemons/com.bradfordnetworks.agent.plist

Start the agent: Reload the launchDaemon plist.

sudo launchctl load /Library/LaunchDaemons/com.bradfordnetworks.agent.plist

Uninstall agent

  1. Go to

    /Library/Application Support/Bradford Networks/Persistent Agent/Uninstall

  2. Once uninstalled, run the following command from the command line (Terminal) to forget the package:

    sudo /usr/sbin/pkgutil --forget com.bradfordnetworks.PersistentAgent

MacOS Files Directories and Commands

There are two locations where Persistent Agent Settings are stored:

  • Default Settings: Upon installation of the Persistent Agent, the default settings are written to the files indicated in the chart below. Settings written to the default location remain until one of the following occurs:

    • Entry is manually changed.

    • Agent is uninstalled.

    • Agent is updated.

      Important:

    • The default location should not be used when pushing settings via software.

    • If the Persistent Agent installer is modified in any way, the update functionality in FortiNAC may remove any or all customization.

  • Policy Settings: Used when pushing settings via software. These settings take precedence over the Default Settings. Policy Settings can only be changed via software push.

Files and Directories

Description

File or Directory

Created upon installation of the agent. Contains all default Persistent Agent settings

/Library/Preferences/com.bradfordnetworks.bndaemon.plist

Contains all non-default (Policy) Persistent Agent settings

/Library/Preferences/com.bradfordnetworks.bndaemon.policy.plist

Directory Persistent Agent package is installed

/Library/Application Support/Bradford Networks/Persistent Agent

Persistent Agent management script

/Library/LaunchDaemons/com.bradfordnetworks.agent.plist

Commands

Description

Command

View default plist file

sudo defaults read /Library/Preferences/com.bradfordnetworks.bndaemon

Create a new policy file by making a copy of the default plist file

sudo cp /Library/Preferences/com.bradfordnetworks.bndaemon.plist /Library/Preferences/com.bradfordnetworks.bndaemon.policy.plist

Stop the agent: Unload the launchDaemon plist.

sudo launchctl unload /Library/LaunchDaemons/com.bradfordnetworks.agent.plist

Start the agent: Reload the launchDaemon plist.

sudo launchctl load /Library/LaunchDaemons/com.bradfordnetworks.agent.plist

Uninstall agent

  1. Go to

    /Library/Application Support/Bradford Networks/Persistent Agent/Uninstall

  2. Once uninstalled, run the following command from the command line (Terminal) to forget the package:

    sudo /usr/sbin/pkgutil --forget com.bradfordnetworks.PersistentAgent