snmp를 켜려면
community1 설정해주고 실행을 하면되는데
중단이면 당연히 응답을 해주는 애가 없으니 응답이 없는데
$ snmpwalk -v 2c -c test 192.168.10.1 Timeout: No Response from 192.168.10.1 |
snmp를 켜놓으면 한참 걸려서 먼가 나오긴 한다.
그런데 CPU 관련 문구는 없어서 cpu 사용량을 확인할 방법은 없는건가...
$ snmpwalk -v 2c -c test 192.168.10.1 iso.3.6.1.2.1.1.1.0 = STRING: "Linux iptime 3.10.108 #82 SMP Thu May 4 15:14:28 KST 2023 mips" iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.12874 iso.3.6.1.2.1.1.3.0 = Timeticks: (779) 0:00:07.79 iso.3.6.1.2.1.1.4.0 = STRING: "support@iptme.com" iso.3.6.1.2.1.1.5.0 = STRING: "iptime" iso.3.6.1.2.1.1.6.0 = STRING: "South Korea" iso.3.6.1.2.1.1.8.0 = Timeticks: (1) 0:00:00.01 iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.10.3.1.1 iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.11.3.1.1 iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.15.2.1.1 iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1 iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.6.3.16.2.2.1 iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.49 iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.4 iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.2.1.50 iso.3.6.1.2.1.1.9.1.2.9 = OID: iso.3.6.1.6.3.13.3.1.3 iso.3.6.1.2.1.1.9.1.2.10 = OID: iso.3.6.1.2.1.92 iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The SNMP Management Architecture MIB." iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The MIB for Message Processing and Dispatching." iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The management information definitions for the SNMP User-based Security Model." iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities" iso.3.6.1.2.1.1.9.1.3.5 = STRING: "View-based Access Control Model for SNMP." iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing TCP implementations" iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing IP and ICMP implementations" iso.3.6.1.2.1.1.9.1.3.8 = STRING: "The MIB module for managing UDP implementations" iso.3.6.1.2.1.1.9.1.3.9 = STRING: "The MIB modules for managing SNMP Notification, plus filtering." iso.3.6.1.2.1.1.9.1.3.10 = STRING: "The MIB module for logging SNMP Notifications." iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.9 = Timeticks: (1) 0:00:00.01 iso.3.6.1.2.1.1.9.1.4.10 = Timeticks: (1) 0:00:00.01 iso.3.6.1.2.1.2.1.0 = INTEGER: 5 iso.3.6.1.2.1.25.1.4.0 = STRING: "console=ttyS1,57600n8 root=/dev/mtdblock5 " |
snmpget을 써보려는데 음.. AGENT와 OID가 필수라..
$ snmpget -v2c -c test 192.168.10.1 Missing object name USAGE: snmpget [OPTIONS] AGENT OID [OID]... |
대충 위에서 나온걸로 해보는데 OID가 아니랜다.
$ snmpget -v2c -c test 192.168.10.1 iso.3.6.1.4.1.12874 iso.3.6.1.4.1.12874 = No Such Object available on this agent at this OID |
딱 맞는걸 넣어야 나온다. 그래서 walk가 짱인가?
$ snmpget -v2c -c test 192.168.10.1 iso.3.6.1.2.1.2.1.0 iso.3.6.1.2.1.2.1.0 = INTEGER: 5 |
'Linux > Ubuntu' 카테고리의 다른 글
ssh 보안 취약점 패치 - 우분투 업데이트 (0) | 2024.07.08 |
---|---|
정체 불명의 우분투 키보드 입력 지연 (0) | 2024.06.28 |
우분투로 공유기 만들기 (2) | 2024.02.23 |
ubuntu pro? (2) | 2024.01.31 |
debian nvme tool (0) | 2023.08.28 |