nodetool netstats — 네트워크 정보 조회

nodetool netstats — 네트워크 정보 조회

netstats 명령은 지정한 호스트(기본은 명령을 실행한 노드)의 네트워크 정보를 출력하는 nodetool 명령이에요. 스트리밍과 힌트 등 네트워크 활동을 확인할 때 씁니다.

출처: nodetool netstats

본문

이 명령은 대상 노드의 네트워크 통계를 출력해요. 진행 중인 스트리밍, 힌트 전달 상태 등을 확인할 수 있어요. -H 옵션을 쓰면 바이트를 사람이 읽기 쉬운 단위로 표시합니다.

원문의 사용법은 다음과 같습니다.

NAME
        nodetool netstats - Print network information on provided host
        (connecting node by default)
SYNOPSIS
        nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
                [(-pp | --print-port)] [(-pw <password> | --password <password>)]
                [(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
                [(-u <username> | --username <username>)] netstats
                [(-H | --human-readable)]
OPTIONS
        -h <host>, --host <host>
            Node hostname or ip address
        -H, --human-readable
            Display bytes in human readable form, i.e. KiB, MiB, GiB, TiB
        -p <port>, --port <port>
            Remote jmx agent port number
        -pp, --print-port
            Operate in 4.0 mode with hosts disambiguated by port number
        -pw <password>, --password <password>
            Remote jmx agent password
        -pwf <passwordFilePath>, --password-file <passwordFilePath>
            Path to the JMX password file
        -u <username>, --username <username>
            Remote jmx agent username

옵션을 하나씩 살펴볼게요.

  • -H, --human-readable — 바이트를 사람이 읽기 쉬운 형태(KiB, MiB, GiB, TiB)로 표시해요.
  • -h <host>, --host <host> — 대상 노드의 호스트명 또는 IP 주소를 지정해요.
  • -p <port>, --port <port> — 원격 JMX 에이전트 포트 번호를 지정해요.
  • -pp, --print-port — 호스트를 포트 번호로 구분하는 4.0 모드로 동작해요.
  • -pw <password>, --password <password> — 원격 JMX 에이전트 비밀번호를 지정해요.
  • -pwf <passwordFilePath>, --password-file <passwordFilePath> — JMX 비밀번호 파일의 경로를 지정해요.
  • -u <username>, --username <username> — 원격 JMX 에이전트 사용자 이름을 지정해요.

더 알아보기