Introduction
This article provides guidance to enroll and deploy the WXP Insights agent, a core component of Workforce Experience Platform (WXP), for Mac OS devices using company PIN:
Download the latest WXP Insights agent for macOS from the Download WXP Insights Software page.
Select the script that configures the Mac Script Editor application based on preferences.
Obtain the company PIN from WXP:
From the left menu of WXP, click Settings > Preferences. The Preferences tab is displayed.
In the Preferences tab, scroll down to the Company PIN section and copy the pin.
Configure the agent for macOS.
Note: macOS devices do not support proxy configuration for enrollment in the HP Workforce Experience Platform.
Select a Script to Configure the Mac Script Editor Application
After downloading the latest WXP Insights agent, copy and save the necessary script to configure the Script Editor application based on preferences. When editing the scripts, ensure to change the "PIN=" to the actual company PIN.
Enrollment.sh: Shows the menu bar and enrolls devices without user interaction (Update the CPIN within the script)
Enrollment_Tray.sh: Hides the menu bar and enrolls devices without user interaction (Update the CPIN within the script)
ShowTray.sh: Shows the menu bar; for devices that have already enrolled in the WXP Insights agent and auto-upgraded to macOS version 2.23.6 (and later)
HideTray.sh: Hides the menu bar; for devices that have already enrolled in the WXP Insights agent and auto-upgraded to macOS version 2.23.6 (and later)
If the device is already enrolled, refer to the Enrolled Devices section below.
Enrollment.sh script
#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
PIN=#########
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo"Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"PIN\":\"$PIN\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully stored Data at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store Data"
exit 1
fi
exit 1
Enrollment_Tray.sh script
#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
PIN=#########
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo "Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"PIN\":\"$PIN\",\"HideTray\":\"true\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully stored Data at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store Data"
exit 1
fi
exit 1
ShowTray.sh script
#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo "Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"HideTray\":\"false\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully create enrolment json at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store PIN"
exit 1
fi
exit 1
HideTray.sh script
#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo "Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"HideTray\":\"true\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully create enrolment json at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store PIN"
exit 1
fi
exit 1
Obtaining Company PIN
To obtain the company PIN:
Log in to WXP. The Home page is displyed
From the left menu of WXP, select Settings > Preferences. The Preferences tab is displayed.
In the Preferences tab, scroll down to the Company PIN section and copy the pin.
For HP Partners: After accepting the partner invitation, log in to WXP. Select Customers > Companies > Company Details > Preferences.
Configuring the WXP Insights Agent for macOS
Configuring the WXP Insights agent depends on whether or not a device is enrolled. Instructions for both are as follows:
Unenrolled devices
After the WXP Insights agent is downloaded, open the Script Editor application and copy one of the scripts above. Ensure to replace the PIN with the actual company PIN and run the selected script.
The selected script must be executed before the agent installation.
After the selected script is executed, open the HPInsightsInstaller.pkg to install the agent. Once installed, enrollment automatically begins.
On the Status bar, select the HP icon, and select Enroll this Device.
From the platform window, click Enroll to proceed.
Select Company if the device is owned by a company or Personal if the device is owned by an individual, then click Next.
If Personal is chosen, some functionality may be disabled.
Enter the company PIN, then click Next.
When the enrollment confirmation window appears, click Yes to authorize company-owned computers. For individually owned computers, click either Yes or No depending on company policies.
A confirmation window appears, and Device Is Enrolled is displayed if the computer is successfully enrolled. Remember, computers must be connected to the Internet during enrollment
Click Details for more information about the enrollment.
Enrolled Devices
If the user has already installed the WXP Insights agent and wants to toggle hiding the menu bar application, the user can proceed by running the ShowTray.sh or HideTray.sh scripts in the console.
While in the Script Editor application, input either
sudo bash ./ShowTray.shorsudo bash ./HideTray.sh.Once entering the desired script, the user will be prompted to enter the PIN for PIV Authentication.
After entering the PIN, the device will successfully run the script to either show or hide the menu bar.
Contact Us
For any assistance, create a support case or email support@wxp.hp.com.