# Location VMware ESXi 6.5/6.7
/opt/smartstorageadmin/ssacli/bin/ssacli

Get Slot Information - Slot x
# ./ssacli ctrl all show status

Check Rebuild progress
./ssacli ctrl [all|slot=x] show config detail | grep -i recov -A10
./ssacli ctrl [all|slot=x] show config | grep -i recov -A10

./ssacli ctrl [all|slot=x] ld [all|n] show
./ssacli ctrl [all|slot=x] ld [all|n] show status

x is specific slot number
n is specific logical drive

e.g.) command outcome
--------------------------------------------------------------
[root@localhost:~] /opt/smartstorageadmin/ssacli/bin/ssacli version

SSACLI Version: 3.40.3.0 2018-12-06
SOULAPI Version: 3.40.3.0 2018-12-06

[root@localhost:~] /opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show config detail | grep -i recov -A10

Status: Recovering, 52.15% complete
Unrecoverable Media Errors: None
MultiDomain Status: OK
Caching: Enabled
Unique Identifier: 600508B1001C8B23FDC6C5AC266B92D9
Logical Drive Label: 010F50FBPEYHB0ARH7503L 420D
Mirror Group 1:
physicaldrive 1I:3:1 (port 1I:box 3:bay 1, SAS HDD, 1 TB, OK)
Mirror Group 2:
physicaldrive 2I:2:1 (port 2I:box 2:bay 1, SAS HDD, 1 TB, Rebuilding)
Drive Type: Data
LD Acceleration Method: Controller Cache

[root@localhost:~] /opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld all show

HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)

Array A

logicaldrive 1 (931.48 GB, RAID 1, Recovering, 52.28% complete)

Array B

logicaldrive 2 (447.10 GB, RAID 1, OK)

[root@localhost:~] /opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld 1 show

HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)

Array A

Logical Drive: 1
Size: 931.48 GB
Fault Tolerance: 1
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 256 KB
Status: Recovering, 52.76% complete
Unrecoverable Media Errors: None
MultiDomain Status: OK
Caching: Enabled
Unique Identifier: 600508B1001C8B23FDC6C5AC266B92D9
Logical Drive Label: 010F50FBPEYHB0ARH7503L 420D
Mirror Group 1:
physicaldrive 1I:3:1 (port 1I:box 3:bay 1, SAS HDD, 1 TB, OK)
Mirror Group 2:
physicaldrive 2I:2:1 (port 2I:box 2:bay 1, SAS HDD, 1 TB, Rebuilding)
Drive Type: Data
LD Acceleration Method: Controller Cache
--------------------------------------------------------------

Also can observed via iLO.

 

Posted by 스쳐가는인연

---------------------------------------
# Location VMware ESXi 4.0/4.1/5.0
/opt/hp/hpacucli/bin/hpacucli

# Location VMware ESXi 5.1/5.5/6.0
/opt/hp/hpssacli/bin/hpssacli

# Location VMware ESXi 6.5/6.7
/opt/smartstorageadmin/ssacli/bin/ssacli
---------------------------------------

Get Slot Information - Slot x
# ./ssacli ctrl all show status

Check Rebuild progress
# ./ssacli ctrl slot=XX ld all show

or
# ./ssacli ctrl slot=XX show config

출처:
HOWTO: Monitor the rebuild status of a HPE SmartArray in ESXi 5.5
http://blog.jbgeek.net/2016/04/14/howto-monitor-the-rebuild-status-of-a-hpe-smartarray-in-esxi-5-5/

HPE Storage Controller Management (ssacli)
https://be-virtual.net/hpe-storage-controller-management-ssacli/

Posted by 스쳐가는인연

1. Download Powershell Library what current used OneView
https://github.com/HewlettPackard/POSH-HPOneView/releases

 

2. Connect Oneview and type credentials (Administrative permission)
C:\> Connect-HPOVMgmt

 

3. List Alert
C:\> Get-HPOVAlert
C:\> Get-HPOVAlert -AlertState Locked

 

4. Remove Alert
Get-HPOVAlert -AlertState Locked | Remove-HPOVAlert -force

 

참조
https://hewlettpackard.github.io/POSH-HPOneView/

Posted by 스쳐가는인연

iLO5 의 경우, Java 8 이상이 권장됨. (JRE의 경Java Security Warning우, Java IRC 사용을 위한 사전 준비 항목임)

This version of iLO was tested with JRE version 8 update 121.

 

Note: Java 7 최신 업데이트를 통해, iLO 5 Remote Console에 접근 가능하나, 일부 동작에서 오류가 확인됨
권장 버전 이상의 Java 8 버전 사용 시에는 문제가 확인 되지 않음.

 

Test 정보

1. Install RHEL 6.6 (Select Desktop + Compatible Libraries) to DL360 Gen9

이 Client에서 iLO 5(Gen10)에 접근함

 

2. Download Java SE Runtime Environment 8 (or 7) packages
https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html

 

3. Install Java Runtime Environment 1.7.0_65 for javaws
# rpm -ivh jre-7u65-linux-x64.rpm

 

4. launch FireFox and access iLO 5 after accept securtiy exception

 

5. Remote Console & Media > Java IRC > WebStart 선택 >> iLO-jirc.jnlp (Java Web Start(jnlp) file 저장 /tmp)

 

