Show operating system, current user & network

Thread Tools Search this Thread
Operating Systems OS X (Apple) Show operating system, current user & network
# 1  
Old 09-26-2008
Show operating system, current user & network

I have found an excellent OS X pref pane that allows you to output log files or terminal commands/scripts onto the desktop in the background.

What I want to do is create a script that outputs the following...

- Mac OS X Version and Build (As shown in the about this mac)
- Current username
- Current network ports and their associated IP addresses.
- Current machine or hostname
- Attached Volumes

So an example output would be

Mac OS X 10.5.5 Build 9F33
computer.local <or>
0: GUID_partition_scheme *111.8 Gi disk0
1: EFI 200.0 Mi disk0s1
2: Apple_HFS Macintosh HD 88.9 Gi disk0s2
3: Microsoft Basic Data WINDOWS 22.6 Gi disk0s3

Could someone help or point me at the right commands and how to output it.

I know diskutil will show me the volumes etc but the rest I am unsure of.

Thanks in advance
# 2  
Old 09-26-2008
so far I am thinking I need to run these commands....

networksetup -listallnetworkservices
diskutil list
softwareupdate -l

But I want to output them all on screen at once, do i need to pipe? them? also is there any way of either condensing the ifconfig output to just show device and ip or is there another command?
# 3  
Old 10-02-2008
You might want to consider using just
instead of
diskutil list

df is a lot faster

Edit: Also, id producea a lot more output than you're looking for, whoami seem to fit the bill better.

You definately do not want to pipe these commands together, piping means sending the output of a command to another which would not be what you want.

What is the pref pane you're talking about?
Link to it and maybe I can take a stab at it.

Last edited by dlundh; 10-02-2008 at 10:14 AM..
# 4  
Old 10-07-2008
What version of OS X and would this script be ran on the client OS or a server OS?

This can be done via ARD admin of course.
# 5  
Old 10-14-2008

looks like he's talking about "geektool" pref pane.

various geektool related tutorials on lifehacker maybe of help.
# 6  
Old 11-27-2008
yes thats right many thanks for your replies.
# 7  
Old 01-11-2009
you also may want to look into the system_profiler command
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Pick Operating System

Anyone know anything about "Advanced Plus Operating Environment". Preferably release 10 Revision 522Gcd probably dated 2003. (4 Replies)
Discussion started by: jgt
4 Replies

2. UNIX for Advanced & Expert Users

What's my Operating System

Can we know the operating given the IP address or DNS of the host. All I have is file://myserver/myapp (4 Replies)
Discussion started by: mohtashims
4 Replies

3. UNIX for Advanced & Expert Users

Best Operating System

Hello All, I want to install Linux on my machine, so please tell me one thing which is the best to install- 1.)Red Hat 2.)Cent OS 3.)Red Hat 4.)Ubuntu 5.)Fedora except that if there is any please tell me. (1 Reply)
Discussion started by: parthmittal2007
1 Replies

4. UNIX for Advanced & Expert Users

Show all network info

Is there a command that display all network info. I'm looking for ip address, subnet mask, gateway, and dns. If there isn't a single command could someone please write me a shellscript that can do this? (8 Replies)
Discussion started by: cokedude
8 Replies

5. UNIX for Advanced & Expert Users

Network Shell Script & Blade Logic & Network Security

I am going to take up a position in Data & Network Security. I would need to write network shell scripts doing the following task: Going to around 2000 servers and findout which groups has access to each servers and which ids are there in each group that has access. I need to implement... (1 Reply)
Discussion started by: pinnacle
1 Replies

6. UNIX for Dummies Questions & Answers

Operating System

Which is much more powerful as an operating system: 1. Windows 2000 2. Windows 98 3. Windows XP 4. Windows ME 5. Unix 6. Linux and why is it much more powerful than the other operating systems that i have mentioned. thanks for your info... (1 Reply)
Discussion started by: alecks1975
1 Replies

7. UNIX for Dummies Questions & Answers

HP-UX system & Network Administration II.PDF

Dear all, I plan to take HP-UX cert. EXAM. But, I cannot find hp-ux system & network administration II.pdf file Do you know where can I download?? Do you have? can you send to me? Thank you! (2 Replies)
Discussion started by: hkpcman
2 Replies

8. UNIX for Dummies Questions & Answers

UNIX Operating System

Hello Everyone, I'm new to this forum and Unix. I have a couple of questions and please, excuse my ignorance. I have a spare machine which is now running MS Windows 98 and I would like to format the disk and install the Unix operating system along with Oracle 8i and SQL Server. My... (13 Replies)
Discussion started by: IronBear
13 Replies

9. UNIX for Advanced & Expert Users

Is Unix a Network operating system for Macintosh computers

I am in the process of reading up on and learning about linux,and as i read, i am seeing that it was built off of the unix system platform,and i also believe that it is used in the mac computer field,i would like to know if this is true, and if i should learn about the macintosh computer... (2 Replies)
Discussion started by: Bill1263
2 Replies
Login or Register to Ask a Question

Featured Tech Videos