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?
# 8  
Old 02-20-2004
prtdiag does not show you the serial number that is on the back of the system. As for the other, I don't see a corelation there either.

Cheers,

Keith
# 9  
Old 02-20-2004
If you can get to the system console you can drop it down into the >OK prompt( by pressing the STOP-A key sequence)

then once at the prompt type "banner" to show the system banner and the serial # is posted there for you. but if you can not get to the console, they I am not aware of a shell commend that will allow you to display the serial #.

I tried the prtdiag -v and it just shows the hardware that is installed on the system.. Processors, Memory, Power supplies, etc..

I use a SunFire 280R, V880, and ultra5, and they all display the serial # in the OBP at startup.


In responce to davidg's responce. EEPROM can only set variables and diagnostice switches from a running shell, it can not run OBP command such as "banner", or "boot cdrom -s".


Jonathan

Last edited by weftnet.com; 02-20-2004 at 01:45 PM..
# 10  
Old 02-20-2004
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
# 11  
Old 02-23-2004
I think a simple reboot shld work .. when the system first comes up just after the banner and sun logo u have the serial number ..

I think so


I dunno if hostid works ...
# 12  
Old 02-23-2004
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.
# 13  
Old 02-03-2006
Quote:
Originally Posted by frustrated1
I went to site and retrieve the serial number visually, but would still be interested if anyone knows how to obtain the serial number of a system from the command line for future knowledge...
Now that you've gone to the site to read the physical serial number,
you might get some benefit from the "sneep" tool from Sun.

Sun Sneep - Serial Number in EEPROM

Sneep provides a persistent, software-accessible Chassis Serial Number (CSN) for virtually all Sun Solaris hardware platforms. Sneep uses the system EEPROM for storage of the Chassis Serial Number and any other important user-defined data such as asset, contract, or location information. The presence of the software-accessible serial number and other service-related information can significantly simplify activities related to system service and asset management.

Sneep can keep the serial and other asset information right in the eeprom
where it's handy, protected, and stays associated with the machine,
and it gives you easy access to it in software.

Whenever possible, sneep gets the serial from the machine from any of several different data sources and commands. If sneep cannot find it, it depends on you to supply it after your trip to the data center.

BTW-
some of the newer Sun machines do provide software access to the true serial number,
like the SF3800-6800, the SF12K/SF15K, and newer . Most of those keep the serial
in the System Controller or the ALOM processor, and getting it still takes some work,
but at least it is possible.
Sneep is definitely the easiest thing to use.
Once you have the serial number, sneep will keep it safe and handy.

Last edited by michaelshon; 05-25-2008 at 01:08 AM.. Reason: Add fact that sneep can now get serial automatically on many machines
# 14  
Old 02-03-2006
sneep sounds like an interesting option. Here is another thread on this subject which mentions the serialid program.
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