Skip to content

net-snmp-5.3.2.3

조회 수 20104 추천 수 0 2009.07.01 14:26:51
Ver. net-snmp-5.3.2.3

### 다운로드 사이트
http://net-snmp.sourceforge.net

### SNMP설치
# tar xvfz net-snmp-5.3.2.3.tar.gz
# cd net-snmp
# ./configure
# make
...

설치하다보면 아래와 같은 질문이 나온다. 입력하지 않으면 기본값이 적용된다.

-Press return to continue-
(Enter를 치세요)
Default version of SNMP to use (3):
SNMP 버전을 몇을 기본으로 사용할지 적는 곳
System Contact Information (nomos@@no.where):
이 메일을 적는 곳
System Location (Unknown):
지역 주소를 적는 곳
Location to write logfile (/var/log/snmpd.log):
log파일을 어느 위치에 쓸지 적는 곳
Location to write persistent information (/var/net-snmp):
불변의 정보를 어느 위치에 쓸지 적는 곳

# make test
# make install

# cp EXAMPLE.conf /usr/local/share/snmp/snmpd.conf
# vi /usr/local/share/snmp/snmpd.conf
...
#            sec.name    source           community
com2sec local           localhost         public
com2sec mynetwork   192.168.1.0/24  public
com2sec public         default            public

####
# Second, map the security names into group names:

#                    sec.model  sec.name
group local      v1               local
group local      v2c             local
group local      usm            local
group mygroup    v1            mynetwork
group mygroup    v2c          mynetwork
group mygroup    usm          mynetwork
group public     v1               public
group public     v2c             public
group public     usm            public

####
# Third, create a view for us to let the groups have rights to:

#                   incl/excl   subtree                                                           mask
view  all         included    .1                                                                   80
view  system   included    system                                                           fe
view  mib2      included    .iso.org.dod.internet.private.enterprises.ghost      fc

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

#                         context   sec.model  sec.level  match  read    write    notif
access  mygroup  ""           any           noauth     exact  mib2      none   none
access  public      ""           any           noauth     exact  system  all      all
access  local        ""           any           noauth     exact  all         all      all

설치와 설정이 끝났다면 snmpd데몬을 실행시키자.
# /usr/local/sbin/snmpd

# ps -aux | grep snmpd

테스트
# snmpget -v1 -c public localhost system.sysLocation.0
# snmpwalk -v1 -c public localhost system


profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/2008/d5e/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
367 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648174
366 대용량 HDD 파티셔닝(Mass storage Partitioning) (GPT 파... ADMINPLAY 2010-04-14 74544
365 FFMPEG를 가장쉽게 설치하는 방법(ffmpeg-php 등) ADMINPLAY 2010-05-03 67315
364 rrdtool 컴파일시 에러 configure: error: Please fix the... ADMINPLAY 2009-08-08 65674
363 커널 2.6으로 업그레이드!「A to Z」 ADMINPLAY 2009-08-08 65319
362 e2fsck - 파일 시스템 복구 및 검사. - fsck file ADMINPLAY 2010-09-12 60904
361 Maskrading ADMIN 2008-11-11 59692
360 시스템 백업과 응급 복구 ADMINPLAY 2009-05-11 59650
359 배치파일을 이용한 백업방법 l2zeo 2010-03-31 59533
358 리눅스 전원부터 부팅이 되기까지의 과정이해 ADMIN 2008-11-11 58525
357 리눅스 디렉토리 구조와 파티션 관리의 기본 ADMINPLAY 2009-05-22 58478
356 hdparm 세부옵션 ADMINPLAY 2012-01-16 56039
355 CentOS 설치 - VMware 상에서 CentOS 설치하기 file l2zeo 2010-02-24 52101
354 Red Hat Linux 9 ADMINPLAY 2009-09-24 51551
353 Dell OMSA 설치 및 이용방법 ADMINPLAY 2014-08-13 50723
352 2TB이상의 Disk를 사용한 Raid6 구성 ADMINPLAY 2015-08-08 47137
351 sulinux 1.0. 서버 패키지 리스트 ADMINPLAY 2011-04-30 46422
350 ORA-01031: insufficient privileges 오류 ADMINPLAY 2010-02-24 41013
349 [APM] 리눅스에서 Apache, PHP, MySQL 등 제거 방법 ADMINPLAY 2009-06-29 39389
348 AIX 필수 명령어 ADMINPLAY 2009-12-10 39131

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234