iLO SNTP

iLO의 Web UI를 통해서 변경하는 것도 가능하지만, 수량이 많거나 하는 경우, 작업이 번거로울 수 있음에...

iLO의 SNTP의 Timezone을 변경 및 저장하지 않고, 아래 방법으로 진행해볼 수 있다.

 

1. RESTful Interface Tool 설치

RESTful Interface Tool for Windows

1.1.0(17 Nov 2020)

https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_b0ed9438eb1248fb919f39e084

 

RESTful Interface Tool for Linux
3.2.1(16 Apr 2021)
https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_db4070dcd8e4468fb67d5aefbc

 

2. 첨부 “ilotz.zip” 파일을 다운로드

ilotz.zip
0.00MB


/ilotz/

  • Change_iloTZ.bat
  • Change_iloTZ.sh

-------------------------------------------------------------

ilorest login --nologo %1 --user %2 --password %3 --selector=HPeiLODateTime.v2_0_0

ilorest --nologo rawpatch .\ilodatetime.json

ilorest --nologo iloreset --url=%1 -u %2 -p %3

ilorest --nologo logout

echo %1

-------------------------------------------------------------

  • ilodatetime.json

-------------------------------------------------------------

{
         "/redfish/v1/Managers/1/DateTime/":{
                       "TimeZone": {
            "Index": 31
                       }
         }
}
-------------------------------------------------------------

 

Windows 기준:
3. RESTful Interface Tool console 실행 > 다운로드 받은 “ilotz” 디렉토리로 이동

ilorest console

4. 아래 문구의 명령 수행
C:> Change_iloTZ.bat <%iLO_IPAddress%> <%Administrative_Account%> <%Password%>

e.g.)

C:\Temp\ilotz> Change_iloTZ.bat 192.168.0.10 Admin password
Discovering data...Done
The operation completed successfully.
Discovering data...Done

Warning:
After iLO resets, the session will be terminated.
Please wait for iLO to initialize completely before logging in again.
This process may take up to 3 minutes to complete.

A management processor reset is in progress.
Logging session out.
192.168.0.10
# ./Change_iloTZ.sh 192.168.0.10 Admin issadmin
Discovering data...Done
The operation completed successfully.
Discovering data...Done

Warning:
After iLO resets, the session will be terminated.
Please wait for iLO to initialize completely before logging in again.
This process may take up to 3 minutes to complete.

A management processor reset is in progress.
Logging session out.
192.168.0.10

 

Note. Script에서 수행되는 명령:
-------------------------------------------------------------
<snip>
iLO에 로그인:
ilorest login --nologo %1 --user %2 --password %3 --selector=HPeiLODateTime.v2_0_0

Timezone 변환:
ilorest --nologo rawpatch .\ilodatetime.json

Reset iLO:
ilorest --nologo iloreset --url=%1 -u %2 -p %3

접속 종료:
ilorest --nologo logout

대상 서버 IP Address 출력:
echo %1
<snip>
-------------------------------------------------------------
{
    "TimeZone": {
        "Index": 31,
        "Name": "Osaka, Sapporo, Tokyo, Seoul, Yakutsk",
        "UtcOffset": "+09:00",
        "Value": "JST-9:00"
    }
}
-------------------------------------------------------------

 

연관문서:
Advisory: (Revision) HPE Integrated Lights-Out 4 (iLO 4) and iLO 5 - The BIOS Time Zone May be Incorrect on Servers Set with Propagate Network Time Protocol (NTP) to Host or Propagate NTP or Onboard Administrator (OA) Time to Host
https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-a00062543en_us

.

 

 

 

 

 

반응형
Posted by 스쳐가는인연

댓글을 달아 주세요