6. CLI 명령 창에서, Java Web Start(javaws) 실행
# javaws /tmp/iLO-jirc.jnlp

>> Error
(:31552): Gtk-CRITICAL **: IA__gtk_message_dialog_set_markup: assertion `GTK_IS_MESSAGE_DIALOG (message_dialog)' failed
Segmentation fault (core dumped)

 

Note: OS 기본 포함된 버전을 기준으로 설치 해보니 iRC 수행 중 오류가 발생됨

 

7. Install Java Runtime Environment 1.7.0_80 for javaws
# rpm -e jre
# rpm -ivh jre-7u80-linux-x64.rpm

 

8. CLI 명령 창에서, Java Web Start(javaws) 실행
# javaws /tmp/iLO-jirc.jnlp

 

9. Java Update를 찾을 지 질의하는 대화창

Java Update check

10. Java 보안 경고

Java Security Warning
Java Security Warning


11. Java iRC 접속

Java iRC

This version of iLO was tested with JRE version 8 update 121.

 

12. Install Java Runtime Environment 1.8.0_211 for javaws
# rpm -e jre
# rpm -ivh jre-8u211-linux-x64.rpm

 

13. CLI 명령 창에서, Java Web Start(javaws) 실행
# javaws /tmp/iLO-jirc.jnlp
# javaws /tmp/iLO-jirc-n.jnlp n=1...

 

다중 창 수행 시에도 정상 동작됨

 

추가.

iLO Remote Console을 사용함에, .NET 또는 Java와의 호환 이슈를 해소하기 위해 HPE는 HTML5 기반의 Console을 제공

HPE Integrated Lights Out (iLO 5) for Gen10 Servers
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00019259en_us
HTML5 remote console : No dependency on JAVA or .NET

 

HTML5 iRC

Posted by 스쳐가는인연

HPE Oneview 환경에서, Alert 관련 로그를 일부 또는 전체 삭제하고자 할 때,

 

삭제 전 Oneview Data backup (언제나 백업은 소중함~)
Oneview > Setting > Backup > Create Backup > Download Backup(생성된 후)

 

Firefox - RESTClient (POSTMAN등을 이용할 수도 있음)
- Firefox Brower에서, 확장기능으로, RESTClient 설치 및 실행

- 헤더 추가 (Headers > Custom header > check favorite header and add)
---------------------------------
Name: Content-Type / Value: application/json
---------------------------------
Name: X-API-Version / Value: 1000
---------------------------------

 

cf. OneView version에 따른 X-API-Version
---------------------------------------------------------
1.20             120
2.00             200
2.00.06          201
3.00              300
3.10              500
4.00              600
4.10              800
4.20              1000
---------------------------------------------------------

 

- Session Mgmt
------------------------------------------------
POST https://{appl}/rest/login-sessions

 

Body:
{"userName":"Administrator","password":"password"}
------------------------------------------------

curl -k -X POST https://{appl}/rest/login-sessions -H "Content-type: application/json" -d "{\"userName\":\"Administrator\",\"password\":\"password\"}"
------------------------------------------------

 

결과로, session ID 취득 후,

Response
{"sessionID":"LTQ3OTk3MzY1Njk22WQSyc9HZZbvwECWjPWmeM6_GVbaSzGU"}

 

- 헤더 추가 (Headers > Custom header
------------------------------------------------
Name: Auth / Value: LTQ3OTk3MzY1Njk22WQSyc9HZZbvwECWjPWmeM6_GVbaSzGU
------------------------------------------------

 

- Alert 항목 일괄 조회
GET https://{appl}/rest/alerts/
"start": 0,
"count": 25,
"total": 418,

 

- 특정 일자 이전 생성된 내용 조회 및 삭제
GET https://{appl}/rest/alerts/?query="created <= '2019-02-28'"
"start": 0,
"count": 19,
"total": 19,

 

DELETE https://{appl}/rest/alerts/?query="created <= '2019-02-28'"

 

GET https://{appl}/rest/alerts/?query="created <= '2019-02-28'"
"start": 0,
"count": 1,
"total": 1,

 

NOTE: Locked 상태를 제외하고 삭제됨

GET https://{appl}/rest/alerts/
"start": 0,
"count": 25,
"total": 400,

 

DELETE https://{appl}/rest/alerts/?query="created <= '2019-02-28'"&force=true

 

NOTE: Locked 상태를 포함하여 삭제됨

 

- 전체 로그 삭제

DELETE https://{appl}/rest/alerts?force=true

 

- 특정 로그 삭제

e.g.) Alert 652 항목 존재 여부 확인
GET https://{appl}/rest/alerts/652
------------------------------------------------
curl -k -H "Auth:LTQ3OTk3MzY1Njk22WQSyc9HZZbvwECWjPWmeM6_GVbaSzGU" https://{appl}/rest/alerts/652
------------------------------------------------


DELETE https://{appl}/rest/alerts/652?force=true

 

- 특정 상태 로그 삭제 (예시, Active 상태인 로그 삭제)
GET https://{appl}/rest/alerts?start=0&count=-1&filter="alertState EQ 'Active'"
DELETE https://{appl}/rest/alerts?filter="alertState EQ 'Active'"

 

DELETE 작업 후 결과는 별도로 확인되지 않기에, GET을 통해 추가 확인하면, 삭제 여부 확인에 도움이 됨

Posted by 스쳐가는인연