cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

What's your name, little machine?

I ran into an interesting situation this morning.  I ran a couple of reports last night, a LastSynchDate, and a Client Version.  This morning I was comparing the two and stumbled on an interesting situation.  I have a machine that reports as having 5.2.1 in the Version report, and has a LastSynchDate of 12/3/2009.  Not a big deal,  but we didn't roll out 5.2.1 until after the New Year.  So I went and connected remotely to the client machine, and took a look at the SBClientLog.txt, and it's happy as can be,  had synched this morning without any issues.  So, I figured okay maybe this is one of the machines that added the 0001 to the end in the database.  Went to the admin console,  searched for the machinename with the wildcard, and the only thing that popped up was the machinename from the report, whose audit log showed a last synch of 12/3/2009.

So basically, I have a client that is reporting up to the database, but I have no idea which machine object it is related to.  My question is,  Is there a way to determine the machine ID that a client is associated with from the client remotely?  I know that if I call the user and have them do a machine recovery,  I can get the machine ID.  But I want a way to do it without bothering the user. Is there a registry entry or api that I can run that gives me the local client's machine ID?

10 Replies
Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 2 of 11

Re: What's your name, little machine?

getlocalmachinename 🙂

Highlighted

Re: What's your name, little machine?

I tried that before I posted on here, just forgot to mention it...

I used the ID Only switch, and GetmachineID switch , seperately.  I just get a return of "ResultCode = 0xdb000002; Result Description = The database has not been created or initialized yet"

Message was edited by: R3k1awyk5 on 3/25/10 8:41:38 AM GMT-06:00
Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 4 of 11

Re: What's your name, little machine?

I think it should be -command:getlocalmachinename -file:t.txt -idonly

you don't need admin creds to get the local ID, but you DO if you want to get the name. If you need that, then the command is telling you that it can't connect to the listed database name.

whats the command line you are using?

Highlighted

Re: What's your name, little machine?

sbadmcl -adminuser:xxxxxx -admipwd:xxxxxxx -command:getlocalmachinename -idonly:true

Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 6 of 11

Re: What's your name, little machine?

where did you get :true from? 🙂

you also need -adminpwd, not -admipwd. that won't work.

and finally, you don't need admin account details if you only want the id, but you DO need the -file parameter.

Highlighted

Re: What's your name, little machine?

I got ":true" because the default is false and I wanted that information,  and every other switch you use with SBADMCL needs some parameter.

Sorry about the typo on adminpwd:

Why do I have to write it to a file?  I just want it to display on my rclient session.

Regardless...

I ran  "sbadmcl -command:getlocalmachinename -idonly -file:id.txt

and got

ResultCode = 0xe0050004

ResultDescription = The wrong version of the Endpoint Encryption for PC is currently active

Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 8 of 11

Re: What's your name, little machine?

You need to use a similar version of the API to the client you are running - what are the two versions?

Highlighted

Re: What's your name, little machine?

When I run the command I get:

Executable version : 5.1.6.0

DLL version           : 5.1.6.1

The client on this machine is 5.2.1

Message was edited by: R3k1awyk5 on 3/25/10 12:59:05 PM GMT-06:00
Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 10 of 11

Re: What's your name, little machine?

you are a version apart - you need to use 5.2 apis on a 5.2 client.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community