Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Net-SNMP

From Wikipedia, the free encyclopedia
Net-SNMP
Original author(s)Wes Hardaker
Developer(s)open source community
Stable release
5.9.4 / August 15, 2023; 19 months ago (2023-08-15)
Repository
Written inC,Perl,Python
Operating systemMost
TypeNetwork Management
LicenseBSD licenses
Websitewww.net-snmp.org

Net-SNMP is a suite of software for using and deploying theSNMP protocol (v1, v2c and v3 and theAgentX subagent protocol). It supportsIPv4,IPv6,IPX,AAL5,Unix domain sockets and other transports. It contains a generic clientlibrary, a suite ofcommand line applications, a highly extensible SNMP agent,perl modules andpython modules.

Distribution

[edit]

Net-SNMP is housed onSourceForge and is usually in the top 100 projects in the SourceForge ranking system. It was the March 2005 SourceForge Project of the Month.[1]It is very widely distributed and comes included with many operating systems including most distributions ofLinux,FreeBSD,OpenBSD,Solaris, andOS X. It is also available from the Net-SNMP web site.

History

[edit]

Steve Waldbusser ofCMU started a freely available SNMP tool kit in 1992. The package was later abandoned by CMU and Wes Hardaker atUC Davis renamed it to UCD-SNMP and extended it to meet the network management needs of the Electrical Engineering department there. Eventually Mr. Hardaker left the university and realized that the project was now network wide and thus renamed it to Net-SNMP to reflect its distributed development.[2]

The roots of the Net-SNMP project are long and a full description can be found on theNet-SNMP history page.

SNMP Applications Included With Net-SNMP

[edit]
ApplicationDescription
encode_keychangeProduce the KeyChange string for SNMPv3.
snmptranslateTranslateMIB OID names between numeric and textual forms.
snmpgetCommunicates with a network entity using SNMP GET requests.
snmpgetnextCommunicates with a network entity using SNMP GETNEXT requests.
snmpbulkgetCommunicates with a network entity using SNMP GETBULK requests.
snmpwalkRetrieve a subtree of management values using SNMP GETNEXT requests.
snmpbulkwalkRetrieve a subtree of management values using SNMP GETBULK requests.
snmpsetCommunicates with a network entity using SNMP SET requests.
snmptrapSends SNMP TRAP or INFORM notification messages.
snmpdAn SNMP agent that responds to SNMP requests for a given host.
snmptrapdAn SNMP daemon that listens for SNMP TRAPs or INFORMs and logs or acts upon them.
snmptestCommunicates with a network entity using SNMP requests.
snmpusmManipulates the SNMPv3 User-based-security user table
snmpvacmManipulates the SNMPv3 View-based-access-control-module configuration tables
snmpdfDisplays disk information like the unixdf tool using information collected from SNMP
mib2cA MIB conversion utility that can translate MIB structures into other forms, such as C-code
tkmibA perl/Tk interactive graphical MIB browser for SNMP.

Snmpget

[edit]

The commandsnmpget uses the snmpget application to retrieve information associated with a specific object identifier (OID) from a target device.

Example

[edit]

An example ofsnmpget usage (this will retrieve a specific OID 'sysUpTime' under the community string 'demopublic', with 'test.net-snmp.org' as the host name of the agent to query:

%snmpget-v2c-cdemopublictest.net-snmp.orgSNMPv2-MIB::sysUpTime.0SNMPv2-MIB::sysUpTime.0 = Timeticks: (586731977) 67 days, 21:48:39.77

Snmpwalk

[edit]

The commandsnmpwalk uses the SNMP GETNEXT request to query a network for a tree of information.

An object identifier (OID) may be given on the command line. This OID specifies which portion of the object identifier space will be searched using GETNEXT requests. All variables in the subtree below the given OID are queried and their values presented to the user. If no OID argument is present, snmpwalk will search the subtree rooted at SNMPv2-SMI::mib-2 (including any MIB object values from other MIB modules, that are defined as lying within this subtree).

Example

[edit]

An example ofsnmpwalk usage (this will retrieve all of the variables under thesystem OID):

$snmpwalk-t5-Os-cdemopublic-v2ctest.net-snmp.orgsystemsysDescr.0 = STRING: Linux test.net-snmp.org 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64sysObjectID.0 = OID: netSnmpAgentOIDs.10sysUpTimeInstance = Timeticks: (34198503) 3 days, 22:59:45.03sysContact.0 = STRING: Net-SNMP CoderssysName.0 = STRING: test.net-snmp.orgsysLocation.0 = STRING: Undisclosed

References

[edit]
  1. ^Project of the Month, March 2005Archived 2006-09-29 at theWayback Machine
  2. ^Net-SNMP History
Retrieved from "https://en.wikipedia.org/w/index.php?title=Net-SNMP&oldid=1171544658"
Categories:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp