Ufter upgrate from 9.2 to 9.5.2 can not use IEM CLI

Hello all
Few days agou we upgrade BES from 9.2 to 9.5 and now we cant use the IEM CLI
I download the latest RESTAPI Command-line Interface (CLI) from here Legacy Communities - IBM TechXchange Community
but still cant use it
we cant even log on see the print screen


Anyone, need help :neutral_face:
thanks
Julia

The version should match. You shouldn’t need to download the CLI as it came with the platform.

If you do need the package it is at http://software.bigfix.com/download/bes/95/util/CLI9.5.2.56.zip

The better place to check for the correct downloads is at http://support.bigfix.com/bes/release/

1 Like

Hi AlanM,

I had working powershell script tested with IEM 9.2 -with testing CLI commands as iem login and then get queries like get roles,get sites,get fixlets.

as below:
./iem login --server=$server_ip --user=$MOlogin --password=$MOpwd | Out-Null;
if ($?) {
[xml]$properties = .\iem get properties;

While observed same is now not working with IEM 9.5
Is there any special consideration for powershell command when moving to IEM 9.5

Thanks.

What exactly is the problem of “not working”?

It may be related to the fact the IEM CLI of 9.5 returns value in UTF-16 as in following thread:

try to run the tool with system account once:

PsExec.exe -s “C:\Program Files (x86)\BigFix Enterprise\BES Server\IEM CLI\iem.exe” login --server= --user= --password=

More than UTF format its with the CLI command fetch in powershell ps1 file pointing to IEM 9.5.
Below is script while it returns values in IEM 9.2 not returning or logging for IEM 9.5

UTF is not just an format, it is an encoding. When a string is treated in wrong encoding, the string is not interpreted as it really is.
I do not know how you handle errors in your Powershell script, but I think casting to xml results error with 9.5 because when output from iem is treated as ANSI, it does not form valid xml.