From george at galis.org Mon Dec 3 18:25:00 2007 From: george at galis.org (George Georgalis) Date: Mon Dec 3 18:24:04 2007 Subject: [macosx-unix] mac serial number... Message-ID: <20071203232500.GB8353@run.duo> Hi all! Is there a way to determine the serial number for a Jaguar/panther mac from the command line? I'd like to write a script to mail mac addresses, host names and serial numbers from the MacBooks at our office. I guess finding the full names and login names of system users would be good to collect too. // George -- George Georgalis, information system scientist < From pete at nomadlogic.org Mon Dec 3 18:40:09 2007 From: pete at nomadlogic.org (Pete Wright) Date: Mon Dec 3 18:40:22 2007 Subject: [macosx-unix] mac serial number... In-Reply-To: <20071203232500.GB8353@run.duo> References: <20071203232500.GB8353@run.duo> Message-ID: <20071203234009.GD4071@sunset.nomadlogic.org> On Mon, Dec 03, 2007 at 06:25:00PM -0500, George Georgalis wrote: > Hi all! > > Is there a way to determine the serial number for > a Jaguar/panther mac from the command line? I'd > like to write a script to mail mac addresses, host > names and serial numbers from the MacBooks at our > office. I guess finding the full names and login > names of system users would be good to collect too. > i believe you can use ioreg on an OSX host to get the Serial Number/UUID regarding login's etc. not too sure on a foolproof method for that but would love to hear how others are addressing this... -p -- ~~oO00Oo~~ Peter Wright pete@nomadlogic.org www.nomadlogic.org/~pete 310.869.9459 From bschonhorst at vcsnyc.org Mon Dec 3 19:18:37 2007 From: bschonhorst at vcsnyc.org (Brad Schonhorst) Date: Mon Dec 3 19:19:23 2007 Subject: [macosx-unix] mac serial number... In-Reply-To: <20071203232500.GB8353@run.duo> References: <20071203232500.GB8353@run.duo> Message-ID: You can capture logins by scripting a LoginHook. I set this up for auditing purposes and its very straight forward. Just google LoginHook. Email me off list for more details or for a copy of the little shell script I had used for this. - Brad On Dec 3, 2007, at 6:25 PM, George Georgalis wrote: > Hi all! > > Is there a way to determine the serial number for > a Jaguar/panther mac from the command line? I'd > like to write a script to mail mac addresses, host > names and serial numbers from the MacBooks at our > office. I guess finding the full names and login > names of system users would be good to collect too. > > // George > > > -- > George Georgalis, information system scientist < > _______________________________________________ > macosx-unix mailing list > macosx-unix@lesmuug.org > http://beth.lesmuug.org/mailman/listinfo/macosx-unix From bschonhorst at vcsnyc.org Mon Dec 3 19:25:14 2007 From: bschonhorst at vcsnyc.org (Brad Schonhorst) Date: Mon Dec 3 19:26:00 2007 Subject: [macosx-unix] mac serial number... In-Reply-To: <20071203232500.GB8353@run.duo> References: <20071203232500.GB8353@run.duo> Message-ID: <3AA71493-E4D3-4998-A72C-B278E6AA0A9A@vcsnyc.org> On Dec 3, 2007, at 6:25 PM, George Georgalis wrote: > Hi all! > > Is there a way to determine the serial number for > a Jaguar/panther mac from the command line? I'd > like to write a script to mail mac addresses, host > names and serial numbers from the MacBooks at our > office. I guess finding the full names and login > names of system users would be good to collect too. > > // George > > > -- > George Georgalis, information system scientist < > _______________________________________________ > macosx-unix mailing list > macosx-unix@lesmuug.org > http://beth.lesmuug.org/mailman/listinfo/macosx-unix Sorry for the previous top-post, I'm emailing from my phone ( which is apparently akin to drunk dialing) You may also want to look at the command line version of apple system profiler. You can get all sorts of goodies in addition to serial numbers. IIRC. /usr/sbin/AppleSystemProfiler Brad From ike at lesmuug.org Mon Dec 3 20:02:23 2007 From: ike at lesmuug.org (Isaac Levy) Date: Mon Dec 3 20:02:45 2007 Subject: [macosx-unix] mac serial number... In-Reply-To: <3AA71493-E4D3-4998-A72C-B278E6AA0A9A@vcsnyc.org> References: <20071203232500.GB8353@run.duo> <3AA71493-E4D3-4998-A72C-B278E6AA0A9A@vcsnyc.org> Message-ID: Word All, On Dec 3, 2007, at 7:25 PM, Brad Schonhorst wrote: > Sorry for the previous top-post, I'm emailing from my phone ( which > is apparently akin to drunk dialing) > > You may also want to look at the command line version of apple > system profiler. You can get all sorts of goodies in addition to > serial numbers. > > IIRC. /usr/sbin/AppleSystemProfiler > > Brad Actually, I've not seen that before- I believe the intended utility is: /usr/sbin/system_profiler Rocket- .ike From ber at easthouston.org Mon Dec 3 20:07:40 2007 From: ber at easthouston.org (Brian Redman) Date: Mon Dec 3 20:07:44 2007 Subject: [macosx-unix] mac serial number... In-Reply-To: <20071203232500.GB8353@run.duo> References: <20071203232500.GB8353@run.duo> Message-ID: <269ADE7C-1E58-47F4-B971-0E948DAF1FB2@easthouston.org> On Dec 3, 2007, at 6:25 PM, George Georgalis wrote: > Hi all! > > Is there a way to determine the serial number for > a Jaguar/panther mac from the command line? I'd > like to write a script to mail mac addresses, host > names and serial numbers from the MacBooks at our > office. I guess finding the full names and login > names of system users would be good to collect too. If we can assume the system user is uid 501 then: $ nicl . -search /users 0 1 uid 501 will tell you the "name" and "realname" on 10.3 Don't know about 10.2. ber From ike at lesmuug.org Mon Dec 3 20:17:52 2007 From: ike at lesmuug.org (Isaac Levy) Date: Mon Dec 3 20:18:14 2007 Subject: [macosx-unix] mac serial number... In-Reply-To: <269ADE7C-1E58-47F4-B971-0E948DAF1FB2@easthouston.org> References: <20071203232500.GB8353@run.duo> <269ADE7C-1E58-47F4-B971-0E948DAF1FB2@easthouston.org> Message-ID: On Dec 3, 2007, at 8:07 PM, Brian Redman wrote: > On Dec 3, 2007, at 6:25 PM, George Georgalis wrote: > >> Hi all! >> >> Is there a way to determine the serial number for >> a Jaguar/panther mac from the command line? I'd >> like to write a script to mail mac addresses, host >> names and serial numbers from the MacBooks at our >> office. I guess finding the full names and login >> names of system users would be good to collect too. > > If we can assume the system user is uid 501 then: > > $ nicl . -search /users 0 1 uid 501 > > will tell you the "name" and "realname" on 10.3 Don't know about > 10.2. > > ber Sidenote for Leapord, there seems to be no more nicl: nicl . -search /users 0 1 uid 501 -bash: nicl: command not found plumb:~ ike$ whereis nicl plumb:~ ike$ However, there IS a very comprehensive man page: plumb:~ ike$ man nicl -- nicl(1) BSD General Commands Manual nicl(1) NAME nicl -- NetInfo command line utility SYNOPSIS nicl [options] datasource [command] options: -c create new datasource -ro read-only -p prompt for password -u user authenticate as user -P password authentication password -raw datasource is a NetInfo directory -t datasource is host/tag -v verbose output -q quiet - no interactive prompt -i Ask for confirmation before deleting directories -x500 X.500 names commands: -read dir [key ...] -list dir [key] -search dir scopemin scopemax key val [key val] ... Rocket- .ike From ber at easthouston.org Mon Dec 3 20:29:46 2007 From: ber at easthouston.org (Brian Redman) Date: Mon Dec 3 20:29:50 2007 Subject: [macosx-unix] mac serial number... In-Reply-To: References: <20071203232500.GB8353@run.duo> <269ADE7C-1E58-47F4-B971-0E948DAF1FB2@easthouston.org> Message-ID: <41F0C1E8-4AA5-474E-9EEB-7D6EF3C05650@easthouston.org> On Dec 3, 2007, at 8:17 PM, Isaac Levy wrote: > Sidenote for Leapord, there seems to be no more nicl: > > nicl . -search /users 0 1 uid 501 > -bash: nicl: command not found > plumb:~ ike$ whereis nicl > plumb:~ ike$ > > However, there IS a very comprehensive man page: Thank goodness the nicl man lives on. There is dscl(1) for directory service in 10.5 ber From george at galis.org Tue Dec 4 16:37:27 2007 From: george at galis.org (George Georgalis) Date: Tue Dec 4 16:36:30 2007 Subject: [macosx-unix] leopard filevault and Extended case sensitive Message-ID: <20071204213727.GE8353@run.duo> Hi, thanks all for the serial number, command line access techniques.... Today, before I can try that, I have another problem. When doing a leopard media "erase and install", we've chosen to format the disk as "Mac OS Extended (Case-sensitive, Journaled) vs the default "Mac OS Extended (Journaled) for compatibility with software we want to run. We can set the FileVault master password, but when we attempt to turn it on we get: You cannot turn FileVault on because the home folder is on a volume that is not a Mac OS Extended volume. While we might be able to deal with the non case sensitive filesystem; erasing the installed software to make a new filesystem will be a substantial detour. We definitely want FileVault. Is there some way to make it work on the Extended Case-sensitive filesystem? My guess is the FileVault IS compatible it just doesn't know it... If someone here has the answer, I'll feel lucky :) If not, which forum would be good to pose this question? // George -- George Georgalis, information system scientist < From george at galis.org Wed Dec 5 22:49:48 2007 From: george at galis.org (George Georgalis) Date: Wed Dec 5 22:48:52 2007 Subject: [macosx-unix] Re: mac serial number... In-Reply-To: <41F0C1E8-4AA5-474E-9EEB-7D6EF3C05650@easthouston.org> References: <20071203232500.GB8353@run.duo> <269ADE7C-1E58-47F4-B971-0E948DAF1FB2@easthouston.org> <41F0C1E8-4AA5-474E-9EEB-7D6EF3C05650@easthouston.org> Message-ID: <20071206034948.GA12659@run.duo> On Mon, Dec 03, 2007 at 08:29:46PM -0500, Brian Redman wrote: > On Dec 3, 2007, at 8:17 PM, Isaac Levy wrote: > >> Sidenote for Leapord, there seems to be no more nicl: >> >> nicl . -search /users 0 1 uid 501 >> -bash: nicl: command not found >> plumb:~ ike$ whereis nicl >> plumb:~ ike$ >> >> However, there IS a very comprehensive man page: > > Thank goodness the nicl man lives on. > > There is dscl(1) for directory service in 10.5 humm, I didn't even see the nicl man page... sure would be nice if dscl had a grep-able snmp output. Maybe there is an xml2snmp converter? (by snmp I mean sysctl like output) Good to know about dscl though, thanks. // George -- George Georgalis, information system scientist < From george at galis.org Wed Dec 5 22:52:49 2007 From: george at galis.org (George Georgalis) Date: Wed Dec 5 22:51:51 2007 Subject: [macosx-unix] Re: mac serial number... In-Reply-To: References: <20071203232500.GB8353@run.duo> <3AA71493-E4D3-4998-A72C-B278E6AA0A9A@vcsnyc.org> Message-ID: <20071206035249.GB12659@run.duo> On Mon, Dec 03, 2007 at 08:02:23PM -0500, Isaac Levy wrote: > Word All, > > On Dec 3, 2007, at 7:25 PM, Brad Schonhorst wrote: > >> Sorry for the previous top-post, I'm emailing from my phone ( which is >> apparently akin to drunk dialing) >> >> You may also want to look at the command line version of apple system >> profiler. You can get all sorts of goodies in addition to serial numbers. >> >> IIRC. /usr/sbin/AppleSystemProfiler >> >> Brad > > Actually, I've not seen that before- I believe the intended utility is: > > /usr/sbin/system_profiler > Thanks, that't the one I ended up using. system_profiler SPHardwareDataType | grep Serial system_profiler SPNetworkDataType | grep -E '(Type|MAC)' | grep -Ev '(DHCP|PPP|Fire| 00:1d:4f)' pretty hacky but it got me what I needed today. // George -- George Georgalis, information system scientist < From antispam at brokenhill.net Thu Dec 6 11:34:48 2007 From: antispam at brokenhill.net (KLW) Date: Thu Dec 6 11:35:01 2007 Subject: [macosx-unix] Re: mac serial number... Message-ID: > Thanks, that't the one I ended up using. > > system_profiler SPHardwareDataType | grep Serial > system_profiler SPNetworkDataType | grep -E '(Type|MAC)' | grep -Ev > '(DHCP|PPP|Fire| 00:1d:4f)' > > pretty hacky but it got me what I needed today. > > // George You say hacky like it's a bad thing :-) Kristofer From george at galis.org Thu Dec 6 23:15:59 2007 From: george at galis.org (George Georgalis) Date: Thu Dec 6 23:15:03 2007 Subject: [macosx-unix] Re: mac serial number... In-Reply-To: References: Message-ID: <20071207041559.GE12659@run.duo> On Thu, Dec 06, 2007 at 11:34:48AM -0500, KLW wrote: >> Thanks, that't the one I ended up using. >> >> system_profiler SPHardwareDataType | grep Serial >> system_profiler SPNetworkDataType | grep -E '(Type|MAC)' | grep -Ev >> '(DHCP|PPP|Fire| 00:1d:4f)' >> >> pretty hacky but it got me what I needed today. >> >> // George > >You say hacky like it's a bad thing :-) > >Kristofer well, let's just say I wouldn't trust the results without a sanity check... an xml parser would have been better and too late ;) // George -- George Georgalis, information system scientist < From compustretch at gmail.com Fri Dec 14 13:35:07 2007 From: compustretch at gmail.com (forest mars) Date: Fri Dec 14 13:35:12 2007 Subject: [macosx-unix] leopard filevault and Extended case sensitive In-Reply-To: <20071204213727.GE8353@run.duo> References: <20071204213727.GE8353@run.duo> Message-ID: Can someone/anyone please enlighten me as to where Darwin has moved /usr/ports ? This directory does not exist on my OS X.4 installation, and Googling for Darwin /usr/ports hasn't revealed the secret of what they've done with it. I would be most appreciative. Also shout outs to everyone who missed the holiday party last night, it was off. the. hook. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://beth.easthouston.org/pipermail/macosx-unix/attachments/20071214/6099fadc/attachment.html From jared at 23x.net Fri Dec 14 13:42:41 2007 From: jared at 23x.net (Jared ''Danger'' Earle) Date: Fri Dec 14 13:42:57 2007 Subject: [macosx-unix] leopard filevault and Extended case sensitive In-Reply-To: References: <20071204213727.GE8353@run.duo> Message-ID: <879815B8-3DF6-42CC-BD7B-9AA86E18E1B3@23x.net> On 14 Dec 2007, at 18:35, forest mars wrote: > Can someone/anyone please enlighten me as to where Darwin has moved / > usr/ports ? /usr/ports isn't part of the standard install. http://www.macports.org/ -- Jared Earle, Nightfall Games, jared@23x.net - http://www.23x.net "Cerebus doesn't want your money, he wants your SPORK" From george at galis.org Wed Dec 19 00:01:04 2007 From: george at galis.org (George Georgalis) Date: Wed Dec 19 00:00:07 2007 Subject: [macosx-unix] no ld.so.conf.... Message-ID: <20071219050104.GK25131@run.duo> I need "ld.so.conf functionality" on Leopard. We have a g77 (binary) package installed in unique prefix. I need up update the library path, but the ld.so.conf tools I'm familiar with don't seem available in OS X. For now I made symlinks in /usr/local/lib which is searched, but is there a way to extend the default ld path? // George -- George Georgalis, information system scientist < From bob at redivi.com Wed Dec 19 04:08:29 2007 From: bob at redivi.com (Bob Ippolito) Date: Wed Dec 19 04:08:34 2007 Subject: [macosx-unix] no ld.so.conf.... In-Reply-To: <20071219050104.GK25131@run.duo> References: <20071219050104.GK25131@run.duo> Message-ID: <6a36e7290712190108y620bbf7dy7f8a5188b710e4eb@mail.gmail.com> On 12/18/07, George Georgalis wrote: > I need "ld.so.conf functionality" on Leopard. > > We have a g77 (binary) package installed in unique > prefix. I need up update the library path, but > the ld.so.conf tools I'm familiar with don't seem > available in OS X. For now I made symlinks in > /usr/local/lib which is searched, but is there a way > to extend the default ld path? man dyld (alternatively) man install_name_tool -bob From george at galis.org Wed Dec 19 13:31:42 2007 From: george at galis.org (George Georgalis) Date: Wed Dec 19 13:30:45 2007 Subject: [macosx-unix] Re: no ld.so.conf.... In-Reply-To: <6a36e7290712190108y620bbf7dy7f8a5188b710e4eb@mail.gmail.com> References: <20071219050104.GK25131@run.duo> <6a36e7290712190108y620bbf7dy7f8a5188b710e4eb@mail.gmail.com> Message-ID: <20071219183142.GM25131@run.duo> On Wed, Dec 19, 2007 at 01:08:29AM -0800, Bob Ippolito wrote: >On 12/18/07, George Georgalis wrote: >> I need "ld.so.conf functionality" on Leopard. >> >> We have a g77 (binary) package installed in unique >> prefix. I need up update the library path, but >> the ld.so.conf tools I'm familiar with don't seem >> available in OS X. For now I made symlinks in >> /usr/local/lib which is searched, but is there a way >> to extend the default ld path? > >man dyld >(alternatively) >man install_name_tool Not as straight forward as I expected but I do see a solution on the horizon :-} if there is a good howto on the topic, please let me know. // George -- George Georgalis, information system scientist <