NET-SNMP mib 추가후...
제목과 같이 NET-SNMP에 관련된 질문 입니다..
설치 완료 데스트 완료 하였고 snmpget으로 system.sysLocation.0 value 확인하였습니다.
근데 제가 ASN.1 모듈을 만들어
private(1)
-enterprises(1)
-my_Test(444)
-my_table(1)
-index:idx
-Interger32 idx(1)
Range: 0..65526
-String text(2)
Textual Convention:DisplayString
Size: 0..255
mib2c enterprises
-enterprises.c
-enterprises.h
./snmp/agent/mibgroups/두개 파일 COPY
./configure --with-mib-modules="enterprises"
make 했습니다.
이렇게 하면 뼈대만 만들어 진다고 하더라고요 그래서 각 값을 넣을 수 있는 추가 루틴이 필요하다고 하는데 전혀 모르겠어요....ㅠㅠ
snmpget 으로 값을 불러오면 아래와 같이 나와요
[root@Mars mibs]# snmpget -c public -v1 localhost enterprises.444
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: TEST-MID::myTest
[root@Mars mibs]# snmpget -c public -v1 localhost enterprises.444.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: TEST-MID::myTable
[root@Mars mibs]# snmpget -c public -v1 localhost enterprises.444.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: TEST-MID::myTableEntry
[root@Mars mibs]# snmpget -c public -v1 localhost enterprises.444.1.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: TEST-MID::idx
결론을 말하자면 궁극적으로 저는 mib를 추가하여 제가 원하는 값을 agent로 부터 받을려고 합니다.
그런데 이게 너무나 어렵군요..몇일 동안 인터넷으로 알아보기만 했는데...ㅠㅠ 그리고 영문 메뉴얼도 봤는데 어렵더라고요..
어느 부분을 수정해야 할지도 모를정도 입니다..그래서 너무나 답답하여 이렇게 글을 올립니다..


댓글 달기