05-30-2024 07:56 AM
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.
any idea of how to overcome this PnP issue?
06-08-2024 12:53 AM
@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.
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide