cancel
Showing results for 
Search instead for 
Did you mean: 

importFile jnprpreconfig not working (Mac)

SOLVED
markj
New Contributor

importFile jnprpreconfig not working (Mac)

Greetings,

 

I'm trying to import our Pulse Settings but am having some issues.  Here is the command I'm using:

/Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/jamCommand -importFile /Users/Shared/Pulse\ Secure/PSSetup.jnprpreconfig

no errors but when I check in PS, my settings aren't there.  I'm running macOS 10.13.2 with Pulse Secure 5.2.6.  Any suggestions?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
markj
New Contributor

Re: importFile jnprpreconfig not working (Mac)

Hi,

I was actually able to get the settings imported by using this script:

#!/bin/sh

# Change working directory
cd "/Users/Shared/Pulse/"

# Install Pulse Secure software
/usr/sbin/installer -pkg PulseSecure\ 5.2.5.pkg -target /
sleep 1

/bin/chmod +x /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray
/bin/chmod +x /Applications/Pulse\ Secure.app/Contents/MacOS/Pulse\ Secure
/bin/chmod +x /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/jamCommand

# Launch the Pulse Tray
/usr/bin/open -a '/Applications/Pulse Secure.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'
sleep 1

# Open Pulse Secure in the background and then hide the app
/usr/bin/open --background -a '/Applications/Pulse Secure.app/Contents/MacOS/Pulse Secure'
/usr/bin/osascript -e 'tell application "System Events" to set visible of application process "Pulse Secure" to false'
sleep 1 

# Import the company VPN settings. Specify your file here
/Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/jamCommand -importFile MyCompany.jnprpreconfig  
sleep 1

# Quit  the Pulse Secure app
/usr/bin/osascript -e 'tell application "Pulse Secure" to quit'
sleep 2

# Open Junos Pulse in the background a second time and then hide the app
/usr/bin/open --background -a '/Applications/Pulse Secure.app/Contents/MacOS/Pulse Secure'
/usr/bin/osascript -e 'tell application "System Events" to set visible of application process "Pulse Secure" to false'
sleep 5

# Quit  the Junos Pulse app
/usr/bin/osascript -e 'tell application "Pulse Secure" to quit'

# cleanup after installation
rm -Rf /Users/Shared/Pulse

exit 0

taken from here:

https://www.jamf.com/jamf-nation/discussions/20529/junos-pulse-secure

 

Thanks 

View solution in original post

6 REPLIES 6
kita
Regular Contributor

Re: importFile jnprpreconfig not working (Mac)

You will need to run:

 

/Applications/PulseSecure.app/Contents/Plugins/JamUI/./jamCommand 
-importFile /Users/Shared/Pulse\ Secure/PSSetup.jnprpreconfig

 

markj
New Contributor

Re: importFile jnprpreconfig not working (Mac)

Running the command that you pasted gives me this:

-bash: /Applications/PulseSecure.app/Contents/Plugins/JamUI/./jamCommand: No such file or directory

Adding the backslash in /Applications/Pulse\ Secure gives me no error messages but I'm still not seeing the settings getting imported into Pulse Secure. 

 

kita
Regular Contributor

Re: importFile jnprpreconfig not working (Mac)

Can you change directory and confirm jamcommand exists?  If so, then run the command:

 

./jamCommand -importFile <path to preconfig>
markj
New Contributor

Re: importFile jnprpreconfig not working (Mac)

jamCommand exists in JamUI folder.  I tried cd to JamUI then running

./jamCommand -importFile <path to preconfig>

but the same thing is happening.  Terminal accepts the command, gives no errors but upon opening PS my config isn't showing up. 

kita
Regular Contributor

Re: importFile jnprpreconfig not working (Mac)

Hello Mark,

 

The only other possiblity is the preconfig file is bad or in the wrong format. Here is a quick video when jamcommand works and the working directory:

 


https://i.xpressit.io/7571b71f

 

Could you send me a PM with the preconfig?

markj
New Contributor

Re: importFile jnprpreconfig not working (Mac)

Hi,

I was actually able to get the settings imported by using this script:

#!/bin/sh

# Change working directory
cd "/Users/Shared/Pulse/"

# Install Pulse Secure software
/usr/sbin/installer -pkg PulseSecure\ 5.2.5.pkg -target /
sleep 1

/bin/chmod +x /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray
/bin/chmod +x /Applications/Pulse\ Secure.app/Contents/MacOS/Pulse\ Secure
/bin/chmod +x /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/jamCommand

# Launch the Pulse Tray
/usr/bin/open -a '/Applications/Pulse Secure.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'
sleep 1

# Open Pulse Secure in the background and then hide the app
/usr/bin/open --background -a '/Applications/Pulse Secure.app/Contents/MacOS/Pulse Secure'
/usr/bin/osascript -e 'tell application "System Events" to set visible of application process "Pulse Secure" to false'
sleep 1 

# Import the company VPN settings. Specify your file here
/Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/jamCommand -importFile MyCompany.jnprpreconfig  
sleep 1

# Quit  the Pulse Secure app
/usr/bin/osascript -e 'tell application "Pulse Secure" to quit'
sleep 2

# Open Junos Pulse in the background a second time and then hide the app
/usr/bin/open --background -a '/Applications/Pulse Secure.app/Contents/MacOS/Pulse Secure'
/usr/bin/osascript -e 'tell application "System Events" to set visible of application process "Pulse Secure" to false'
sleep 5

# Quit  the Junos Pulse app
/usr/bin/osascript -e 'tell application "Pulse Secure" to quit'

# cleanup after installation
rm -Rf /Users/Shared/Pulse

exit 0

taken from here:

https://www.jamf.com/jamf-nation/discussions/20529/junos-pulse-secure

 

Thanks