Cancel
Showing results for 
Search instead for 
Did you mean: 

mindconnect api

Experimenter
Experimenter

I am trying to connect my iot2040 to mindsphere using the mindconnect cli. I am trying to offboard my agent that is already onboarded. But it asks for a passkey. I need a passkey to get service token as well. I don't know where or how to get this passkey.

3 REPLIES 3

Re: mindconnect api

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

1) Please refer to documentation 

https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/setting-up-the-cli.html

"You will have to create and remember a passkey at this moment which must be used in other CLI commands to unlock the credential store."  

 

2) Alternatively, you can use Asset Manager UI to offboard an agent. The steps mentioned in attached file

 

AssetManager2.png

 

AssetManager.png

Re: mindconnect api

Experimenter
Experimenter

Thanks Vaibhav,

 

So  tried getting service credentials using mc sc --username --password --tenant --passkey according to the help section.

I got an error saying:

EACCES: permission denied, open '/home/user/.mc/auth.json'.

Is there something that must be present in auth.json?

I just wanted to clarify I have an agent that does not have a pre-installed mindconnect library and I had to install the mindconnect cli to it.

 

Let me know if you need any additional information.

Re: mindconnect api

Experimenter
Experimenter
It was an elevation issue. I got the service credentials and created a passkey! Thank you so much!