Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Is there any PowerShell or command script to add the Qlik Sense NPrinting Engine?
In My organization they are not allowing to enter manual password. So I am looking for script to add the NPrinting engine.
could you please suggest me on this.
Thank you.
Sorry there is no API no script to do that and this part of setup is done via NPrinting Admin interface.
cheers
Hi,
The only allowed and supported APIs are the one documented in the help site https://help.qlik.com/en-US/nprinting/February2024/APIs/NP+API/index.html
The only supported method to add an Engine s the one documented https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/DeployingQVNprinting/Adding-a-Q...
Best Regards,
Ruggero
Hi @Lech_Miszkiewicz & @Ruggero_Piccoli ,
I got this script but i am not sure where we need to execute this. could you please check from your side and suggest.
// Authentication details
const username = "admin_username";
const password = "admin_password";
// Engine details
const engineName = "NewEngine";
const machineName = "server_hostname";
const domain = "domain_name";
const serviceAccount = "domain\service_account";
const servicePassword = "service_account_password";
// API endpoint to add a new engine
const addEngineUrl = "https://nprinting_server:port/api/v1/engines";
// Send request to add the engine
fetch(addEngineUrl, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Basic " + btoa(username + ":" + password)
},
body: JSON.stringify({
"name": engineName,
"hostname": machineName,
"domain": domain,
"serviceAccount": serviceAccount,
"servicePassword": servicePassword
})
})
.then(response => {
if (response.ok) {
console.log("Engine added successfully!");
} else {
console.error("Error adding engine:", response.statusText);
}
})
.catch(error => {
console.error("Network error:", error);
});
Where did you get this from? It is not official so I guess you may need to ask the person who gave you that script. It actually looks like halucinating chat GPT 😂🤣 cause such enpoint does not exist (
/api/v1/engines
).
There is engine installation proces during which you need to CREATE certificate password and then there is adding engine in Qlik NPrinting admin console in which you also need to enter via interface the same password.
At the same time it looks like you still need to enter password there so not sure why dont you do it via interface?
Obviously when buying / introducing NPrinting to company you would have made educated decision and you would be aware of all unconditional requirements which are listed on https:// help.qlik.com and which explain the process of deploying nprinting. That would have to be considered against all the internal policies so I struggle to understand why are you asked to do something what is not available or supported?
There is silent installation of the engine documented: https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/DeployingQVNprinting/Installing...
But there is no silent add engine configuration api endpoint and that MUST be done via interface.
cheers
Hi,
Only procedures documented in the official help site are supported. You do everything else at your own risk.
Best Regards,
Ruggero
Qlik has a professional services team, or perhaps reach one of our trusted partners, who can work with you to iterate your requirements with you and develop a solution.
Please reach out to your Qlik Account or Customer Success manager to discuss this option with you. Qlik's PS services, keep in mind, are an optional paid engagement. They have a broad scope of field experience and tools which can be leveraged to iteratively build our your requirements.
Kind regards...