아틴
Atin
아틴
전체 방문자
오늘
어제
  • 분류 전체보기 (460)
    • Devlopment (246)
      • 정리 글 (20)
      • MicroServices (0)
      • Reactive, Concurrenc.. (12)
      • Java (44)
      • Spring (20)
      • C,C++,Ruby,Python (52)
      • Mobile (39)
      • Web (35)
      • Tip & Info (14)
      • Unit Test (7)
    • Infra (44)
      • OS (21)
      • RDBMS (13)
      • NoSQL&Cache (5)
      • AWS (4)
    • Computer Science (11)
    • Etc (156)

블로그 메뉴

  • Home
  • Guestbook

공지사항

인기 글

태그

  • 안드로이드
  • Android
  • javascript
  • 정읍
  • Python
  • 전라도
  • 해킨토시
  • Linux
  • 던젼 앤 드래곤즈
  • 자바
  • TRPG
  • Dungeons & Dragons
  • CSS
  • Java
  • jsp
  • 여행
  • C
  • 아이폰
  • mysql
  • Ruby on Rails

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
아틴

Atin

Devlopment/정리 글

SnmpWalk

2010. 4. 27. 17:29
반응형

SNMP
란 무엇인가?
  • Simple Network Management Protocol의 약어
  • 네트워크 장비를 관리 감시하기 위한 TCP/IP 상에 정의된 응용 계층 표준 프로토콜

그냥 얼핏 느끼기엔 복잡하게 생각될 수도 있지만 간단하게 말하면 장비에 대한 정보를 얻어오거나 설정을 하기 위해서 쓰이는 프로토콜이다.

이 프로토콜을 이용해서 리눅스에서 쓰이는 SnmpWalk는 어떻게 쓰일까?
리눅스에서 snmpwalk를 입력하면 다음과 같은 도움말이 뜬다.

[........]$ snmpwalk
No hostname specified.
Usage: snmpwalk [options...] <hostname> {<community>} [<objectID>]

UCD-snmp version: 4.2.3
  -h            this help message.
  -H            Display configuration file directives understood.
  -V            display version number.
  -v 1|2c|3     specifies snmp version to use.
SNMP Version 1 or 2c specific
  -c <c>        set the community name (v1 or v2c)
SNMP Version 3 specific
  -Z <B,T>      set the destination engine boots/time for v3 requests.
  -e <E>        security engine ID (e.g., 800000020109840301).
  -E <E>        context engine ID (e.g., 800000020109840301).
  -n <N>        context name (e.g., bridge1).
  -u <U>        security name (e.g., bert).
  -l <L>        security level (noAuthNoPriv|authNoPriv|authPriv).
  -a <A>        authentication protocol (MD5|SHA)
  -A <P>        authentication protocol pass phrase.
  -x <X>        privacy protocol (DES).
  -X <P>        privacy protocol pass phrase
General communication options
  -p <P>        use port P instead of the default port.
  -T <LAYER>    use LAYER for the network layer.
                        (UDP or TCP).
  -t <T>        set the request timeout to T.
  -r <R>        set the number of retries to R.
Debugging
  -d            dump input/output packets.
  -D all | <TOKEN[,TOKEN,...]>  turn on debugging output for the specified TOKENs.
General options
  -m all | <MIBS>       use MIBS list instead of the default mib list.
  -M <MIBDIRS>  use MIBDIRS as the location to look for mibs.
  -P <MIBOPTS>  Toggle various defaults controlling mib parsing:
                  MIBOPTS values:
                      u: allow the usage of underlines in mib symbols.
                      c: disallow the usage of "--" to terminate comments.
                      d: save the descriptions of the mib objects.
                      e: Disable mib errors of MIB symbols conflicts
                      w: Enable mib warnings of MIB symbols conflicts
                      W: Enable detailed warnings of MIB symbols conflicts
                      R: Replace MIB symbols from latest module
  -O <OUTOPTS>  Toggle various defaults controlling output display:
                  OUTOPTS values:
                      n: Print oids numerically.
                      e: Print enums numerically.
                      E: Escape quotes in string indices.
                      X: Extended index format
                      b: Dont break oid indexes down.
                      q: Quick print for easier parsing.
                      f: Print full oids on output.
                      s: Print only last symbolic element of oid.
                      S: Print MIB module-id plus last element.
                      t: Print timeticks unparsed as numeric integers.
                      v: Print Print values only (not OID = value).
                      T: Print human-readable text along with hex strings.
  -I <INOPTS>   Toggle various defaults controlling input parsing:
                  INOPTS values:
                      R: Do random access to oid labels.
                      r: Don't check values for range/type legality.
                      b: Do best/regex matching to find a MIB node.
  -C <APPOPTS>  Toggle various application specific behaviour:
                  APPOPTS values:
                      p: Print the number of variables found.
                      i: Include the requested OID in the search range.
                      c: Don't check that the returned OID's are increasing.




처음에 이 snmpwalk를 어떻게 쓸지 몰라서 한참을 헤맸다.
그런데 결국 중요한건 역시 이 도움말에 다 있었다.

snmpwalk  -v  버젼  -c  커뮤니티이름  장비IP  장비OID


다른 옵션을 줄 수도 있겠지만 기본적인 옵션은 위와 같다.
장비 OID란 또 무엇인가? 간단하게 생각하면 장비가 갖고 있는 여러가지 정보 중에서 정보의 이름을 가르키는 인덱스라고 생각하면 되겠다. 자세한건 찾아보면 많이 나온다.

이 밖에 다른 옵션을 줄 수도 있겠다.
반응형

'Devlopment > 정리 글' 카테고리의 다른 글

정규식 예제  (0) 2012.03.29
Java에서 JNI를 써서 핑 프로그램을 구현하는 이유  (0) 2012.01.30
버전 관리 & 이슈 관리 시스템  (0) 2011.06.07
C와 Java의 컴파일 과정  (1) 2011.05.27
난수 발생기  (2) 2010.06.23
객체 지향 원칙  (0) 2008.08.21
리소스 지향 아키텍처(ROA)  (0) 2008.07.29
검색엔진  (1) 2008.07.17
REST  (0) 2008.07.09
피어슨 상관 계수  (0) 2008.07.09
    'Devlopment/정리 글' 카테고리의 다른 글
    • C와 Java의 컴파일 과정
    • 난수 발생기
    • 객체 지향 원칙
    • 리소스 지향 아키텍처(ROA)
    아틴
    아틴

    티스토리툴바