Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2013-11-22T23:28:15Z by BrianPGreen
jjoseph32191
jjoseph32191
2 Posts
ACCEPTED ANSWER

Pinned topic User property for non-Windows system

‏2013-09-12T18:08:44Z |

Hello,

    I have a question about a user property that we are trying to get some data returned. The property in question is from the "IBM Endpoint Manager Inspector Reference" guide here http://support.bigfix.com/inspectors/User%20Objects_Lin.html The syntax for the property we are using is "names of users" which is supposed to work for all platforms as noted in the above guide and in the below extract from the guide.

 

Declaration Return type Description Platforms (?)
name of <user> <string>

Plural: names
Returns the name of all the specified user, whether logged in or not. Win:8.1, Lin, Sol, HPUX, AIX, Mac, Ubu:8.1
tty of <user> <string>

Plural: ttys
Returns the tty of the user. Lin, Sol, HPUX, AIX, Ubu:8.1

 

It works fine for Windows systems, but for the other platforms it returns "none" where it should list all of the users accounts on the target system. Could this be some sort of bug or is there some sublet extra bit of sytax needed?

Thanks,

John

  • BrianPGreen
    BrianPGreen
    30 Posts
    ACCEPTED ANSWER

    Re: User property for non-Windows system

    ‏2013-11-22T08:17:29Z  in response to jjoseph32191

    I'm not sure what the behavior of that inspector is.  I'll look into it tomorrow.  (Sorry for the super late response).

  • MattPeterson
    MattPeterson
    17 Posts
    ACCEPTED ANSWER

    Re: User property for non-Windows system

    ‏2013-11-22T21:31:16Z  in response to jjoseph32191

    John,

    I've had inconsistant results using names of users in UNIX (expecally when looking for AD accounts).  I found that if I run the query on a system, I could see one result, I could run it on the same system with no changes a few minutes later and get another result.  I found it more reliable simply reading the /etc/passwd file...

  • BrianPGreen
    BrianPGreen
    30 Posts
    ACCEPTED ANSWER

    Re: User property for non-Windows system

    ‏2013-11-22T23:28:15Z  in response to jjoseph32191

    It looks like if you use 'name of users' on linux, it basically does this: https://gist.github.com/briangreenery/7608410

     

    I'm not sure why it's that way.  I filed a bug to investigate and maybe change this inspector.