Dharm S | 1 Oct 14:04 2014
Picon

oids not displayed as strings when send in traps

Hi All,

I have the following in one of the notification template.

const oid sipCommonCfgServiceStartTime_oid[] = { 1,3,6,1,2,1,149,1,1,1,1,3, /* insert index here */ };

It has 3 index values : two integers and one string.

How am I supposed to include the string value?

i tried using row->indexes->index_oid instead of the below oid.

But when received at trap, it replaces string by ascii values (ACK) as follows
    SIP-COMMON-MIB::sipCommonStatusCodeIns.1.65.67.75.0.183

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dharm S | 28 Sep 06:25 2014
Picon

NOT ABLE TO EXTRACT ROW->INDEXES

Hi All,

I have created mib module using mib2c.create-dataset.conf.

I have entered rows into the table using row = netsnmp_create_table_data_row(
);
I try to extract the indexes at another location by parsing each row in a for loop
for(row=table_set_myTable->table->first_row;row;row=row->next)

I had added indexes while creating rows using netsnmp_table_row_add_index() function.

But in the for loop when i check row->indexes, it creates segmentation fault indicating it to hold NULL value instead of any of the indexes.

if(table_set_myTable->table->first_row->indexes == NULL)
            flag =1;
which gave 1 as value confirming this.

What must have gone wrong? Is the extracting method wrong or adding index??
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dharm S | 28 Sep 06:20 2014
Picon

NOT ABLE TO EXTRACT ROW->INDEXES

Hi All,

I have created mib module using mib2c.create-dataset.conf.

I have entered rows into the table using row = netsnmp_create_table_data_row();

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Di Li | 25 Sep 02:44 2014

question for using cpan snmp module to do the bulkwalk

Hi Guys,

I'm trying to use the cpan snmp module to do the bulkwalk, I have tested some OID, it works great, however when I test a lot of OID together, roughly 3000, I get a error message

Cannot do bulkwalk: Too long (-5)

Is there any limitation on how many oid I can pass during a single bulkwalk ?

Any help will be really appreciated.

--
Thanks,
Di
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dharm S | 22 Sep 08:06 2014
Picon

ASN.1 Represention error

I am not able to send snmp traps due to the following error. What change am i suppposed to do?

snmpd: send_trap: Error building ASN.1 representation (build uint size 0: s/b 4)
snmp_build: unknown failure

I have included the MIB files in /usr/local/share/snmp/mibs and in .snmp/mibs folders. But still i dont think it is reading the MIB files. I have gone through FAQs and other similar errors but nothing seems to resolve the issue.

I compiled the MIB module by ./configure --with-mib-modules="sipCommonMIB" and the .c and .h files were put in agent/mibgroup/ folder.

What could have gone wrong regarding ASN.1 representation?
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dharm S | 21 Sep 20:54 2014
Picon

ASN.1 Representation error

Hi All,

I have compiled a mib module which works well as subagent but when i send traps, I get the following as output without proper translation of OIDs

2014-09-21 23:56:17 localhost [UDP: [127.0.0.1]:40300->[127.0.0.1]:162]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10079) 0:01:40.79    SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::mib-2.149.0.4    SNMPv2-SMI::mib-2.149.1.9.6.0 = Gauge32: 0    SNMPv2-SMI::mib-2.149.1.9.5.0 = Gauge32: 0    SNMPv2-SMI::mib-2.149.1.1.1.1.3.1 = Timeticks: (0) 0:00:00.00

What should i do inorder to change the numerical oids to textual ones when received by traps??
------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Pranesh Kulkarni | 18 Sep 06:25 2014
Picon

mib2c mfd for ifTable

Hi All,

I used mib2c compiler for generating mfd option for ifTable

I am not getting the values for snmpwalk

#snmpwalk -v 2c -c public localhost ifTable
IF-MIB::ifTable = No Such Object available on this agent at this OID


I have correctly configured config file.

running the master agent as
/usr/local/sbin/snmpd -I -ifTable -I -ifXTable




The logic of getting the values is in ifTable_container_load() , but I did find any function calling this one ifTable_container_load()
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dharm S | 13 Sep 08:57 2014
Picon

NOT LINKING OTHER FILES

Hi All,

I have generated mfd files for ETHTOOL-MIB following the example of http://vincent.bernat.im/en/blog/2012-extending-netsnmp.html.
I did the changes on my files as he had done.

And used the following command for compiling subagent

net-snmp-config --compile-subagent mysub ethtoolStatTable.c

