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
Mohd Azamhar Mohd Tawil | 22 Aug 08:44 2014
Picon

Agent Simulator

Hi,

I am new here. Try to figure out how to make agent simulator from custom OID. From the search I am doing at this mailing I am just came through using override directive.

I am using centos 6.5.. this is what I been doing.

1) Edit /etc/snmpd/snmpd.conf to add this at last file
override 1.3.6.1.4.1.22835.1.1.1.0 integer '0'
override 1.3.6.1.4.1.22835.1.1.2.0 integer '1'
override 1.3.6.1.4.1.22835.1.1.3.0 integer '0'
override 1.3.6.1.4.1.22835.1.1.4.0 integer '1'
override 1.3.6.1.4.1.22835.1.1.5.0 integer '1'

2) restart snmpd

3) run this
snmpwalk -On -v2c -c public localhost 1.3.6.1.4.1.22835.1.1.2

Please guide me. Thank
------------------------------------------------------------------------------
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
Alex | 19 Aug 02:20 2014
Picon

How to set BITS data type?

The MIB OID object have data type of BITS:

Composed Type: Bits
Base Type: BITS
Access: read-write
Kind: Scalar
SMI Type: OBJECT-TYPE
Value List:
docsis (0)
emta (1)
cpe (2)

    DEFVAL { '00'h }
    ::= { saCmMtaCliAccess 2 }

I want set value 2 (cpe). I tried to set value use

snmpset -v2c -c public 192.168.100.1  [object_OID] b 2

Got error:
"Error in packet.
Reason: wrongValue (The set value is illegal or unsupported in some way)"

What is the proper format to set BITS data type?

------------------------------------------------------------------------------
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

Sandy Alden | 19 Aug 16:08 2014
Picon

saving cloned usmUsers to static config file automatically

Hi.  I am trying to find a way to save new (cloned) usmUsers to the static configuration file automatically.

I clone a new user using MG-Soft and am able to walk the usmUserTable and see the new user.  Then, if I reload
snmpd, the new user then appears in the dynamic configuration file (/var/net-snmp/snmpd.conf).

However, if I reboot the PC and then start up snmpd (snmpd start), I only have the original usmUser in the
dynamic file.  Basically, I start from scratch.

I realize I can add new users by editing the static configuration file itself.  However, in my project, I need
to have some way to do all this automatically when a new user is added as no human will be involved.

I have scoured many web pages on this subject to no avail.

Any suggestions?

Thanks so much,

Sandy

------------------------------------------------------------------------------
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

rahul choubey | 5 Sep 07:20 2014
Picon

how to respond back for snmptable request

Hi Team,

I have been able to implement snmpget requests in perl using NetSNMP::agent. It is working fine. However i am a bit confused about how to respond back for snmptable requests i.e. how to implement the function that will be registered with appropriate OID in  NetSNMP::agent.

Any reference to working code will be highly appreciated.

Thanks in advance.

Regards
Rahul Kumar
------------------------------------------------------------------------------
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
godstone | 30 Aug 14:35 2014

A question about key derivation

HI

I have a question about the KDF(key derivation function).

In my code i am going to derive my key using function generate_Ku. As far as i know, to derive a key, the 'salt' and 'iterations' are nessesary.
(http://en.wikipedia.org/wiki/Key_derivation_function)
so would you please show me where are the salt and iterations in source code of netsnmp, and what are the values if using md5 and password 'pr3fefreHarARutrApHU'

Thx a lot

------------------------------------------------------------------------------
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
Gary Dunlap | 3 Sep 17:10 2014

SNMPv3 Trap Question

Hi.  I’m having trouble with some of the SNMPv3 traps sent by snmpd being rejected, and I think it’s because of the SNMPv3 replay protection mechanism. 

 

It looks like when some event causes a reconfigure of snmpd, then maybe registered callbacks are run.  One of these may be engineBoots_conf().  It gets run, incrementing the engineBoots count.  But the snmpEngineTime value is not reset, so the trap receiver may think subsequent  traps are outside the 150 second window.

 

An example is this:

 

snmpv3 1 engineBoots: 40, traced from within engineBoots_conf()

snmpv3 engineBoots: 41 after increment

snmpv3 post_config engineBoots: 41 time 3

snmpv3_store engineBoots: 41

NET-SNMP version 5.6.1

IfIndex of an interface changed. Such interfaces will appear multiple times in IF-MIB.

Reconfiguring daemon – message logged, involves receive(), SnmpdReconfig()

 

NET-SNMP version 5.6.1 restarted

snmpv3 1 engineBoots: 41

snmpv3 engineBoots: 42

snmpv3 post_config engineBoots: 42 time 376

 

 

Has anyone seen issues like this, or know if it’s been addressed in other releases?  Do practical trap receivers just ignore the replay protection window?  I could add code to reset the engineTime in engineBoots_conf() but would like to use a more general solution if possible.

 

Thanks—I’d appreciate any insight to this.  I’m running version 5.6.1, but the code in this area looks the same as for 5.7.2.1.

 

Gary

 

 

------------------------------------------------------------------------------
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