# gmet Guide

Metadium 클라이언트 노드인 gmet의 binary 파일을 이용하여 간단하게 제어할 수 있는 가이드를 설명합니다.

### Start

gmet을 build한 후 script를 이용하여 실행하는 명령어입니다.

* gmet을 실행하면, 10MB Size의 Log File이 설정한 디렉토리에 저장되며, 최대 6개까지 저장합니다. 단, 저장 개수는 gmet.sh에서 변경이 가능합니다.

<pre><code><strong>$GMET_HOME/bin/gmet.sh start
</strong></code></pre>

### Stop

gmet을 멈추는 명령어입니다.

```
$GMET_HOME/bin/gmet.sh stop
```

### Restart

gmet을 재시작 하는 명령어입니다.

```
$GMET_HOME/bin/gmet.sh restart
```

### Delete Chaindata

gmet의 Chaindata를 삭제하는 명령어입니다.

```
$GMET_HOME/bin/gmet.sh wipe
```

### Connect Console

gmet의 JavaScript Console에 접속하는 명령어입니다.

```
$GMET_HOME/bin/gmet.sh console
```

### Log

gmet의 상태를 파악하기 위한 명령어입니다.

```
tail -F $GMET_HOME/logs/log
```

Log Level은 1\~5로 나누어져 있으며, 기본 값은 3입니다. 로그 레벨을 변경하기 위해서는 gmet Console에 접근하여 명령어를 실행합니다.

```
debug.verbosity({log_level})

//Log Level: 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail (default: 3)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.metadium.com/ko/developer/node-start/gmet-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