I got the following error :

generating the temporary code file: netsnmptmp.3771.c
void init_ethtoolStatTable(void);
checking for init_ethtoolStatTable in ethtoolStatTable.c
init_ethtoolStatTable(void)
    DEBUGMSGTL(("verbose:ethtoolStatTable:init_ethtoolStatTable","called\n"));
} /* init_ethtoolStatTable */
checking for shutdown_ethtoolStatTable in ethtoolStatTable.c
shutdown_ethtoolStatTable(void)
running: gcc  -fno-strict-aliasing -g -O2 -Ulinux -Dlinux=linux  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/local/lib/perl5/5.18.2/x86_64-linux-thread-multi/CORE   -I. -I/usr/local/include -o mysub netsnmptmp.3771.c  ethtoolStatTable.c -L/usr/local/ssl/lib  -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -ldl  -lnetsnmpagent  -Wl,-E -Wl,-rpath,/usr/local/lib/perl5/5.18.2/x86_64-linux-thread-multi/CORE -lnetsnmp 
/tmp/ccNfcjfS.o: In function `shutdown_table_ethtoolStatTable':
/home/dell/ethtoolStatTable/ethtoolStatTable.c:114: undefined reference to `_ethtoolStatTable_shutdown_interface'
/tmp/ccNfcjfS.o: In function `initialize_table_ethtoolStatTable':
/home/dell/ethtoolStatTable/ethtoolStatTable.c:102: undefined reference to `_ethtoolStatTable_initialize_interface'
/tmp/ccNfcjfS.o: In function `shutdown_table_ethtoolStatTable':
/home/dell/ethtoolStatTable/ethtoolStatTable.c:114: undefined reference to `_ethtoolStatTable_shutdown_interface'
collect2: error: ld returned 1 exit status
removing the temporary code file: netsnmptmp.3771.c

I believe it has to do with ethtoolStatTable.h config commands

/*
 * Note: this file originally auto-generated by mib2c using
 *       version : 14170 $ of $
 *
 * $Id:$
 */
#ifndef ETHTOOLSTATTABLE_H
#define ETHTOOLSTATTABLE_H

