Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Can not find Machine SN

Solaris


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-19-2017   -   Original Discussion by ahmedamer12
ahmedamer12 ahmedamer12 is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 4 April 2017, 2:28 AM EDT
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Unix or Linux Question Can not find Machine SN

I have some VMs where I could identify that they are hosted on SPARC T4-2 .
I am trying to figure out what is the SN of the box/es from gathered explorer logs but the output of the executed commands gave unknown.

Any idea how to get out the SN?

Please let me know if further clarification is needed.
Sponsored Links
    #2  
Old Unix and Linux 03-19-2017   -   Original Discussion by ahmedamer12
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 23 November 2017, 6:19 PM EST
Location: San Jose, CA, USA
Posts: 10,680
Thanks: 575
Thanked 3,738 Times in 3,190 Posts
I don't remember a Solaris utility that provides that information, but a simple C program using the sysinfo() function with the command parameter set to SI_HW_SERIAL should get you what you want.
Sponsored Links
    #3  
Old Unix and Linux 03-19-2017   -   Original Discussion by ahmedamer12
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 23 November 2017, 12:09 PM EST
Location: Outside Paris
Posts: 4,873
Thanks: 18
Thanked 635 Times in 554 Posts
I suspect sysinfo(SI_HW_SERIAL) returned "unknown".
In such case, the SN is on a sticker on the chassis and can be read from the ilom:
Find the Server Serial Number - SPARC T4-2 Server HTML Document Collection
    #4  
Old Unix and Linux 03-20-2017   -   Original Discussion by ahmedamer12
os2mac's Unix or Linux Image
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 2 November 2017, 4:08 PM EDT
Location: Anchorage, AK
Posts: 246
Thanks: 22
Thanked 25 Times in 25 Posts
so if you have the current explorer tools installed it includes a tool called sneep which does exactly that


Code:
# /opt/SUNWsneep
FML010101X
#

if not you can use the eeprom command:


Code:
# eeprom |grep -i ChassisSerialNumber
nvramrc=." ChassisSerialNumber FML0101010X " cr

Sponsored Links
    #5  
Old Unix and Linux 03-21-2017   -   Original Discussion by ahmedamer12
pressy's Unix or Linux Image
pressy pressy is offline Forum Advisor  
solaris cultist
 
Join Date: Aug 2003
Last Activity: 4 October 2017, 11:02 AM EDT
Location: Vienna / Austria (Europe) [EARTH]
Posts: 739
Thanks: 1
Thanked 2 Times in 2 Posts
do you see anything in "virtinfo -a" output?
Sponsored Links
    #6  
Old Unix and Linux 03-21-2017   -   Original Discussion by ahmedamer12
ahmedamer12 ahmedamer12 is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 4 April 2017, 2:28 AM EDT
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Both commands are not included in explorer file.

Quote:
Originally Posted by os2mac View Post
so if you have the current explorer tools installed it includes a tool called sneep which does exactly that


Code:
# /opt/SUNWsneep
FML010101X
#

if not you can use the eeprom command:


Code:
# eeprom |grep -i ChassisSerialNumber
nvramrc=." ChassisSerialNumber FML0101010X " cr

---------- Post updated at 12:48 AM ---------- Previous update was at 12:47 AM ----------

Quote:
Originally Posted by jlliagre View Post
I suspect sysinfo(SI_HW_SERIAL) returned "unknown".
In such case, the SN is on a sticker on the chassis and can be read from the ilom:
Find the Server Serial Number - SPARC T4-2 Server HTML Document Collection

Unfortunately , I have only explorer logs gathered from the system.

---------- Post updated at 12:50 AM ---------- Previous update was at 12:48 AM ----------

Quote:
Originally Posted by pressy View Post
do you see anything in "virtinfo -a" output?

looked for any virtinfo file/command in the explorer file but could not find any.
Sponsored Links
    #7  
Old Unix and Linux 03-22-2017   -   Original Discussion by ahmedamer12
os2mac's Unix or Linux Image
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 2 November 2017, 4:08 PM EDT
Location: Anchorage, AK
Posts: 246
Thanks: 22
Thanked 25 Times in 25 Posts
Quote:
Originally Posted by ahmedamer12 View Post
Both commands are not included in explorer file.



---------- Post updated at 12:48 AM ---------- Previous update was at 12:47 AM ----------




Unfortunately , I have only explorer logs gathered from the system.

---------- Post updated at 12:50 AM ---------- Previous update was at 12:48 AM ----------




looked for any virtinfo file/command in the explorer file but could not find any.


Then you need to upgrade your explorer pkg


Sent from my iPhone using Tapatalk

---------- Post updated at 08:00 AM ---------- Previous update was at 05:54 AM ----------

Quote:
Originally Posted by ahmedamer12 View Post
Unfortunately , I have only explorer logs gathered from the system.
Does this mean you don't have access to the system?
The Following User Says Thank You to os2mac For This Useful Post:
ahmedamer12 (03-23-2017)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find nim server of a machine prpkrk AIX 1 08-12-2011 03:07 PM
How can I find one file in other machine? w062611 UNIX for Dummies Questions & Answers 8 11-03-2009 03:35 PM
How to Find if AIX machine is LPar or not vineetd AIX 3 09-05-2009 04:19 PM
To find the LATEST file from a dir on REMOTE machine and SCP to local machine? me_ub Red Hat 3 07-08-2009 01:57 AM
How to find which machine ... premnathk UNIX for Dummies Questions & Answers 3 07-17-2006 09:40 AM



All times are GMT -4. The time now is 11:51 PM.