cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
413
Views
0
Helpful
1
Replies

PnP Service Error 16 - Insufficient PnP CLI-Exec Service Privilege

Islam_Hassanin
Level 1
Level 1

Hello everyone,

I'm trying to run a Python script on an IOX guestshell, The script runs fine when i do "guestshell run python script.py" or from inside the guestshell itself.

I configured EEM to run the script automatically when guestshell is up "in case of power failure or reload.".

i noticed that the script runs fine, then the PnP session failed/closed, When i checked the log, it says, " PnP Service Error 16 - Insufficient PnP CLI-Exec Service Privilege.".

I tired that while connecting console & ssh with user privileges (15) but shows same error, the script runs till the PnP session fail and closed. 

PnP is used, because the script uses the cli python module which implicitly imports the PnP module.

Islam_Hassanin_0-1717080861883.png

any idea of how to overcome this PnP issue?

 

1 Reply 1

antisocial11224
Spotlight
Spotlight

@Islam_Hassanin wrote:

Hello everyone,

I'm trying to run a Python script on an IOX guestshell, The script runs fine when i do "guestshell run python script.py" or from inside the guestshell itself.

I configured EEM to run the script automatically when guestshell is up "in case of power failure or reload.".

i noticed that the script runs fine, then the PnP session failed/closed, When i checked the log, it says, " PnP Service Error 16 - Insufficient PnP CLI-Exec Service Privilege.".

I tired that while connecting console & ssh with user privileges (15) but shows same error, the script runs till the PnP session fail and closed. 

PnP is used, because the script uses the cli python module which implicitly imports the PnP module.

Islam_Hassanin_0-1717080861883.png

any idea of how to overcome this PnP issue?

 


When running a Python script on an IOX guestshell, it operates smoothly using "guestshell run python script.py" or within the guestshell itself. However, when configured to run automatically via EEM during a power failure or reload, the script encounters a PnP Service Error 16, indicating insufficient PnP CLI-Exec Service Privilege. Despite attempts with user privileges (level 15) over both console and SSH connections, the error persists, leading to the script's premature termination upon the PnP session failure. Since the script utilizes the cli Python module, which implicitly imports the PnP module, this privilege issue disrupts its execution. To resolve this, verifying user privileges, reviewing PnP service configurations, enabling debugging for detailed error information, consulting documentation or support resources, and exploring alternative execution methods might help mitigate the PnP service error and enable seamless script execution.

Review Cisco Networking for a $25 gift card