#ifdef __cplusplus
extern "C" {
#endif


/** <at> addtogroup misc misc: Miscellaneous routines
 *
 * <at> {
 */
#include <net-snmp/library/asn1.h>

/* other required module components */
    /* *INDENT-OFF*  */
config_add_mib(ETHTOOL-MIB)
config_require(ETHTOOL-MIB/ethtoolStatTable/ethtoolStatTable_interface)
config_require(ETHTOOL-MIB/ethtoolStatTable/ethtoolStatTable_data_access)
config_require(ETHTOOL-MIB/ethtoolStatTable/ethtoolStatTable_data_get)
config_require(ETHTOOL-MIB/ethtoolStatTable/ethtoolStatTable_data_set)
    /* *INDENT-ON*  */

/* OID and column number definitions for ethtoolStatTable */
#include "ethtoolStatTable_oids.h"

/* enum definions */
#include "ethtoolStatTable_enums.h"

/* *********************************************************************
 * function declarations
 */
void init_ethtoolStatTable(void);
void shutdown_ethtoolStatTable(void);

/* *********************************************************************
 * Table declarations
 */
/**********************************************************************
 **********************************************************************
 ***
 *** Table ethtoolStatTable
 ***
 **********************************************************************
 **********************************************************************/
/*
 * ETHTOOL-MIB::ethtoolStatTable is subid 1 of ethtool.
 * Its status is Current.
 * OID: .1.3.6.1.4.1.39178.100.1.1, length: 10
*/
/* *********************************************************************
 * When you register your mib, you get to provide a generic
 * pointer that will be passed back to you for most of the
 * functions calls.
 *
 * TODO:100:r: Review all context structures
 */
    /*
     * TODO:101:o: |-> Review ethtoolStatTable registration context.
     */
typedef netsnmp_data_list ethtoolStatTable_registration;

/**********************************************************************/
/*
 * TODO:110:r: |-> Review ethtoolStatTable data context structure.
 * This structure is used to represent the data for ethtoolStatTable.
 */
/*
 * This structure contains storage for all the columns defined in the
 * ethtoolStatTable.
 */
typedef struct ethtoolStatTable_data_s {
   
        /*
         * ethtoolStat(2)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
         */
   U64   ethtoolStat;
   
} ethtoolStatTable_data;


/*
 * TODO:120:r: |-> Review ethtoolStatTable mib index.
 * This structure is used to represent the index for ethtoolStatTable.
 */
typedef struct ethtoolStatTable_mib_index_s {

        /*
         * ifIndex(1)/InterfaceIndex/ASN_INTEGER/long(long)//l/A/w/e/R/d/H
         */
   long   ifIndex;

        /*
         * ethtoolStatName(1)/ShortDisplayString/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/H
         */
   char   ethtoolStatName[100];
   size_t      ethtoolStatName_len;


} ethtoolStatTable_mib_index;

    /*
     * TODO:121:r: |   |-> Review ethtoolStatTable max index length.
     * If you KNOW that your indexes will never exceed a certain
     * length, update this macro to that length.
     *
     * BE VERY CAREFUL TO TAKE INTO ACCOUNT THE MAXIMUM
     * POSSIBLE LENGHT FOR EVERY VARIABLE LENGTH INDEX!
     * Guessing 128 - col/entry(2)  - oid len(10)
*/
#define MAX_ethtoolStatTable_IDX_LEN     102


/* *********************************************************************
 * TODO:130:o: |-> Review ethtoolStatTable Row request (rowreq) context.
 * When your functions are called, you will be passed a
 * ethtoolStatTable_rowreq_ctx pointer.
 */
typedef struct ethtoolStatTable_rowreq_ctx_s {

    /** this must be first for container compare to work */
    netsnmp_index        oid_idx;
    oid                  oid_tmp[MAX_ethtoolStatTable_IDX_LEN];
   
    ethtoolStatTable_mib_index        tbl_idx;
   
    ethtoolStatTable_data              data;

    /*
     * flags per row. Currently, the first (lower) 8 bits are reserved
     * for the user. See mfd.h for other flags.
     */
    u_int                       rowreq_flags;

    /*
     * TODO:131:o: |   |-> Add useful data to ethtoolStatTable rowreq context.
     */
   
    /*
     * storage for future expansion
     */
    netsnmp_data_list             *ethtoolStatTable_data_list;

} ethtoolStatTable_rowreq_ctx;

typedef struct ethtoolStatTable_ref_rowreq_ctx_s {
    ethtoolStatTable_rowreq_ctx *rowreq_ctx;
} ethtoolStatTable_ref_rowreq_ctx;

/* *********************************************************************
 * function prototypes
 */
    int ethtoolStatTable_pre_request(ethtoolStatTable_registration * user_context);
    int ethtoolStatTable_post_request(ethtoolStatTable_registration * user_context,
        int rc);


    ethtoolStatTable_rowreq_ctx *
                  ethtoolStatTable_row_find_by_mib_index(ethtoolStatTable_mib_index *mib_idx);

extern oid ethtoolStatTable_oid[];
extern int ethtoolStatTable_oid_size;


#include "ethtoolStatTable_interface.h"
#include "ethtoolStatTable_data_access.h"
#include "ethtoolStatTable_data_get.h"
#include "ethtoolStatTable_data_set.h"

/*
 * DUMMY markers, ignore
 *
 * TODO:099:x: *************************************************************
 * TODO:199:x: *************************************************************
 * TODO:299:x: *************************************************************
 * TODO:399:x: *************************************************************
 * TODO:499:x: *************************************************************
 */

#ifdef __cplusplus
}
#endif

#endif /* ETHTOOLSTATTABLE_H */
/** <at> } */

Should i change the path in config_require?

I tried by using
config_require(ethtoolStatTable_interface)
config_require(ethtoolStatTable_data_access)
config_require(ethtoolStatTable_data_get)
config_require(ethtoolStatTable_data_set)

and also by including the folder where all files including defaults reside(ethtool1) :
config_require(ethtool1/ethtoolStatTable_interface)
config_require(ethtool1/ethtoolStatTable_data_access)
config_require(ethtool1/ethtoolStatTable_data_get)
config_require(ethtool1/ethtoolStatTable_data_set)

Its all giving the same error finally.

Have I missed out changing anything else??

