Network

[net-snmp] net-snmp config on windows

Tribal 2018. 10. 16. 13:40

Install

  1. strawberry perl 설치
  2. cmd 창에서 cpan install Win32::Registry를 입력해서 모듈 설치
  3. net-snmp install 파일로 net-snmp 설치 (default install path : C:\usr)


config

  • 환경변수 등록 : 환경 변수 PATH에 C:\usr\bin 추가, 만약 별로 install path를 설정했다면 해당 경로의 bin 폴더
  • snmpd.conf 생성
    • installed path의 etc\snmp\snmpd.conf 파일을 생성해주어야 함
    • ex) C:\usr\etc\snmp\snmpd.conf
    • 다음과 같은 내용이 들어가면 된다.
      1
      2
      3
      4
      5
      6
      createUser [user name] MD5 [auth passphrase] DES [privcy passphrase]
      rouser [user name]
       
      # example
      # createUser Tribal MD5 "abcd" DES 
      # rwuser Tribal
      cs


use

  위와 같이 아무 말없이 실행이 되었다면 성공이다.



참고