Visit Our UNIX and Linux User Community


CLI for serial number or tag for BIOS


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat CLI for serial number or tag for BIOS
# 1  
Old 08-18-2010
CLI for serial number or tag for BIOS

what file or command can be used to get information that can represent unique ID for BIOS installed, it could be serial number or some tag.

I used "/usr/sbin/dmidecode | egrep -i 'BIOS Information' -A 20" command, it shows some information about BIOS but not some information that can be used as ID.

I tried using command "vpddecode" but it does not give required output on linux boxes:

# vpddecode
# vpddecode 2.9
# No VPD structure found, sorry.

Last edited by epriya2003; 08-18-2010 at 11:41 PM..
# 2  
Old 09-16-2010
Hi epriya2003,

If you are using solaris x86, you could try the following:

# ipmitool fru | grep “Product Serial”

I hope this is of help.
# 3  
Old 09-16-2010
PC's don't have reliable, consistent unique ID's. Stick among one model of one brand of PC and they might if you're lucky. Intel tried to introduce this with CPU unique IDs and the public was so spooked they took it back out. You could look at the mac addresses of installed network cards, though these will of course change if the network cards are replaced... You could also get the UUID of the root partition, and things like that.

Last edited by Corona688; 09-16-2010 at 06:16 PM..
# 4  
Old 09-16-2010
dmidecode -s system-serial-number

That's the right way.

dmidecode -s chassis-serial-number

that might work, but in a blade situation, that should return the serial number of the enclosure and not the blade.

Also, you can use hostid if it's there, but on Red Hat, dmidecode should work ok... fallback to hostid.... or maybe hostid should be the main thing. I just like serial numbers, but they are not always present for all machines.
# 5  
Old 09-17-2010
As a quick note, don't blindly trust dmidecode. Information in the DMI table is usually filled by the manufacturer with correct values and although it's a useful tool, it's not always 100% reliable.

Previous Thread | Next Thread
Test Your Knowledge in Computers #652
Difficulty: Easy
Puffy is the mascot of Linux Mint.
True or False?

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

count number of lines between two tag

Hi I have a big xml file of having many data </Data> </Node> <Node> List <abc>3932590983 3396003964 3355713230</abc> </Data> </Node> </Data> </Node> <abc>3932590983 3396003964</abc>I want to count the lines present betweem tag starting with abc and ending with abc so o/p will be... (8 Replies)
Discussion started by: aaysa123
8 Replies

3. Solaris

BIOS Serial Number on Sun Fire V240

Hi, I want to know if there is a command available for obtaining the BIOS Serial Number on a Sun Fire V240 machine? Or is it a known issue that it cannot be obtained through any command? Thanks, Vineet (4 Replies)
Discussion started by: vineetd
4 Replies

4. Solaris

Anyone know how to get Serial number with 1 command?

Solaris8 Anyone help? (27 Replies)
Discussion started by: frustrated1
27 Replies

5. 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

6. 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

7. 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

8. 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

9. 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

Featured Tech Videos