We need to get a dump of the trust table daily for review purposes. We currently use piconfig.exe to dump the trust table to file, but we're trying to get away from explicitly login. Is there anywhere we can access the trust table using PISDK?
However, the Powershell for the PI System tools expose the trust table via the Get-PITrust cmdlet and is a much better option. That's how I'm running my audit scripts now.
Hello See Ming,
It's also possible performing an explicit login with the recent versions of piconfig.exe
piconfig -explicit -username <username> -password <password>
Sorry, just realized you like to get away from explicit login. For sure this works as well.
To use Windows Integrated Security, please use:
To request connection based on a PI trust, please use:
Thanks Gregor, I tried piconfig -windows and it didn't work. It gave me "*[-10727] PINET: RPC is Non-Existent." as if I don't have access :(
If you are using piconfig.exe on a remote node, you need to pass the PI Servers name too. Please try the following (replace <PIServerName> with your PI Servers node name) :
piconfig -node <PIServerName> -windows
That still give me the same error on the interface node. I went to the PI server itself and ran the piconfig on there and it doesn't require login or passing the PI server name. I think I might just move the script to the PI server to avoid the explicit login... Thanks :)
Gregor, I copied the piconfig.exe file to the interface node and tried piconfig.exe -node <PI Server> -trust. This time it worked! I think the piconfig.exe on the interface node might be too old... oh well, thanks so much!
Retrieving data ...