Sponsored Content
Operating Systems Solaris Anyone know how to get Serial number with 1 command? Post 302198881 by michaelshon on Saturday 24th of May 2008 11:33:07 PM
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..
 

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

9. 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
LDATTACH(8)						     Linux Programmer's Manual						       LDATTACH(8)

NAME
ldattach - attach a line discipline to a serial line SYNOPSIS
ldattach [-dhV78neo12] [-s speed] ldisc device DESCRIPTION
The ldattach daemon opens the specified device file (which should refer to a serial device) and attaches the line discipline ldisc to it for processing of the sent and/or received data. It then goes into the background keeping the device open so that the line discipline stays loaded. The line discipline ldisc may be specified either by name or by number. In order to detach the line discipline, kill(1) the ldattach process. With no arguments, ldattach prints usage information. LINE DISCIPLINES
Depending on the kernel release, the following line disciplines are supported: TTY(0) The default line discipline, providing transparent operation (raw mode) as well as the habitual terminal line editing capabilities (cooked mode). SLIP(1) Serial Line IP (SLIP) protocol processor for transmitting TCP/IP packets over serial lines. MOUSE(2) Device driver for RS232 connected pointing devices (serial mice). PPP(3) Point to Point Protocol (PPP) processor for transmitting network packets over serial lines. STRIP(4) AX25(5) X25(6) Line driver for transmitting X.25 packets over asynchronous serial lines. 6PACK(7) R3964(9) Driver for Simatic R3964 module. IRDA(11) Linux IrDa (infrared data transmission) driver - see http://irda.sourceforge.net/ HDLC(13) Synchronous HDLC driver. SYNC_PPP(14) Synchronous PPP driver. HCI(15) Bluetooth HCI UART driver. GIGASET_M101(16) Driver for Siemens Gigaset M101 serial DECT adapter. PPS(18) Driver for serial line Pulse Per Second (PPS) source. OPTIONS
-d | --debug Causes ldattach to stay in the foreground so that it can be interrupted or debugged, and to print verbose messages about its progress to the standard error output. -h | --help Prints a usage message and exits. -V | --version Prints the program version. -s value | --speed value Set the speed of the serial line to the specified value. -7 | --sevenbits Sets the character size of the serial line to 7 bits. -8 | --eightbits Sets the character size of the serial line to 8 bits. -n | --noparity Sets the parity of the serial line to none. -e | --evenparity Sets the parity of the serial line to even. -o | --oddparity Sets the parity of the serial line to odd. -1 | --onestopbit Sets the number of stop bits of the serial line to one. -2 | --twostopbits Sets the number of stop bits of the serial line to two. SEE ALSO
inputattach(1), ttys(4) AUTHOR
Tilman Schmidt (tilman@imap.cc) AVAILABILITY
The ldattach command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. Linux 2.6 14 January 2008 LDATTACH(8)
All times are GMT -4. The time now is 08:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy