General Unix Questions !!


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users General Unix Questions !!
# 1  
Old 08-17-2004
CPU & Memory General Unix Questions !!

1. How do we know what is my machine name and what is its IP address? (in Solaris)
2. If i want to know the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris) then what command i have to look.
# 2  
Old 08-17-2004
1. uname -a tells you the machine name and some other stuff. ifconfig -a tells you the nic settings including the ip address.

2. In Solaris you can do lots of things to get the hardwar info. My favorite is /usr/platform/sun4u/sbin/prtdiag -v. Other people would probably choose psrinfo or prtconf to get that info. I'm not sure what the equivalents would be for unix, but again there are several hardware related commands you can choose from I'm sure.

Man on any of those for more details about what they can do.
# 3  
Old 08-18-2004
Also if you want to find out the speed of the CPU's go into the OBP and type .speed
# 4  
Old 08-18-2004
Re: General Unix Questions !!

Quote:
Originally posted by dreams5617
2. If i want to know the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris) then what command i have to look.
On a Linux machine
Code:
more /proc/cpuinfo

will tell you CPU information. If there are two CPUs (and the machine/kernel have been configured appropriately), you'll see two sets of information - one for each CPU.

As a note, on Linux you can use ifconfig -a, but also the "ip addr" command to view ip details and addresses.

Cheers
ZB
# 5  
Old 08-20-2004
I might suggest getting a few good books...

Namely...

Solaris System administrators Guide

Advanced Solaris Sys Admin Guide

UNIX System Administrators Guide "aka The RED Book"
# 6  
Old 08-20-2004
Quote:
Originally posted by Kelam_Magnus
I might suggest getting a few good books...

Solaris System administrators Guide

Advanced Solaris Sys Admin Guide
Sorry this is off topic, but Janice's books are bad enough that I just have to add my $0.02. I personally think these are the two worst books on the subject. For instance, "how do you add a user?" She answers, essentially "Use SMC or read the useradd man page". Gee, thanks. That's really helpful. If you're going to learn that way, save yourself ~$60. and just read all the system man pages.

I would recommend Solaris Operating Environment Boot Camp as a very good, thorough and practical introduction to Solaris administration. I was on the job and needed some practical guidance on steps to take and this book was more realistic for someone like me who admins boxes from the command-line over ssh. I don't have the luxury of using SMC for all my admin tasks.

Sorry, I couldn't help it. Those Winsor books are just plain bad, IMO.


Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

UNIX.COM General Data Privacy Regulations (GDPR) Compliance - For Member Comments

Dear All, Please read version Version 0.81 28 May 2018 of our draft UNIX.COM General Data Privacy Regulations (GDPR) Compliance. If you have any data privacy questions or concerns, or would like to see us address any other data privacy topic related to your personal data at UNIX.COM,... (12 Replies)
Discussion started by: Neo
12 Replies

2. Red Hat

General questions related to patching and servers

Hi, Can you answer the following ? How to identify server is physical or virtual server ? Why often patching is done in servers ?What is the purpose of doing OS patching in servers. ? Regards, Maddy (5 Replies)
Discussion started by: Maddy123
5 Replies

3. UNIX for Dummies Questions & Answers

General Terminology related to the UNIX System

Hello, I am relatively new to the world of programming in general and to the UNIX System in particular. I have a bunch of theoretical questions related to terminology which I have come across in my coursebooks. I hope I post my question at the right place. Any help would be warmly welcome! ... (1 Reply)
Discussion started by: feliks0
1 Replies

4. UNIX for Dummies Questions & Answers

General Unix Error Logging?

Yesterday evening my server appeared to fall over. I couldn't copy (scp) files to it, and I couldn't SSH to it either. Every time I tried, it just gave me this message: Read from remote host <IP ADDRESS>: Connection reset by peer Connection to <IP ADDRESS> closed. I got in this morning, and... (4 Replies)
Discussion started by: Dave Stockdale
4 Replies

5. Solaris

Sparc or x86 - General questions

Hi all, Now Sun provides a large range of x86 servers and Solaris is running fine on both x86/sparc. For new projects mainly running Oracle DB on SAN, I am wondering which architecture is best for our new projets. As we won't go for high end servers (using around 4 or 8 Cpu's par host is... (6 Replies)
Discussion started by: manifesto
6 Replies

6. UNIX for Dummies Questions & Answers

Few general unix qns..URGENT!!

hey guys, I have a few general qns on unix, so I'd appreciate quick responses. 1. How do u read a file line by line and display its contents using KSH? 2. How to kill a process using only the name? 3. How to create an empty file with 1MB memory size? 4. How to append some content to an... (2 Replies)
Discussion started by: sasuke_uchiha
2 Replies

7. Shell Programming and Scripting

General UNIX Query

Hi all, I am having putty in my system.But I dont have access to any UNIX Servers.Is there any default or common UNIX Server so that anyone can access and be familiar with UNIX and Shell scripting. I want to work and practice in UNIX..Thats why I am asking this question. Kindly give me... (2 Replies)
Discussion started by: dave_nithis
2 Replies

8. UNIX for Dummies Questions & Answers

General Linux Questions

Hello :-) I am new to the world of UNIX/LINUX and I have just purchased my first Web Server. I have "root" access to the system and I have a few basic questions, they are: 1. How do you view all user names that have access to the system? 2. How do you add/delete or modify users? Anyone... (1 Reply)
Discussion started by: randy.moretz
1 Replies

9. UNIX for Dummies Questions & Answers

I have a few questions about Unix..

Hi I have just a few questions about the Unix aka NIX operating system. 1. Is it a free Operating System and if so where can I obtain it. 2. Where can I start out for a newbies guide to the OS. Thanks (1 Reply)
Discussion started by: SolidWing68
1 Replies
Login or Register to Ask a Question