Ask the community

Can you enable Netskope Client via command line?

Melinda_Lee
New Contributor

Hello, I am testing the install script of Netskope via command line.  Every time i install the client is disabled, can I enable the client via command line?

1 Solution
mpray
Netskope
Netskope

Once the client is successfully installed it will try and find the logged-in user in your tenant and pull down the nsbranding file. If that is successful it will enable on its own. If that isn't happening be sure your user is provisioned in the tenant appropriately.

 

That being said there are command line options to start and stop the client.

 

For Windows:
Restart the Netskope client through Task manager or Services
From cmd (as admin): stagentsvc -stop
From cmd (as admin): stagentsvc -start

For Mac:
Restart the Netskope client from a Mac terminal window
> sudo launchctl unload /Library/LaunchDaemons/com.netskope.stagentsvc.plist
> sudo launchctl load /Library/LaunchDaemons/com.netskope.stagentsvc.plist

View solution in original post

13 Replies 13
mpray
Netskope
Netskope

Once the client is successfully installed it will try and find the logged-in user in your tenant and pull down the nsbranding file. If that is successful it will enable on its own. If that isn't happening be sure your user is provisioned in the tenant appropriately.

 

That being said there are command line options to start and stop the client.

 

For Windows:
Restart the Netskope client through Task manager or Services
From cmd (as admin): stagentsvc -stop
From cmd (as admin): stagentsvc -start

For Mac:
Restart the Netskope client from a Mac terminal window
> sudo launchctl unload /Library/LaunchDaemons/com.netskope.stagentsvc.plist
> sudo launchctl load /Library/LaunchDaemons/com.netskope.stagentsvc.plist

I approve this message LOL this works!

wasn't so lucky. How do you configure Netskope Client on Big Sur for peruserconfig mode - reliably? 

So far even Netskope doesn't appear to know...

Roger_smyth
New Contributor II

sudo launchctl unload /Library/LaunchDaemons/com.netskope.stagentsvc.plist = "could not find specified service"

 

Roger_smyth
New Contributor II

<<Once the client is successfully installed it will try and find the logged-in user in your tenant and pull down the nsbranding file. If that is successful it will enable on its own. If that isn't happening be sure your user is provisioned in the tenant appropriately.>>

 

this sounds like email invite mode. But what about peruserconfig mode? Sending emails to hundreds of users is not what Mgmt wants to do if they can help it...

Hi Roger,

 

The solution offered here is in relation to how to stop and start the NS Client service assuming the client has already been installed. It sounds like you are looking for information on actually installing the client on MAC. Email invite is an option, but for larger deployments, it's normally best to use an application like JAMF to do that. Here's some information on deploying MAC with JAMF.

 

https://docs.netskope.com/en/deploy-netskope-client-with-jamf.html

Roger_smyth
New Contributor II

yeah, we are aware of that link, wish we were on JAMF, unfortunately we are using VMWare / Airwatch/Workspace One. The online guided provided by VMWare is about 1/3 the amount of instructions provided for JAMF, so very the VMWare instructions seem very incomplete. We have spent many hours trying to figure out peruserconfig mode, juggling plist and system extension files, and all the while wondering why we have one Mac that works from using email invite mode, but will never work on peruserconfig. Definitely challenging to determine best course of action

Roger,

 

This might get more in-depth and since it's unrelated to the original post would you mind starting a new thread on help installing Netskope Client on MAC via Airwatch? That way we can get more eyes on it and when we have a solution others will be able to find it as well. 

Roger_smyth
New Contributor II

this was done, new thread entitled "Big Sur 11.4 + Netskope + peruserconfigmode = certain installation issues"

my users have upgraded to Big Sur and monterey and for some reason now that terminal cmd does not work. receive "could not find specified Service." Any suggestions for this? did the Plist location change? 

For Linux (Ubuntu/Debian):

> sudo systemctl restart stagentd

RobbG
New Contributor

For Big Sur and later you'll want to use:

sudo launchctl unload /Library/LaunchDaemons/com.netskope.client.auxsvc.plist

sudo launchctl load /Library/LaunchDaemons/com.netskope.client.auxsvc.plist

Hello I tried this nothing happens. is there another action to perform after starting the load ?

Thank you

Subscribe
Top Liked Authors

In order to view this content, you will need to sign in to your account. Simply click the "Sign In" button below

Sign In