Anyone know how to get Serial number with 1 command?


 
Thread Tools Search this Thread
Operating Systems Solaris Anyone know how to get Serial number with 1 command?
# 15  
Old 02-06-2006
Computer

try iostat -E
# 16  
Old 02-07-2006
iostat -E is great for getting the serial number of the individual drives, but sometimes (like to place a service call on a storage array) you need the serial number of the overall storage unit.

There is a need for a safe and conveniently accessible place to put this kind of information. For several reasons, having it in a file in the filesystem is less than ideal, and keeping it somewhere off of the system has even more drawbacks.

This is not to say that these commonly-used methods for tracking this information are not workable or useful, but sneep has some unique characteristics which make it especially suitable for this kind of task.

Last edited by michaelshon; 05-25-2008 at 12:44 AM.. Reason: link sneep to download site
# 17  
Old 04-26-2006
Tools

Something has to keep that information and since everything can be changed out, i.e. motherboard, chips, etc., the serial number either has to be entered in manually or put on the chassis. Guess which one? That serial number is like anything you can purchase in a store, a tracking number to show where and when it was manufactured so they can correlate issues with the manufacturing process, i.e. a bunch of bad chips, drives, etc.

If you use snmp to monitor the server, you can also use one of those fields to enter the SN on. And to better the reading process, keep that packing slip when you get the server because the number and the original part list is on it. Write the name of the server on that piece of paper, for backup, along with entering it in your asset db.
# 18  
Old 05-25-2008
Quote:
Originally Posted by kduffin
prtdiag does not show you the serial number that is on the back of the system.

Keith
This was true in 2003 when it was posted.
In 2008, quite a few of the newer Sun machines do report the chassis serial number in the output of prtdiag -v ; generally at the end.

This is one of the places that sneep looks for the serial.

Quote:
Originally Posted by rhfrommn
The serial number you see in the OBP when it boots is *not* the same as the system serial number on the Sun sticker on the back of the machine.

I believe that it is the serial number of the prom chip, but I'm not sure of that. But in any case, if you need the system serial number itself you can't get it from the command line.
The serial that you see in the OBP banner is just the hostid in decimal . It is (usually) related to the ethernet MAC address.


On some Sun platforms, it is possible to get the serial from the command line, but there are several different ways to do it.
The simplest way is to let sneep hunt it down for you .
If your machine doesn't know its serial number, you can tell sneep what it is, and sneep will keep track of it for you after that.

It will also track other useful information like rack location, contract number, or whatever you want.
See the sneep download page for more information.

Last edited by DukeNuke2; 05-25-2008 at 03:26 AM..
# 19  
Old 05-25-2008
Quote:
Originally Posted by weftnet.com
Note to early reply************

you Must do an "init 0" before pressing the Key sequence "STOP-A"

If you do not bring it to a single user mode you will croupt you file systems


a BIG MUST!!!!!


Jonathan
... and why would you do init 0 before pressing stop-A? You either shut the machine graciously with init 0, or you halt it with stop-A.
... and why do have keyboards attached to servers?

The serial that pops up in the banner is not the serial number of the server
# 20  
Old 10-23-2008
MySQL sun serial number from solaris

it is now possibel with solaris 10:

#ipmitool fru

and in the output check the serial for the chassis type:

FRU Device Description : mb.fru (ID 4)
Chassis Type : Rack Mount Chassis
# 21  
Old 10-23-2008
Quote:
Originally Posted by lidram
it is now possibel with solaris 10:

#ipmitool fru

and in the output check the serial for the chassis type:

FRU Device Description : mb.fru (ID 4)
Chassis Type : Rack Mount Chassis
But, I think that IPMI is Intel only. This won't work with Sparcs. But I could be wrong... do the new Sun4v Sparcs support IPMI?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help about bind serial number

Hello folks. Please let me understand the bind serial number. I am confuse. 13011321 ---------- Post updated at 08:32 AM ---------- Previous update was at 07:55 AM ---------- Thanks problem is solved. (1 Reply)
Discussion started by: learnbash
1 Replies

2. Shell Programming and Scripting

How do I use sed to return only the serial number here?

I'd appreciate the help and explaining "which each switch/command does. Thanks in advance. 1742@3min# ./fmtopo|grep serial hc://:product-id=SUNW,Sun-Blade-2500:server-id=c3admin:serial=130B58E3146/motherboard=0/cpu=0 (2 Replies)
Discussion started by: LittleLebowski
2 Replies

3. Solaris

Finding server serial number

Hi All, I wnat to know how to find out the Server serial number in command prompt? I am using sneep command but it throughing unknown. Thanks and Regards, (8 Replies)
Discussion started by: lbreddy
8 Replies

4. Linux

Device serial number

Hey! I'm trying to figure out a sollution for a problem I have at my company with an Iomega MiniMax 500 GB USB disk. If i run cat /proc/bus/usb/devices I get this information: T: Bus=01 Lev=02 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00... (2 Replies)
Discussion started by: noratx
2 Replies

5. Solaris

Serial number

Hi Solarizer ;) I have face the difficulties of gathering information about the serial number of sun machine. i think its can do so easy while the machine is just one or two. But i have to administrate hundreds of sun machine. Any body knows how to gather this information by the command ? ... (4 Replies)
Discussion started by: tpx99
4 Replies

6. Solaris

Display Serial Number

Hello, I am running Solaris 9 and I need to display the serial number of my machine. How can I do this? Here is my machine info: SunOS birch 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240 Thank you, David (5 Replies)
Discussion started by: dkranes
5 Replies

7. AIX

how to find serial number

hi how to find ( server machine )serial number throught the command in AIX thanks for your replay (3 Replies)
Discussion started by: chomca
3 Replies

8. Shell Programming and Scripting

Tape Serial Number

Hello Experts, I've got a shell script that makes the backup of the files that i want. I also have this script showing the amount of files backed up and in witch folders they are. It's only missing one thing. I got all the information beeing stored in a text file and all i've got to do is to... (6 Replies)
Discussion started by: jorge.ferreira
6 Replies

9. UNIX for Advanced & Expert Users

serial number for E3500

just wanted to know the serial number of my machine E3500 with Solaris 8 installed.Does any one who what's the command that i can use when the OS is running?( not with the Banner Command!) (3 Replies)
Discussion started by: i2admin
3 Replies
Login or Register to Ask a Question