目前分類:Linux (2)

瀏覽方式: 標題列表 簡短摘要

 


SUSE10P3:~ # cat /etc/issue


Welcome to SUSE Linux Enterprise Server 10 SP3 (x86_64) - Kernel \r (\l).


 


------------ package management zypper 
### .. repos


SUSE10P3:~ # zypper service-add --type YaST dir:///root/Downloads/SLES10_SP3/ SLES-10-SP3


9509 zmd ZENworks Management Daemon is running.


WARNING: this command will not synchronize changes.
Use rug or yast2 for that.
Added Installation Sources:
[x]* SLES-10-SP3 (dir:///root/Downloads/SLES10_SP3/)


### .. repos


SUSE10P3:~ # zypper service-list
# | Enabled | Refresh | Type | Name | URI
--+---------+---------+------+-------------+----------------------------------
1 | Yes | Yes | YaST | SLES-10-SP3 | dir:///root/Downloads/SLES10_SP3/



### .. package
SUSE10P3:~ # zypper search nmap
Restoring system sources...
Parsing metadata for SLES-10-SP3...
S | Catalog | Type | Name | Version | Arch
--+-------------+---------+----------+-----------+-------
i | | package | nmap | 4.20-60 | x86_64
v | SLES-10-SP3 | package | nmap | 4.00-14.2 | x86_64
| SLES-10-SP3 | package | nmap-gtk | 4.00-14.2 | x86_64



SUSE10P3:~ # zypper remove nmap
Restoring system sources...
Parsing metadata for SLES-10-SP3...
Parsing RPM database...
Summary:
<uninstall> [S0:0][package]nmap-4.20-60.x86_64
Continue? [y/n]: y
Removing: [S0:0][package]nmap-4.20-60.x86_64



SUSE10P3:~ # zypper install nmap
Restoring system sources...
Parsing metadata for SLES-10-SP3...
Parsing RPM database...
Summary:
<install> [S1:1][package]nmap-4.00-14.2.x86_64
Continue? [y/n]: y
Downloading: [S1:1][package]nmap-4.00-14.2.x86_64, 680.7 K(2.5 M unpacked)
Installing: [S1:1][package]nmap-4.00-14.2.x86_64



SUSE10P3:~ # zypper search nmap
Restoring system sources...
Parsing metadata for SLES-10-SP3...
S | Catalog | Type | Name | Version | Arch
--+-------------+---------+----------+-----------+-------
i | SLES-10-SP3 | package | nmap | 4.00-14.2 | x86_64
| SLES-10-SP3 | package | nmap-gtk | 4.00-14.2 | x86_64

liaofamily 發表在 痞客邦 留言(0) 人氣()

how to retrieve serial number of HP Proliant server by command line

 

The OS of HP Porliant Server is RHEL 6

the first approach is via HP hpasmcli
 
 [root@XXX ~]# hpasmcli 
HP management CLI for Linux (v2.0)
Copyright 2008 Hewlett-Packard Development Group, L.P.
 
--------------------------------------------------------------------------
NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
      Type 'help' to get a list of all top level commands.
--------------------------------------------------------------------------
hpasmcli> show server
System        : ProLiant DL580 G7
Serial No.    : Q907BP7XXX
ROM version   : P65 03/01/2011
iLo present   : Yes
Embedded NICs : 4
   NIC1 MAC: 1c:c1:de:75:f8:24
   NIC2 MAC: 1c:c1:de:75:f8:25
   NIC3 MAC: 1c:c1:de:75:f8:26
   NIC4 MAC: 1c:c1:de:75:f8:27
 
Processor: 0
   Name         : Intel Xeon
   Stepping     : 6
   Speed        : 1867 MHz
   Bus          : 133 MHz
   Core         : 4
   Thread       : 8
   Socket       : 1
   Level2 Cache : 1024 KBytes
   Level3 Cache : 18432 KBytes
   Status       : Ok
 
Processor: 1
   Name         : Intel Xeon
   Stepping     : 6
   Speed        : 1867 MHz
   Bus          : 133 MHz
   Core         : 4
   Thread       : 8
   Socket       : 2
   Level2 Cache : 1024 KBytes
   Level3 Cache : 18432 KBytes
   Status       : Ok
 
Processor total  : 2
 
Memory installed : 32768 MBytes
ECC supported    : Yes
 
 
the second approach is via dmidecode
 
[root@XXX ~]# dmidecode
 
System Information
   Manufacturer: HP
   Product Name: ProLiant DL580 G7
   Version: Not Specified
   Serial Number: Q907BP7XXX
   UUID: 32313XXX-3232-3951-3XXX-425037323XXX
   Wake-up Type: Power Switch
   SKU Number: 111222-XXX
   Family: ProLiant

liaofamily 發表在 痞客邦 留言(0) 人氣()