[SNMP]snmpset이 않되는 이유를 좀 갈쳐주세요.
snmpset -v1 -c public localhost system.sysLocation.0 s "right here"
또는
snmpset -v1 -c private localhost system.sysLocation.0 s "right here" 라는 명령을 내리면
Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-MIB::sysLocation.0
이란 에러가 발생합니다.
snmpset -v 2c -c public localhost system.sysLocation.0 s "right here" 라는 명령을 내리면
Error in packet.
Reason: notWritable (that object does not support modification)
Failed object: SNMPv2-MIB::sysLocation.0
mib 디렉토리에서 해당 mib(system.sysLocation.0)파일을 확인했구요.
snmpget으로도 값을 가져오는 것을 확인했습니다.
config파일을 수정해서 테스트도 해봤는데 잘 않됩니다.
수정해본 부분은 다음과 같습니다.
access MyROGroup "" any noauth exact all all all
access MyRWGroup "" any noauth exact all all all
access public "" any noauth exact all all all
rwuser noauth noauth
rwcommunity public 192.168.1.0/24 system
rwcommunity private 192.168.1.0/24 all
무엇이 잘못인지 모르겠습니다.
아시는 분은 차근차근 좀 갈쳐주세요...
에고...그럼 즐거운 시간 되세요
자문자답
snmpd.conf 파일에 특정 oid값을 설정해버리면
절대루 셋팅되지 않네요.
^^ snmpd.conf 파일에 영문 주석부분 잘 읽어보시면 됩니다.
아무튼 여러분의 관심에 감사드립니다.
댓글 달기