Submit
Path:
~
/
/
proc
/
self
/
root
/
usr
/
share
/
snmp
/
mibs
/
File Content:
NET-SNMP-EXAMPLES-MIB.txt
NET-SNMP-EXAMPLES-MIB DEFINITIONS ::= BEGIN -- -- Example MIB objects for agent module example implementations -- IMPORTS MODULE-IDENTITY, OBJECT-TYPE, Integer32, NOTIFICATION-TYPE FROM SNMPv2-SMI SnmpAdminString FROM SNMP-FRAMEWORK-MIB netSnmp FROM NET-SNMP-MIB RowStatus, StorageType FROM SNMPv2-TC InetAddressType, InetAddress FROM INET-ADDRESS-MIB ; netSnmpExamples MODULE-IDENTITY LAST-UPDATED "200406150000Z" ORGANIZATION "www.net-snmp.org" CONTACT-INFO "postal: Wes Hardaker P.O. Box 382 Davis CA 95617 email: net-snmp-coders@lists.sourceforge.net" DESCRIPTION "Example MIB objects for agent module example implementations" REVISION "200406150000Z" DESCRIPTION "Corrected notification example definitions" REVISION "200202060000Z" DESCRIPTION "First draft" ::= { netSnmp 2 } -- -- top level structure -- netSnmpExampleScalars OBJECT IDENTIFIER ::= { netSnmpExamples 1 } netSnmpExampleTables OBJECT IDENTIFIER ::= { netSnmpExamples 2 } netSnmpExampleNotifications OBJECT IDENTIFIER ::= { netSnmpExamples 3 } netSnmpExampleNotificationPrefix OBJECT IDENTIFIER ::= { netSnmpExampleNotifications 0 } netSnmpExampleNotificationObjects OBJECT IDENTIFIER ::= { netSnmpExampleNotifications 2 } -- netSnmpTutorial OBJECT IDENTIFIER ::= { netSnmpExamples 4 } -- -- Example scalars -- netSnmpExampleInteger OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION "This is a simple object which merely houses a writable integer. It's only purposes is to hold the value of a single integer. Writing to it will simply change the value for subsequent GET/GETNEXT/GETBULK retrievals. This example object is implemented in the agent/mibgroup/examples/scalar_int.c file." DEFVAL { 42 } ::= { netSnmpExampleScalars 1 } netSnmpExampleSleeper OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION "This is a simple object which is a basic integer. It's value indicates the number of seconds that the agent will take in responding to requests of this object. This is implemented in a way which will allow the agent to keep responding to other requests while access to this object is blocked. It is writable, and changing it's value will change the amount of time the agent will effectively wait for before returning a response when this object is manipulated. Note that SET requests through this object will take longer, since the delay is applied to each internal transaction phase, which could result in delays of up to 4 times the value of this object. This example object is implemented in the agent/mibgroup/examples/delayed_instance.c file." DEFVAL { 1 } ::= { netSnmpExampleScalars 2 } netSnmpExampleString OBJECT-TYPE SYNTAX SnmpAdminString MAX-ACCESS read-write STATUS current DESCRIPTION "This is a simple object which merely houses a writable string. It's only purposes is to hold the value of a single string. Writing to it will simply change the value for subsequent GET/GETNEXT/GETBULK retrievals. This example object is implemented in the agent/mibgroup/examples/watched.c file." DEFVAL { "So long, and thanks for all the fish!" } ::= { netSnmpExampleScalars 3 } -- -- Example Tables -- netSnmpIETFWGTable OBJECT-TYPE SYNTAX SEQUENCE OF NetSnmpIETFWGEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table merely contains a set of data which is otherwise useless for true network management. It is a table which describes properies about a IETF Working Group, such as the names of the two working group chairs. This example table is implemented in the agent/mibgroup/examples/data_set.c file." ::= { netSnmpExampleTables 1 } netSnmpIETFWGEntry OBJECT-TYPE SYNTAX NetSnmpIETFWGEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A row describing a given working group" INDEX { nsIETFWGName } ::= {netSnmpIETFWGTable 1 } NetSnmpIETFWGEntry ::= SEQUENCE { nsIETFWGName OCTET STRING, nsIETFWGChair1 OCTET STRING, nsIETFWGChair2 OCTET STRING } nsIETFWGName OBJECT-TYPE SYNTAX OCTET STRING (SIZE(1..32)) MAX-ACCESS not-accessible STATUS current DESCRIPTION "The name of the IETF Working Group this table describes." ::= { netSnmpIETFWGEntry 1 } nsIETFWGChair1 OBJECT-TYPE SYNTAX OCTET STRING MAX-ACCESS read-create STATUS current DESCRIPTION "One of the names of the chairs for the IETF working group." ::= { netSnmpIETFWGEntry 2 } nsIETFWGChair2 OBJECT-TYPE SYNTAX OCTET STRING MAX-ACCESS read-create STATUS current DESCRIPTION "The other name, if one exists, of the chairs for the IETF working group." ::= { netSnmpIETFWGEntry 3 } -- -- A table used in a table_iterator example -- (agent/mibgroup/examples/netSnmpHostsTable*.[ch]) -- netSnmpHostsTable OBJECT-TYPE SYNTAX SEQUENCE OF NetSnmpHostsEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "An example table that implements a wrapper around the /etc/hosts file on a machine using the iterator helper API." ::= { netSnmpExampleTables 2 } netSnmpHostsEntry OBJECT-TYPE SYNTAX NetSnmpHostsEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A host name mapped to an ip address" INDEX { netSnmpHostName } ::= { netSnmpHostsTable 1 } NetSnmpHostsEntry ::= SEQUENCE { netSnmpHostName OCTET STRING, netSnmpHostAddressType InetAddressType, netSnmpHostAddress InetAddress, netSnmpHostStorage StorageType, netSnmpHostRowStatus RowStatus } netSnmpHostName OBJECT-TYPE SYNTAX OCTET STRING (SIZE(0..64)) MAX-ACCESS not-accessible STATUS current DESCRIPTION "A host name that exists in the /etc/hosts (unix) file." ::= { netSnmpHostsEntry 1 } netSnmpHostAddressType OBJECT-TYPE SYNTAX InetAddressType MAX-ACCESS read-create STATUS current DESCRIPTION "The address type of then given host." ::= { netSnmpHostsEntry 2 } netSnmpHostAddress OBJECT-TYPE SYNTAX InetAddress MAX-ACCESS read-create STATUS current DESCRIPTION "The address of then given host." ::= { netSnmpHostsEntry 3 } netSnmpHostStorage OBJECT-TYPE SYNTAX StorageType MAX-ACCESS read-create STATUS current DESCRIPTION "The storage type for this conceptual row." DEFVAL { nonVolatile } ::= { netSnmpHostsEntry 4 } netSnmpHostRowStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-create STATUS current DESCRIPTION "The status of this conceptual row." ::= { netSnmpHostsEntry 5 } -- -- Example Notifications -- netSnmpExampleHeartbeatRate OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS accessible-for-notify STATUS current DESCRIPTION "A simple integer object, to act as a payload for the netSnmpExampleHeartbeatNotification. The value has no real meaning, but is nominally the interval (in seconds) between successive heartbeat notifications." ::= { netSnmpExampleNotificationObjects 1 } netSnmpExampleHeartbeatName OBJECT-TYPE SYNTAX SnmpAdminString MAX-ACCESS accessible-for-notify STATUS current DESCRIPTION "A simple string object, to act as an optional payload for the netSnmpExampleHeartbeatNotification. This varbind is not part of the notification definition, so is optional and need not be included in the notification payload. The value has no real meaning, but the romantically inclined may take it to be the object of the sender's affection, and hence the cause of the heart beating faster." ::= { netSnmpExampleNotificationObjects 2 } netSnmpExampleHeartbeatNotification NOTIFICATION-TYPE OBJECTS { netSnmpExampleHeartbeatRate } STATUS current DESCRIPTION "An example notification, used to illustrate the definition and generation of trap and inform PDUs (including the use of both standard and additional varbinds in the notification payload). This notification will typically be sent every 30 seconds, using the code found in the example module agent/mibgroup/examples/notification.c" ::= { netSnmpExampleNotificationPrefix 1 } netSnmpExampleNotification OBJECT-TYPE SYNTAX SnmpAdminString MAX-ACCESS accessible-for-notify STATUS obsolete DESCRIPTION "This object was improperly defined for its original purpose, and should no longer be used." ::= { netSnmpExampleNotifications 1 } END
Submit
FILE
FOLDER
Name
Size
Permission
Action
AGENTX-MIB.txt
17455 bytes
0644
BRIDGE-MIB.txt
50948 bytes
0644
DISMAN-EVENT-MIB.txt
68104 bytes
0644
DISMAN-SCHEDULE-MIB.txt
24613 bytes
0644
DISMAN-SCRIPT-MIB.txt
64311 bytes
0644
EtherLike-MIB.txt
84492 bytes
0644
HCNUM-TC.txt
4660 bytes
0644
HOST-RESOURCES-MIB.txt
52544 bytes
0644
HOST-RESOURCES-TYPES.txt
10583 bytes
0644
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
6713 bytes
0644
IANA-LANGUAGE-MIB.txt
4387 bytes
0644
IANA-RTPROTO-MIB.txt
4098 bytes
0644
IANAifType-MIB.txt
35384 bytes
0644
IF-INVERTED-STACK-MIB.txt
5066 bytes
0644
IF-MIB.txt
71691 bytes
0644
INET-ADDRESS-MIB.txt
16782 bytes
0644
IP-FORWARD-MIB.txt
46286 bytes
0644
IP-MIB.txt
185667 bytes
0644
IPV6-FLOW-LABEL-MIB.txt
2028 bytes
0644
IPV6-ICMP-MIB.txt
21057 bytes
0644
IPV6-MIB.txt
56463 bytes
0644
IPV6-TC.txt
3154 bytes
0644
IPV6-TCP-MIB.txt
8858 bytes
0644
IPV6-UDP-MIB.txt
5698 bytes
0644
LM-SENSORS-MIB.txt
5931 bytes
0644
MTA-MIB.txt
42375 bytes
0644
NET-SNMP-AGENT-MIB.txt
15901 bytes
0644
NET-SNMP-EXAMPLES-MIB.txt
9160 bytes
0644
NET-SNMP-EXTEND-MIB.txt
9326 bytes
0644
NET-SNMP-MIB.txt
2036 bytes
0644
NET-SNMP-PASS-MIB.txt
3730 bytes
0644
NET-SNMP-TC.txt
4814 bytes
0644
NET-SNMP-VACM-MIB.txt
5039 bytes
0644
NETWORK-SERVICES-MIB.txt
21006 bytes
0644
NOTIFICATION-LOG-MIB.txt
24694 bytes
0644
RFC-1215.txt
1174 bytes
0644
RFC1155-SMI.txt
3067 bytes
0644
RFC1213-MIB.txt
79667 bytes
0644
RMON-MIB.txt
147822 bytes
0644
SCTP-MIB.txt
45323 bytes
0644
SMUX-MIB.txt
4649 bytes
0644
SNMP-COMMUNITY-MIB.txt
15490 bytes
0644
SNMP-FRAMEWORK-MIB.txt
22342 bytes
0644
SNMP-MPD-MIB.txt
5496 bytes
0644
SNMP-NOTIFICATION-MIB.txt
20014 bytes
0644
SNMP-PROXY-MIB.txt
9106 bytes
0644
SNMP-TARGET-MIB.txt
22769 bytes
0644
SNMP-TLS-TM-MIB.txt
43927 bytes
0644
SNMP-TSM-MIB.txt
8912 bytes
0644
SNMP-USER-BASED-SM-MIB.txt
39201 bytes
0644
SNMP-USM-AES-MIB.txt
2205 bytes
0644
SNMP-USM-DH-OBJECTS-MIB.txt
21101 bytes
0644
SNMP-USM-HMAC-SHA2-MIB.txt
4400 bytes
0644
SNMP-VIEW-BASED-ACM-MIB.txt
34162 bytes
0644
SNMPv2-CONF.txt
8263 bytes
0644
SNMPv2-MIB.txt
29305 bytes
0644
SNMPv2-SMI.txt
8924 bytes
0644
SNMPv2-TC.txt
38034 bytes
0644
SNMPv2-TM.txt
5775 bytes
0644
TCP-MIB.txt
28564 bytes
0644
TRANSPORT-ADDRESS-MIB.txt
16418 bytes
0644
TUNNEL-MIB.txt
27826 bytes
0644
UCD-DEMO-MIB.txt
2163 bytes
0644
UCD-DISKIO-MIB.txt
4965 bytes
0644
UCD-DLMOD-MIB.txt
3087 bytes
0644
UCD-IPFWACC-MIB.txt
8118 bytes
0644
UCD-SNMP-MIB.txt
53338 bytes
0644
UDP-MIB.txt
20882 bytes
0644
N4ST4R_ID | Naxtarrr