Posted on 12-12-2011 06:57 AM
I have a computer that's not updating inventory. When I run through Remote I get this log:
Sending Wake On LAN command...
Opening SSH Connection to 11.62.24.112...
Authenticating...
Successfully authenticated.
Verifying Computer's Identity...
The MAC Address has been verified.
Checking Operating System Version...
Running Mac OS X 10.6.5 (10H574)
Verifying /usr/sbin/jamf...
/usr/sbin/jamf is current (8.1)
Verifying /usr/sbin/jamfvnc...
/usr/sbin/jamfvnc is current (8.1)
Verifying /Library/Preferences/com.jamfsoftware.jamf.plist...
Preparing Policy...
There is a problem with your syntax.
Error: This application must be run as root. Try the sudo command.
Type "jamf help" for more information
a4348018:~ admin$
Finished.
When I run "sudo jamf recon" through Apple Remote Desktop, I get this message:
sudo: unable to cache uid, already exists
Any ideas as to what could be causing this issue?
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com
Posted on 12-12-2011 07:04 AM
How are you running Recon via Casper Remote? Are you selecting the "Inventory" option under the Advanced tab? That's all it should take.
To run this via ARD you simply want to enter "jamf recon" and then run as "root" in the middle of the window not as the currently logged in user.
--
William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492
Posted on 12-12-2011 07:26 AM
Yes, that is how I'm running it through Remote and ARD (but running "sudo jamf recon" as root).
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com
Posted on 12-12-2011 07:33 AM
you can omit "sudo" if you're running as root. it's redundant.
Posted on 12-12-2011 07:55 AM
As Nate has already pointed out, you omit the "sudo" when running as root
On 12/12/11 9:26 AM, "Nick King" <nick.king at macys.com> wrote:
in ARD.
If running inventory in Casper Recon returns "Error: This application must
be run as root" then the first place I'd check is this computer record in
the JSS and make sure the name/password it's using to administer the
computer is correct. If needed, retype the password just to make sure.
I'm assuming other commands fail as well when run from Casper Remote.
Correct?
--
William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492
Posted on 12-12-2011 08:23 AM
Hi William,
It makes no difference to not include "sudo".
I did confirm that the correct SSH un/pw was in the JSS prior to emailing
the Casper List.
And, yes, all other commands I've tried in Casper Remote has failed.
Also troubleshooting with Casper support. Per there recommendation, ran
the QuickAdd package.
Succeeded in that, but still get same errors. last contact time was
12/1/11, last report was 12/12/11.
New casper remote log from running Update Inventory:
Sending Wake On LAN command...
Opening SSH Connection to 11.62.24.112...
Authenticating...
Successfully authenticated.
Verifying Computer's Identity...
The MAC Address has been verified.
Checking Operating System Version...
Running Mac OS X 10.6.5 (10H574)
Verifying /usr/sbin/jamf...
/usr/bin/jamf is (8.0) not the current version (8.1).
Verifying /usr/sbin/jamfvnc...
/usr/sbin/jamfvnc is current (8.1)
Verifying /Library/Preferences/com.jamfsoftware.jamf.plist...
Preparing Policy...
There is a problem with your syntax.
Error: This application must be run as root. Try the sudo command.
Type "jamf help" for more information
a4348018:~ admin$
Finished.
Not sure why it's saying that the binary is v8, when the QuickAdd package is v8.1.
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com
Posted on 12-12-2011 08:30 AM
Just to clarify, I mean to say when I run "jamf recon" as root in ARD I get the same results as before. Not that it makes no difference to include "sudo" or not.
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com
Posted on 12-12-2011 08:34 AM
On 12/12/11 10:30 AM, "Nick King" <nick.king at macys.com> wrote: Just to clarify, I mean to say when I run "jamf recon" as root in ARD I get the same results as before. Not that it makes no difference to include "sudo" or not.
So, two different systems using the same name/password to connect to a
system and failing?
Have you reset the password on the machine and is the account and admin
account? Can you locally run "sudo jamf recon" using that account?
--
William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492
Posted on 12-12-2011 08:49 AM
Nick,
--missing content--
/usr/bin/jamf is (8.0) not the current version (8.1).
I wonder if this is your problem! You may want to update the client machin
e. There may be some code in version 8.0 which isn't compatible with 8.1 a
nd hence why it's throwing out a syntax error.
Sean
Posted on 12-12-2011 09:11 AM
Curious, right?
This only appeared after I ran the QuickAdd package which is v8.1. We've never had 8.0 in our environment.
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com
Posted on 12-12-2011 09:12 AM
1 system.
yes, looks like it can run locally.
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com
Posted on 12-12-2011 09:23 AM
On 12/12/11 11:12 AM, "Nick King" <nick.king at macys.com> wrote: 1 system. yes, looks like it can run locally.
Sorry, poor wording on my part. Let me rephrase:
So, two different systems (Casper and ARD) using the same name/password to
connect to a
computer and they're both failing?
--
William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492
Posted on 12-12-2011 09:31 AM
oh, yes!
I'm beginning to wonder if the the issue is on the OS and not Casper.
When I ssh in to the machine I get:
a4348149:~ b000691$ ssh root at 11.62.24.112
Password:
Last login: Mon Dec 12 12:19:39 2011 from a4348149.federated.fds
For troubleshooting assistance, just type 'applejack' at the prompt
a4348018:~ admin2#
It's says admin2!?
Then I do this:
a4348018:~ admin2# su root
sh-3.2# su admin
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Permission denied
bash-3.2$
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com
Posted on 12-12-2011 09:40 AM
Nick,
Run this:
dscl localhost read /Local/Default/Groups/admin GroupMembership
It will list the admins on the machine.
Maybe you should just rebuild the system disk from your default build if you are concerned that it isn't what it should be. It is the only way to be sure it has the correct configuration.
Sean
Posted on 12-12-2011 09:47 AM
Ouput was "GroupMembership: root admin admin2".
Not sure why that is, but I agree. I think we will just rebuild this
system.
Thanks for you help, guys!
Thank You,
Nick King | Analyst II | Macy*s System & Technology
Apple Certified Support Professional ?
151 West 34th Street, 17th Floor | New York, NY 10001
(: 212.494.1884 (Service Desk)
(: 212.494.2253 (Direct Line)
*: nick.king at macys.com