cli-anything-rms은(는) 무엇을 하나요?
Teltonika RMS(원격 관리 시스템)용 CLI 도구입니다. RMS REST API를 통해 라우터, 게이트웨이, IoT 장치를 관리합니다.
설치
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=rms/agent-harness
인증
RMS_API_TOKEN 환경 변수를 설정하거나 cli-anything-rms config set api_token <token> 명령을 실행하세요.
명령 그룹
devices
devices list [--status online|offline] [--tag TAG] [--limit N] [--offset N] [--sort FIELD]— 장치 목록 조회devices get <device_id>— 장치 세부 정보 조회devices update <device_id> [--name NAME] [--tag TAG]— 장치 업데이트devices delete <device_id>— 장치 삭제
companies
companies list [--limit N] [--offset N]— 회사 목록 조회companies get <company_id>— 회사 세부 정보 조회companies create --name NAME— 회사 생성companies update <company_id> [--name NAME]— 회사 업데이트companies delete <company_id>— 회사 삭제
users
users list [--limit N] [--offset N]— 사용자 목록 조회users get <user_id>— 사용자 세부 정보 조회users invite --email EMAIL [--role ROLE]— 사용자 초대users update <user_id> [--role ROLE]— 사용자 업데이트users delete <user_id>— 사용자 삭제
tags
tags list [--limit N] [--offset N]— 태그 목록 조회tags get <tag_id>— 태그 세부 정보 조회tags create --name NAME— 태그 생성tags update <tag_id> [--name NAME]— 태그 업데이트tags delete <tag_id>— 태그 삭제
alerts
alerts list [--device DEVICE_ID] [--limit N] [--offset N]— 알림 목록 조회alerts get <alert_id>— 알림 세부 정보 조회alerts delete <alert_id>— 알림 삭제alerts configs list— 알림 설정 목록 조회alerts configs get <config_id>— 알림 설정 조회alerts configs create --data JSON— 알림 설정 생성alerts configs update <config_id> --data JSON— 알림 설정 업데이트alerts configs delete <config_id>— 알림 설정 삭제
configs
configs list [--device DEVICE_ID] [--limit N] [--offset N]— 장치 설정 목록 조회configs get <config_id>— 설정 조회configs update <config_id> --data JSON— 설정 업데이트
remote-access
remote-access list [--device DEVICE_ID] [--limit N]— 세션 목록 조회remote-access get <session_id>— 세션 세부 정보 조회remote-access create --device DEVICE_ID [--protocol PROTO] [--port PORT]— 세션 생성remote-access delete <session_id>— 세션 삭제
logs
logs list [--device DEVICE_ID] [--limit N] [--offset N]— 로그 목록 조회logs get <log_id>— 로그 세부 정보 조회logs delete <log_id>— 로그 삭제
location
location get <device_id>— 현재 장치 위치 조회location history <device_id> [--limit N] [--offset N]— 위치 기록
credits
credits list [--limit N] [--offset N]— 크레딧 목록 조회credits transfer --code CODE— 크레딧 전송credits codes [--limit N]— 전송 코드 목록 조회
files
files list [--limit N] [--offset N]— 파일 목록 조회files get <file_id>— 파일 세부 정보 조회files upload <file_path>— 파일 업로드files delete <file_id>— 파일 삭제
reports
reports list [--limit N] [--offset N]— 리포트 목록 조회reports get <report_id>— 리포트 조회reports create --template TEMPLATE_ID [--name NAME]— 리포트 생성reports delete <report_id>— 리포트 삭제reports templates list— 리포트 템플릿 목록 조회
hotspots
hotspots list [--device DEVICE_ID] [--limit N]— 핫스팟 목록 조회hotspots get <hotspot_id>— 핫스팟 세부 정보 조회hotspots create --device DEVICE_ID --name NAME— 핫스팟 생성hotspots update <hotspot_id> [--name NAME]— 핫스팟 업데이트hotspots delete <hotspot_id>— 핫스팟 삭제
passwords
passwords get <device_id>— 장치 비밀번호 조회passwords update <device_id> --password PASSWORD— 비밀번호 업데이트passwords update <device_id> --password-stdin— 비밀번호 업데이트 (표준 입력에서 읽기, 더 안전함)
smtp
smtp list [--limit N] [--offset N]— SMTP 설정 목록 조회smtp get <config_id>— SMTP 설정 조회smtp create --host HOST [--port PORT] [--username USER] [--password PASS]— SMTP 설정 생성smtp update <config_id> [--host HOST] [--port PORT]— SMTP 설정 업데이트smtp delete <config_id>— SMTP 설정 삭제
auth
auth test— API 연결 테스트auth status— 현재 인증 정보 표시
config
config set <key> <value>— 설정 (api_token, default_limit)config get [key]— 설정 표시config delete <key>— 설정 삭제config path— 설정 파일 경로 표시
예제
# 온라인 상태인 모든 장치 목록 조회
cli-anything-rms devices list --status online
# 장치 세부 정보를 JSON으로 조회
cli-anything-rms --json devices get 12345
# 특정 장치의 알림 확인
cli-anything-rms alerts list --device 12345
# 대화형 모드
cli-anything-rms