Xymon Mailing List Archive search

OSX 10.5 and nireport

5 messages in this thread

list Tim Rotunda · Thu, 10 Jan 2008 15:46:35 -0600 ·
Hi everyone,

Its been awhile but I am back and will be around for a long time as I am now
working with a large deployment of hobbit on Solaris.  To get back into the
swing things, I thought I would install hobbit server on my workstation.

So I am building 4.1.2p2 on OSX 10.5.1 and have gotten to the point where
the user is requested.  Turns out configure.server is still using nireport.
Has anyone fixed this in a beta or should I just go ahead and make the
changes and submit it?

Thanks and its good to be back!

Tim
This E-mail and any of its attachments may contain Time Warner
Cable proprietary information, which is privileged, confidential,
or subject to copyright belonging to Time Warner Cable. This E-mail
is intended solely for the use of the individual or entity to which
it is addressed. If you are not the intended recipient of this
E-mail, you are hereby notified that any dissemination,
distribution, copying, or action taken in relation to the contents
of and attachments to this E-mail is strictly prohibited and may be
unlawful. If you have received this E-mail in error, please notify
the sender immediately and permanently delete the original and any
copy of this E-mail and any printout.
list Henrik Størner · Sun, 13 Jan 2008 09:29:58 +0100 ·
quoted from Tim Rotunda
On Thu, Jan 10, 2008 at 03:46:35PM -0600, Tim Rotunda wrote:
So I am building 4.1.2p2 on OSX 10.5.1 and have gotten to the point where
the user is requested.  Turns out configure.server is still using nireport.
Has anyone fixed this in a beta or should I just go ahead and make the
changes and submit it?
I haven't had any reports about problems with nireport, and since I have
no OSX knowledge at all I depend on others reporting/fixing bugs.

So if you can provide a patch for me, that would be nice. But I'd also
like to know what the problem is - and if this is something that has
changed from one OSX version to the next.


Regards,
Henrik
list Tim Rotunda · Mon, 14 Jan 2008 10:35:19 -0600 ·
Hi Henrik,

The nireport command has been deprecated in Leopard so I made the following
code changes:


File: configure.server

From:

    USERDATA="`nireport / /users name home | grep $BBUSER`"

To:

    USERDATA="`ls -1 /Users | grep $BBUSER`"

Probably not the most eloquent method but functional for me.

Cheer¹s,

Tim 
quoted from Henrik Størner


On 1/13/08 2:29 AM, "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Jan 10, 2008 at 03:46:35PM -0600, Tim Rotunda wrote:
So I am building 4.1.2p2 on OSX 10.5.1 and have gotten to the point where
the user is requested.  Turns out configure.server is still using nireport.
Has anyone fixed this in a beta or should I just go ahead and make the
changes and submit it?
I haven't had any reports about problems with nireport, and since I have
no OSX knowledge at all I depend on others reporting/fixing bugs.

So if you can provide a patch for me, that would be nice. But I'd also
like to know what the problem is - and if this is something that has
changed from one OSX version to the next.


Regards,
Henrik

This E-mail and any of its attachments may contain Time Warner
Cable proprietary information, which is privileged, confidential,
or subject to copyright belonging to Time Warner Cable. This E-mail
is intended solely for the use of the individual or entity to which
it is addressed. If you are not the intended recipient of this
E-mail, you are hereby notified that any dissemination,
distribution, copying, or action taken in relation to the contents
of and attachments to this E-mail is strictly prohibited and may be
unlawful. If you have received this E-mail in error, please notify
the sender immediately and permanently delete the original and any
copy of this E-mail and any printout.
list Michael Dunne · Mon, 14 Jan 2008 19:21:53 GMT ·
Greetings,
An alternate command is:dscl . list /users | grep $BBUSERA good reference to dscl can be found here: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/dscl.1.htmlRegards,Mike
-----Original Message-----
From: "Tim Rotunda" <user-87e7571a5eb3@xymon.invalid>
Sent 1/14/2008 11:35:19 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] OSX 10.5 and nireportHi Henrik,
quoted from Tim Rotunda
The nireport command has been deprecated in Leopard so I made the following code changes:
File: configure.server
From:
    USERDATA="`nireport / /users name home | grep $BBUSER`"
