Re :Regarding Generating source code with mib2c

"vishal_nitr" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1187586010.S.32660.11365.webmail70.rediffmail.com.old.1187589025.9201@webmail.rediffmail.com>
Hi Manu,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use this command
mib2c -c mib2c.scalar.conf (MIB name)::(object name)
this command is for scalar for notifications use notifi.conf like wise you will have to generate code for all objects individually. I don\'t know if we can generate at once.
On Mon, 20 Aug 2007 01:01:30 -0400 \"manu kumar\" wroteHi dude\'s,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have a problem in generating a source code (*.h and *.c) with mib2c , i.e my problem is if the MIB contains scalars,Tables,Notifications types how to generat the source code in which i can have code to SET and GET the data of scalars,Tables,Notifications .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; it will helpfull to me if any assist me to solve this problemExample MIB which contains&nbsp; scalars,Tables,Notifications types :NET-SNMP-TEST-MIB DEFINITIONS ::= BEGIN---- test MIB objects for agent module example implementations--IMPORTS&nbsp;&nbsp;&nbsp; MODULE-IDENTITY, OBJECT-TYPE, Integer32,&nbsp;&nbsp;&nbsp; NOTIFICATION-TYPE&nbsp;&nbsp;&nbsp;&
 nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM SNMPv2-SMI&nbsp;&nbsp;&nbsp; SnmpAdminString&nbsp;&nbsp;&nbsp;&nbsp;&nb
 sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM SNMP-FRAMEWORK-MIB&nbsp;&nbsp;&nbsp; netSnmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM NET-SNMP-MIB&nbsp;&nbsp;&nbsp; RowStatus, StorageType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM SNMPv2-TC&nbsp;&nbsp;&nbsp; InetAddressType, InetAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM INET-ADDRESS-MIB;netSnmpTest MODULE-IDENTITY&nbsp;&nbsp;&nbsp; LAST-UPDATED \"200406150000Z\"&nbsp;&nbsp;&nbsp; ORGANIZATION \"www.net-snmp.org\"
 &nbsp;&nbsp;&nbsp; CONTACT-INFO&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\"postal:&nbsp;&nbsp; Wes Hardaker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
 sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; P.O. Box 382&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Davis CA&nbsp; 95617&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; email:&nbsp;&nbsp;&nbsp; [email protected]\"&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"test MIB objects for agent module example implementations\"&nbsp;&nbsp;&nbsp; REVISION&nbsp;&nbsp;&nbsp;&nbsp; \"200406150000Z\"&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"Corrected notification example definitions\"&nbsp;&nbsp;&nbsp; REVISION&nbsp;&nbsp;&nbsp;&nbsp; \"200202060000Z\"&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"First draft\"&nbsp;&nbsp;&nbsp; ::= { netSnmp 2 }---- top level structure--netSnmpTestScalars&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp; OBJECT IDENTIFIER ::= { netSnmpTest 1 }netSnmpTestTables&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OBJECT IDENTIFIER ::= { netSnmpTest 2 }netSnmpTestNotifications OB
 JECT IDENTIFIER ::= { netSnmpTest 3 }netSnmpTestNotificationPrefix&nbsp; OBJECT IDENTIFIER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::= { netSnmpTestNotifications 0 }netSnmpExampleNotificationObjects OBJECT IDENTIFIER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::= { netSnmpTestNotifications 2 }--netSnmpTestNotifications OBJECT IDENTIFIER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
 p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --::= { netSnmpTestNotifications 3 }-- netSnmpTutorial&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OBJECT IDENTIFIER ::= { netSnm
 pTest 4 }---- Example scalars--netSnmpTestInteger OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Integer32&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; read-write&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"This is a simple object which merely houses a writable&nbsp;&nbsp;&nbsp; &nbsp;integer.&nbsp; It\'s only purposes is to hold the value of a single&nbsp;&nbsp;&nbsp; &nbsp;integer.&nbsp; Writing to it will simply change the value for&nbsp;&nbsp;&nbsp; &nbsp;subsequent GET/GETNEXT/GETBULK retrievals.&nbsp;&nbsp;&nbsp; &nbsp;This example object is implemented in the&nbsp;&nbsp;&nbsp; &nbsp;agent/mibgroup/examples/scalar_int.c file.\"&nbsp;&nbsp;&nbsp; DEFVAL { 42 }&nbsp;&nbsp;&nbsp; ::= { netSnmpTestScalars 1 }
 netSnmpTestSleeper OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Integer32&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; read-write&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"This is a simple object which is a basic integer.&nbsp; It\'s value&nbsp;&nbsp;&nbsp; &nbsp;indicates the number of seconds that the agent will take in&nbsp;&nbsp;&nbsp; &nbsp;responding to requests of this object.&nbsp; This is implemented&nbsp;&nbsp;&nbsp; &nbsp;in a way which will allow the agent to keep responding to&nbsp;&nbsp;&nbsp; &nbsp;other requests while access to this object is blocked.&nbsp; It is&nbsp;&nbsp;&nbsp; &nbsp;writable, and changing it\'s value will change the amount of&nbsp;&nbsp;&nbsp; &nbsp;time the agent will effectively wait for before returning a&nbsp;&nbsp;&nbsp; &nbsp;response when this object is manipulated.&nbsp; Note that SET&nbsp;&nbsp;&nbsp; &nbsp;requests through this object will take lo
 nger, since the&nbsp;&nbsp;&nbsp; &nbsp;delay is applied to each internal transaction phase, which&nbsp;&nbsp;&nbsp; &nbsp;could result in delays of up to 4 times the value of this&nbsp;&nbs
 p;&nbsp; &nbsp;object.&nbsp;&nbsp;&nbsp; &nbsp;This example object is implemented in the&nbsp;&nbsp;&nbsp; &nbsp;agent/mibgroup/examples/delayed_instance.c file.\"&nbsp;&nbsp;&nbsp; DEFVAL { 1 }&nbsp;&nbsp;&nbsp; ::= { netSnmpTestScalars 2 }netSnmpTestString OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Integer32&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; read-write&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"This is a simple object which merely houses a writable&nbsp;&nbsp;&nbsp; &nbsp;string.&nbsp; It\'s only purposes is to hold the value of a single&nbsp;&nbsp;&nbsp; &nbsp;string.&nbsp; Writing to it will simply change the value for&nbsp;&nbsp;&nbsp; &nbsp;subsequent GET/GETNEXT/GETBULK retrievals.&nbsp;&
 nbsp;&nbsp; &nbsp;This example object is implemented in the&nbsp;&nbsp;&nbsp; &nbsp;agent/mibgroup/examples/watched.c file.\"&nbsp;&nbsp;&nbsp; DEFVAL { \"So long, and thanks for all the fis
 h!\" }&nbsp;&nbsp;&nbsp; ::= { netSnmpTestScalars 3 }----&nbsp; Example Tables--netSnmpIETFWGTestTable OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SEQUENCE OF NetSnmpIETFWGEntry&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; not-accessible&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"This table merely contains a set of data which is otherwise&nbsp;&nbsp;&nbsp; &nbsp;useless for true network management.&nbsp; It is a table which&nbsp;&nbsp;&nbsp; &nbsp;describes properies about a IETF Working Group, such as the&nbsp;&nbsp;&nbsp; &nbsp;names of the two working group chairs.&nbsp;&nbsp;&nbsp; &nbsp;This example table is implemented in the&nbsp;&nbsp;&nbsp; &nbsp;agent/mibgroup/examples/data_set.c file.\"&nbsp;&nbs
 p;&nbsp; ::= { netSnmpTestTables 1 }netSnmpIETFWGEntry OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NetSnmpIETFWGEntry&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; not-accessible
 &nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"A row describing a given working group\"&nbsp;&nbsp;&nbsp; INDEX&nbsp;&nbsp; { nsIETFWGName }&nbsp;&nbsp;&nbsp; ::= {netSnmpIETFWGTestTable 1 }NetSnmpIETFWGTestEntry ::= SEQUENCE {&nbsp;&nbsp;&nbsp; nsIETFWGName&nbsp;&nbsp;&nbsp; OCTET STRING,&nbsp;&nbsp;&nbsp; nsIETFWGChair1&nbsp;&nbsp;&nbsp; OCTET STRING,&nbsp;&nbsp;&nbsp; nsIETFWGChair2&nbsp;&nbsp;&nbsp; OCTET STRING}nsIETFWGName OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OCTET STRING (SIZE(1..32))&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; not-accessible&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"The name of the IETF Working Group this ta
 ble describes.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpIETFWGEntry&nbsp; 1 } --netSnmpIETFWGTestEntrynsIETFWGChairTest1 OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OCTET STRI
 NG&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; read-create&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"One of the names of the chairs for the IETF working group.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpIETFWGEntry&nbsp; 2 } --netSnmpIETFWGTestEntrynsIETFWGChairTest2 OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OCTET STRING&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; read-create&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"The other name, if one exists, of the chairs for the IETF&nbsp;&nbsp;&nbsp; working group.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpIETFWGEntry&nbsp; 3 } --netSnmpIETFWGTestEntry---- A table used in a table_iterator example--&nbsp;&nbsp; (agent/mi
 bgroup/examples/netSnmpHostsTable*.[ch])--netSnmpHostsTestTable OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SEQUENCE OF NetSnmpHostsEntry&nbsp;&nbsp;&nbsp; MAX-ACCESS&
 nbsp; not-accessible&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"An example table that implements a wrapper around the&nbsp;&nbsp;&nbsp; /etc/hosts file on a machine using the iterator helper API.\"&nbsp;&nbsp;&nbsp; -- by manu ::= { netSnmpExampleTestTables 2 }&nbsp;&nbsp;&nbsp; ::= { netSnmpTestTables 2 }netSnmpHostsTestEntry OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NetSnmpHostsEntry&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; not-accessible&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"A host name mapped to an ip address\"&nbsp;&nbsp;&nbsp; INDEX&nbsp;&nbsp; { netSnmpHostName }&nbsp;&nbsp;&nbsp; ::= { netSnmpHostsTestTable 1 }NetSnmpHo
 stsTestEntry ::= SEQUENCE {&nbsp;&nbsp;&nbsp; netSnmpHostName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OCTET STRING,&nbsp;&nbsp;&nbsp; netSnmpHostAddressType&nbsp; InetAddressType,&nb
 sp;&nbsp;&nbsp; netSnmpHostAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InetAddress,&nbsp;&nbsp;&nbsp; netSnmpHostStorage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StorageType,&nbsp;&nbsp;&nbsp; netSnmpHostRowStatus&nbsp;&nbsp;&nbsp; RowStatus}netSnmpHostName OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OCTET STRING (SIZE(0..64))&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; not-accessible&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"A host name that exists in the /etc/hosts (unix) file.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpHostsTestEntry 1 }netSnmpHostAddressType OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InetAddressType&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; read-create&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"The address type of then given host.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpHostsTestEntry 2 }netSnmpHostAddress OBJECT-TYPE&
 nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InetAddress&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; read-create&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp; \"The address of then given host.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpHostsTestEntry 3 }netSnmpHostStorage OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StorageType&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp;&nbsp; read-create&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION \"The storage type for this conceptual row.\"&nbsp;&nbsp;&nbsp; DEFVAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { nonVolatile }&nbsp;&nbsp;&nbsp; ::= { netSnmpHostsTestEntry 4 }netSnmpHostRowStatus OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbs
 p;&nbsp;&nbsp;&nbsp;&nbsp; RowStatus&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp;&nbsp; read-create&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION \
 "The status of this conceptual row.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpHostsTestEntry 5 }----&nbsp; Test Notifications--netSnmpTestHeartbeatRate OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Integer32&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; accessible-for-notify&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"A simple integer object, to act as a payload for the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netSnmpExampleHeartbeatNotification.&nbsp; The value has&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no real meaning, but is nominally the interval (in&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; seconds) between successive heartbeat notifications.\"&nbsp;&nbsp;&nbsp; ::= { n
 etSnmpExampleNotificationObjects 1 }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --netSnmpTestNotificationObjectsnetSnmpTestHeartbeatName OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  SnmpAdminString&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; accessible-for-notify&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"A simple string object, to act as an optional payload&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for the netSnmpExampleHeartbeatNotification.&nbsp; This varbind&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is not part of the notification definition, so is optional&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and need not be included in the notification payload. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The value has no real meaning, but the romantically inclined&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; may take it to be the object of the sender\'s affection
 ,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and hence the cause of the heart beating faster.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpExampleNotificationObjects&nbsp; 2 }&nbsp;&nbsp;&nbsp;&nbs
 p;&nbsp;&nbsp; --netSnmpTestNotificationObjectsnetSnmpTestHeartbeatNotification NOTIFICATION-TYPE&nbsp;&nbsp;&nbsp; OBJECTS&nbsp;&nbsp;&nbsp;&nbsp; { netSnmpTestHeartbeatRate }&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"An example notification, used to illustrate the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; definition and generation of trap and inform PDUs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (including the use of both standard and additional&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; varbinds in the notification payload).&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This notification will typically be sent every&nbsp;&nbsp;&nbsp; &nbsp;30 seconds, using the code found i
 n the example module&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; agent/mibgroup/examples/notification.c\"&nbsp;&nbsp;&nbsp;&nbsp; ::= { netSnmpTestNotificationPre
 fix 1 }netSnmpTestNotification OBJECT-TYPE&nbsp;&nbsp;&nbsp; SYNTAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SnmpAdminString&nbsp;&nbsp;&nbsp; MAX-ACCESS&nbsp; accessible-for-notify&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obsolete&nbsp;&nbsp;&nbsp; DESCRIPTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"This object was improperly defined for its original purpose,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and should no longer be used.\"&nbsp;&nbsp;&nbsp; ::= { netSnmpTestNotifications 1 }END&nbsp;

Thanks and Regards,
Vishal Kotalwar,
Software Engineer,
Aricent,
Chennai-35.
09884074047.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.