Thanks

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Uday, Sumita (Sumita | 10 Sep 07:59 2014

Is net-snmp 5.6.2 FIPS-140-2 complaint?

 

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dharm S | 3 Sep 11:20 2014
Picon

Not getting response from localhost

Hi All,

I am using the following snmpd.conf.

###############################################################################
#
# EXAMPLE.conf:
#   An example configuration file for configuring the Net-SNMP agent ('snmpd')
#   See the 'snmpd.conf(5)' man page for details
#
#  Some entries are deliberately commented out, and will need to be explicitly activated
#
###############################################################################
#
#  AGENT BEHAVIOUR
#

#  Listen for connections from the local system only
#agentAddress  udp:127.0.0.1:161
#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
agentAddress udp:161



###############################################################################
#
#  SNMPv3 AUTHENTICATION
#
#  Note that these particular settings don't actually belong here.
#  They should be copied to the file /var/net-snmp/snmpd.conf
#     and the passwords changed, before being uncommented in that file *only*.
#  Then restart the agent

#  createUser authOnlyUser  MD5 "remember to change this password"
#  createUser authPrivUser  SHA "remember to change this one too"  DES
#  createUser internalUser  MD5 "this is only ever used internally, but still change the password"

#  If you also change the usernames (which might be sensible),
#  then remember to update the other occurances in this example config file to match.



###############################################################################
#
#  ACCESS CONTROL
#

                                                 #  system + hrSystem groups only
#view   systemonly  included   .1.3.6.1.2.1.1
#view   systemonly  included   .1.3.6.1.2.1.25.1

                                                 #  Full access from the local host
rocommunity public  localhost
                                                 #  Default access to basic system info
#rocommunity public  default    -V systemonly

                                                 #  Full access from an example network
                                                 #     Adjust this network address to match your local
                                                 #     settings, change the community string,
                                                 #     and check the 'agentAddress' setting above


                                                 #  Full read-only access for SNMPv3
 rouser   authOnlyUser
                                                 #  Full write access for encrypted requests
                                                 #     Remember to activate the 'createUser' lines above
#rwuser   authPrivUser   priv

#  It's no longer typically necessary to use the full 'com2sec/group/access' configuration
#  r[ou]user and r[ow]community, together with suitable views, should cover most requirements



###############################################################################
#
#  SYSTEM INFORMATION
#

#  Note that setting these values here, results in the corresponding MIB objects being 'read-only'
#  See snmpd.conf(5) for more details
sysLocation    Sitting on the Dock of the Bay
sysContact     Me <me <at> example.org>
                                                 # Application + End-to-End layers
sysServices    72


#
#  Process Monitoring
#
                               # At least one  'mountd' process
proc  mountd
                               # No more than 4 'ntalkd' processes - 0 is OK
proc  ntalkd    4
                               # At least one 'sendmail' process, but no more than 10
proc  sendmail 10 1

#  Walk the UCD-SNMP-MIB::prTable to see the resulting output
#  Note that this table will be empty if there are no "proc" entries in the snmpd.conf file


#
#  Disk Monitoring
#
                               # 10MBs required on root disk, 5% free on /var, 10% free on all other disks
disk       /     10000
disk       /var  5%
includeAllDisks  10%

#  Walk the UCD-SNMP-MIB::dskTable to see the resulting output
#  Note that this table will be empty if there are no "disk" entries in the snmpd.conf file


#
#  System Load
#
                               # Unacceptable 1-, 5-, and 15-minute load averages
load   12 10 5

#  Walk the UCD-SNMP-MIB::laTable to see the resulting output
#  Note that this table *will* be populated, even without a "load" entry in the snmpd.conf file



###############################################################################
#
#  ACTIVE MONITORING
#

                                    #   send SNMPv1  traps
 trapsink     localhost public
                                    #   send SNMPv2c traps
#trap2sink    localhost public
                                    #   send SNMPv2c INFORMs
#informsink   localhost public

#  Note that you typically only want *one* of these three lines
#  Uncommenting two (or all three) will result in multiple copies of each notification.


#
#  Event MIB - automatically generate alerts
#
                                   # Remember to activate the 'createUser' lines above
iquerySecName   internalUser      
rouser          internalUser
                                   # generate traps on UCD error conditions
defaultMonitors          yes
                                   # generate traps on linkUp/Down
linkUpDownNotifications  yes



###############################################################################
#
#  EXTENDING THE AGENT
#

#
#  Arbitrary extension commands
#
 extend    test1   /bin/echo  Hello, world!
 extend-sh test2   echo Hello, world! ; echo Hi there ; exit 35
#extend-sh test3   /bin/sh /tmp/shtest

#  Note that this last entry requires the script '/tmp/shtest' to be created first,
#    containing the same three shell commands, before the line is uncommented

#  Walk the NET-SNMP-EXTEND-MIB tables (nsExtendConfigTable, nsExtendOutput1Table
#     and nsExtendOutput2Table) to see the resulting output

#  Note that the "extend" directive supercedes the previous "exec" and "sh" directives
#  However, walking the UCD-SNMP-MIB::extTable should still returns the same output,
#     as well as the fuller results in the above tables.


#
#  "Pass-through" MIB extension command
#
#pass .1.3.6.1.4.1.8072.2.255  /bin/sh       PREFIX/local/passtest
#pass .1.3.6.1.4.1.8072.2.255  /usr/bin/perl PREFIX/local/passtest.pl

# Note that this requires one of the two 'passtest' scripts to be installed first,
#    before the appropriate line is uncommented.
# These scripts can be found in the 'local' directory of the source distribution,
#     and are not installed automatically.

#  Walk the NET-SNMP-PASS-MIB::netSnmpPassExamples subtree to see the resulting output


#
#  AgentX Sub-agents
#
                                           #  Run as an AgentX master agent
 master          agentx
                                           #  Listen for network connections (from localhost)
                                           #    rather than the default named socket /var/agentx/master
#agentXSocket    tcp:localhost:705

I ran snmpd as snmpd -c /usr/local/share/snmp/snmpd.

Then i ran

snmpwalk -v 2c -c public localhost system
Timeout: No Response from localhost

But I am getting response for

snmpwalk -v 2c -c public 192.168.10.1 system
SNMPv2-MIB::sysDescr.0 = STRING: 110ST3
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.1.2.3.4.5
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (6983000) 19:23:50.00
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: Beetel
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 14

I am not able to identify what is missing in the snmpd.conf file that gives no response from the localhost. I would like to get suggestions on this.

Thank You


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Kenneth Hung | 3 Sep 08:52 2014
Picon

MIB for Dummies (MFD) executable does not respond to snmpwalk/get

Hi,

I'm new to Linux. Following the SNMP MFD example (http://www.net-snmp.org/wiki/index.php/MFD:ifTable:Testing), I'm writing an SNMP extension agent using the MIB for Dummies (http://www.net-snmp.org/wiki/index.php/MIB_for_Dummies) config file (mib2c.mfd.conf). 

I successfully created my executable, adeSensorsTable, using my own adeSensorsTable.MIB (mib2c util auto-generated the C source code from adeSensorsTable.MIB which I compiled into an executable). Following the MFD:ifTable:Testing example, I then ran my executable:

./adeSensorsTable -f -L -DadeSensorsTable -M localhost:1161
It returns:
No log handling enabled - turning on stderr logging
registered debug token adeSensorsTable, 1
adeSensorsTable:init_adeSensorsTable: Registering adeSensorsTable as a mibs-for-dummies table.

On a separate terminal I ran:
snmpwalk -v 1 -c public localhost:1161
Timeout: No Response from localhost:1161

adeSensorsTable terminal would return:
Connection from UDP: [127.0.0.1]:52684->[127.0.0.1]
Connection from UDP: [127.0.0.1]:52684->[127.0.0.1]
Connection from UDP: [127.0.0.1]:52684->[127.0.0.1]
Connection from UDP: [127.0.0.1]:52684->[127.0.0.1]
Connection from UDP: [127.0.0.1]:52684->[127.0.0.1]
Connection from UDP: [127.0.0.1]:52684->[127.0.0.1]

If I ran "snmpwalk -v 1 -c public localhost" I'd get pages of responses back. This is just the first few lines of the responses:

SNMPv2-MIB::sysDescr.0 = STRING: Linux ken-Extensa-5620 3.2.0-67-generic #101-Ubuntu SMP Tue Jul 15 17:45:51 UTC 2014 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (21084) 0:03:30.84
SNMPv2-MIB::sysContact.0 = STRING: G. S. Marzot <gmarzot <at> marzot.net>
SNMPv2-MIB::sysName.0 = STRING: ken-Extensa-5620
SNMPv2-MIB::sysLocation.0 = STRING: Unknown
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01

I tried to use snmpget to reach one of my extension agent objects using snmptranslate to find my object OID:

snmptranslate -On xxxxx-MIB::adeSensorsTable.aDESensorsEntry.vrms
and got:

.1.3.6.1.4.1.43905.1.1.1.1.2

then I ran:

snmpget -v 1 -c public localhost:1161 .1.3.6.1.4.1.43905.1.1.1.1.2

I'd get the same response:

Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]

from adeSensorsTable executable.

I'm not sure what I'm missing here.  I'd appreciate if someone could provide some pointers to my timeout issue. Thank you in advance!

-Ken
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Gmane