To:
    USERDATA="`ls -1 /Users | grep $BBUSER`"
Probably not the most eloquent method but functional for me.

Cheer’s,
quoted from Tim Rotunda
Tim 
On 1/13/08 2:29 AM, "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid> wrote:> On Thu, Jan 10, 2008 at 03:46:35PM -0600, Tim Rotunda wrote:>> So I am building 4.1.2p2 on OSX 10.5.1 and have gotten to the point where
the user is requested.  Turns out configure.server is still using nireport.
Has anyone fixed this in a beta or should I just go ahead and make the
changes and submit it?> 
I haven't had any reports about problems with nireport, and since I have
no OSX knowledge at all I depend on others reporting/fixing bugs.

So if you can provide a patch for me, that would be nice. But I'd also
like to know what the problem is - and if this is something that has
changed from one OSX version to the next.


Regards,
Henrik


This E-mail and any of its attachments may contain Time Warner
Cable proprietary information, which is privileged, confidential,
or subject to copyright belonging to Time Warner Cable. This E-mail
is intended solely for the use of the individual or entity to which
it is addressed. If you are not the intended recipient of this
E-mail, you are hereby notified that any dissemination,
distribution, copying, or action taken in relation to the contents
of and attachments to this E-mail is strictly prohibited and may be
unlawful. If you have received this E-mail in error, please notify
the sender immediately and permanently delete the original and any
copy of this E-mail and any printout.
list Isaac Vetter · Fri, 8 Feb 2008 14:06:50 -0500 ·
Hi Guys;

No offense to Tim for his suggestion on making Hobbit work with Leopard.

I think that a superior method of testing for the presence of a user
and finding that user's home directory is this:

80c80
< 		USERDATA="`nireport / /users name home | grep $BBUSER`"
---
		USERDATA="`dscl . -list /Users  | grep $BBUSER`"
83c83
< 			echo "Found NetInfo entry for user: $USERDATA"
---
			echo "Found Directory entry for user: $USERDATA"
85c85
< 			echo "FAILURE: The user $BBUSER does not exist. Create user and try again."
---
			echo "FAILURE: The user $BBUSER does not exist locally. Create user and try again."
89c89
< 		HOMEDIR="`echo $USERDATA | awk '{print $2}'`"
---
		HOMEDIR="`dscl . -read /Users/$BBUSER | grep HomeDirectory | awk '{print $2}'`"
The dscl command actually queries OSX's internal directory store
(OpenDirectory). The above code will only find local users, but I
think that this is probably a best practice for Hobbit. Additionally,
the above should work for 10.4 (Tiger) and 10.5 (Leopard) and onwards.

Isaac Vetter

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/dscl.1.html
quoted from Michael Dunne

The nireport command has been deprecated in Leopard so I made the following
code changes:

File: configure.server

From:
 USERDATA="`nireport / /users name home | grep $BBUSER`"

To:
 USERDATA="`ls -1 /Users | grep $BBUSER`"
Probably not the most eloquent method but functional for me.
On 1/13/08 2:29 AM, "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Jan 10, 2008 at 03:46:35PM -0600, Tim Rotunda wrote:
So I am building 4.1.2p2 on OSX 10.5.1 and have gotten to the point where
the user is requested. Turns out configure.server is still using nireport.
Has anyone fixed this in a beta or should I just go ahead and make the
changes and submit it?
I haven't had any reports about problems with nireport, and since I have
no OSX knowledge at all I depend on others reporting/fixing bugs.

So if you can provide a patch for me, that would be nice. But I'd also
like to know what the problem is - and if this is something that has
changed from one OSX version to the next.