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/e3a/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort

dd 명령어

슈퍼데몬 : xinetd

[rsync]서버 백업및 동기화

[설정] 로그 파일 관리 - logrotate

사이트 이전시 - rsync

안녕하세요'ㅅ' 오늘가입해서 이런질문을 드려봅니다~ 'ㅅ' [1]

데몬 및 프로세스 관리

Ascii Art관련 사이트 링크

[Linux] Proxy 서버 설정하기

snmpd 로그메세지 남기지 않기

부분적으로 yum 업데이트 하고 싶을때

  • ADMIN
  • 2008-11-10
  • 조회 수 17074

리눅스 기본 명령어 # 1

mrtg on freebsd , monitor windows2003

Disk Quota : 용량 제한 하기

CentOS 6.X GUI 로그인 화면에서 로그인 했던 계정 리스트...

알아두면 편리한 단축키(콘솔)

데몬(Daemon)이란?

아쿠아앰프(aquamp) 설치

  • ADMIN
  • 2008-10-30
  • 조회 수 16253

[리눅스] 파일의 속성관리를 위한 chattr실무활용 -2-

리눅스 기본 명령어 # 2

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234