HP ProLiant G8

Материал из Webko Wiki
Перейти к навигации Перейти к поиску

Management Component Pack

HPE

The Linux Management Component Pack provides agent software for use on community-supported distributions.

hp-health HPE System Health Application and Command line Utilities (Gen9 and earlier)
hponcfg HPE RILOE II/iLO online configuration utility
amsd HPE Agentless Management Service (Gen10 only)
hp-ams HPE Agentless Management Service (Gen9 and earlier)
hp-snmp-agents Insight Management SNMP Agents for HPE ProLiant Systems (Gen9 and earlier)
hpsmh HPE System Management Homepage (Gen9 and earlier)
hp-smh-templates HPE System Management Homepage Templates (Gen9 and earlier)
ssacli HPE Command Line Smart Storage Administration Utility
ssaducli HPE Command Line Smart Storage Administration Diagnostics
ssa HPE Array Smart Storage Administration Service

rpm install

Cut-n-paste the following section (substituting distribution, architecture and project version) into /etc/yum.repos.d/mcp.repo on your system:

[mcp]
name=Management Component Pack
baseurl=http://downloads.linux.hpe.com/repo/mcp/dist/dist_ver/arch/project_ver
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp

Download GPG public

rpm --import http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub

Where:
dist: centos, fedora, opensuse, oracle, asianux
dist_ver: Browse repo to identify supported distribution versions
arch: i386, x86_64
project_ver: current, 11.30, 11.21, 11.05, 10.62, 10.50, 10.40, 10.20, 10.00, 9.30, 9.25

List the packages in the repository

$ yum --disablerepo="*" --enablerepo="short_repo_name" list available

Install a specific package

$ yum install <packagename>

CentOS 7

cat <<'EOF' >>/etc/yum.repos.d/mcp.repo
[HP-mcp]
name=HP Management Component Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/SDR/repo/mcp/centos/7.3/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp
EOF
wget http://downloads.linux.hpe.com/SDR/repo/mcp/GPG-KEY-mcp -O /etc/pki/rpm-gpg/GPG-KEY-mcp

deb install

Cut-n-paste the following section (substituting distribution, architecture and project version) into /etc/apt/sources.list.d/mcp.list on your system:

# HPE Management Component Pack
deb http://downloads.linux.hpe.com/SDR/repo/mcp dist/project_ver non-free

Where: dist: bionic, xenial, trusty, precise, stretch, jessie, squeeze, wheezy project_ver: current, 11.30, 11.21, 11.05, 10.80, 10.60, 10.50, 10.40, 9.50, 9.40


Install the HPE public gpg key

 curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -

Update the local apt indexes

# apt-get update

Search for a specific package

# apt-cache search <packagename> # browse debs

Install a specific package

# apt-get install <packagename>

Debian 9

echo "# HPE Management Component Pack" >/etc/apt/sources.list.d/hp-nonfree.list
echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp jessie/current non-free" >>/etc/apt/sources.list.d/hp-nonfree.list
curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -

iLO pwd reset

HPE

yum install hponcfg -y
apt-get install hponcfg -y

reset Administrator pwd

vim iLO4_set_password.xml

<<ribcl version="2.0">  
<login user_login="Administrator" password="boguspassword">  
<user_info mode="write">   
<mod_user user_login="Administrator">    
<password value="newpass">   
</password>  
</mod_user>  
</user_info>  
</login>       

</RIBCL>

where ?newpass? - new pwd

$  hponcfg -f passwd_reset_ilo.xml -l log.txt    
Firmware Revision = 1.92 Device type = iLO Driver name = hpilo

reset other user pwd

vim iLO4_set_password.xml

<ribcl version="2.0">  
<login user_login="Administrator" password="boguspassword">  
<user_info mode="write">   
<mod_user user_login="root">    
<password value="root123">   
</password>  
</mod_user>  
</user_info>  
</login>    

</RIBCL>

where ?root? - user login where ?root123? - new pwd

$  hponcfg -f passwd_reset_ilo.xml -l log.txt    
Firmware Revision = 1.92 Device type = iLO Driver name = hpilo

ssacli

Raid control CLI tool

Show configuration

ssacli ctrl all show config

Controller status

ssacli ctrl all show status

Show detailed controller information for all controllers

ssacli ctrl all show detail

Show detailed controller information for controller in slot 0

ssacli ctrl slot=0 show detail

Rescan for New Devices

ssacli rescan

Physical disk status

ssacli ctrl slot=0 pd all show status

Show detailed physical disk information

ssacli ctrl slot=0 pd all show detail

Logical disk status

ssacli ctrl slot=0 ld all show status

View Detailed Logical Drive Status

ssacli ctrl slot=0 ld 2 show

Create New RAID 0 Logical Drive

ssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0

Create New RAID 1 Logical Drive

ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1

Create New RAID 5 Logical Drive

ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5

Delete Logical Drive

ssacli ctrl slot=0 ld 2 delete

Add New Physical Drive to Logical Volume

ssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7

Add Spare Disks

ssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7

Enable Drive Write Cache

ssacli ctrl slot=0 modify dwc=enable

Disable Drive Write Cache

ssacli ctrl slot=0 modify dwc=disable

Erase Physical Drive

ssacli ctrl slot=0 pd 2I:1:6 modify erase

Turn on Blink Physical Disk LED

ssacli ctrl slot=0 ld 2 modify led=on

Turn off Blink Physical Disk LED

ssacli ctrl slot=0 ld 2 modify led=off

Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)

ssacli ctrl slot=0 modify cacheratio=100/0

Enable smart array write cache when no battery is present (No-Battery Write Cache option)

ssacli ctrl slot=0 modify nbwc=enable

Disable smart array cache for certain Logical Volume

ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

Enable smart array cache for certain Logical Volume

ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable

Enable SSD Smart Path

ssacli ctrl slot=0 array a modify ssdsmartpath=enable

Disable SSD Smart Path

ssacli ctrl slot=0 array a modify ssdsmartpath=disable