RESTful Interface Tool
1. RESTful interface Tool 설치
RESTful Interface Tool - Windows
2.1.0.0(12 Oct 2017)
https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_9c0975dbceab469b83e621ad61&swEnvOid=4184

RESTful Interface Tool - Linux
2.1(12 Oct 2017)
https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_fcd88e6b616c4457ba011e8071&swEnvOid=4184

 

2. RESTful interface Tool 실행
> ilorest

 

3. 대상 서버 iLO에 접속
로컬 실행
IML> serverlogs --selectlog=IML -f C:\imllog.txt

IEL> serverlogs --selectlog=IEL -f C:\iellog.txt

 

원격 실행
IML> serverlogs --selectlog=IML -f C:\imllog.txt --url=<% iLO_IP_Address %> -u iLO_UserName -p iLO_Password

IEL> serverlogs --selectlog=IEL -f C:\iellog.txt --url=<% iLO_IP_Address %> -u iLO_UserName -p iLO_Password

 

4. 지정한 위치에 파일 생성되면 취합 (모두 한 개 라인에 기록됨)
e.g.) C:\imllog.txt

 

5. Notepad++ 등의 텍스트 편집기를 통해, “Created”를 > “\nCreated” (=”줄바꿈+Created”)로 모두 변경(<Ctrl>+<H>)

 

 

 

RESTful API - Web Browser or API Tools
Authorization Type: Basic Auth
Username: iLO_Username
Password: iLO_Password

 

GET Method,
https://<% iLO_IP_Address %>/redfish/v1/Systems/1/LogServices/IML/Entries

 

"Members@odata.count": 28, << check log counts X(total)

 

https://16.171.6.27/redfish/v1/Systems/1/LogServices/IML/Entries/N

 

N is from 1 to X

Posted by 스쳐가는인연