Last updated
Last updated
systemctl
과 kscnd
의 status 명령어를 사용하여 SCN의 프로세스 상태를 확인할 수 있습니다.
systemctl
은 RPM과 함께 설치되며 SCN의 상태는 다음과 같이 확인할 수 있습니다.
You can check the current status such as Active: active (running)
in the example above.
kscnd
는 패키지와 함께 설치되며 SCN의 상태는 다음과 같이 확인할 수 있습니다.
로그는 kscnd.out
파일에 저장되어 있고, 이 파일은 kscnd.conf
파일의 LOG_DIR
필드에서 정의된 경로에 있습니다. When the node works properly, you can see that each block is imported per second as follows.
Example:
Klaytn은 kscn console
이라는 CLI 클라이언트를 제공합니다. Another way of using the client is to connect to the process via IPC (inter-process communication). klay.ipc
IPC 파일은 SCN의 data
디렉토리에 있습니다.
Please execute the following command and check out the result.
SCN의 상태를 확인하기 위해 다음의 API를 사용할 수 있습니다.
klay.blockNumber
(to get the latest block number)
net.peerCount
(to get the number of the connected Klaytn nodes currently)
You can get the latest block number to see if blocks are propagated properly.
위 명령은 메인체인의 EN을 제외하고 SCN이 연결한 노드의 수를 반환합니다.
You can check the usable commands on