Re: v5.8 - Error opening specified endpoint ""

2020-03-06 Thread Simon Chamlian
when I run your suggestion, I get: Error opening specified endpoint "udp:0.0.0.0:161" On Fri, Mar 6, 2020 at 3:13 PM Larry Hayes wrote: > Have you tried specifying the listening address, I know it's optional > but... > > snmpd -c /home/user/my_snmpd.conf -Lf /tmp/snmpd_log.txt

Re: v5.8 - Error opening specified endpoint ""

2020-03-06 Thread Larry Hayes
Have you tried specifying the listening address, I know it's optional but... snmpd -c /home/user/my_snmpd.conf -Lf /tmp/snmpd_log.txt udp:0.0.0.0:161 On Thu, Mar 5, 2020 at 11:53 AM Simon Chamlian wrote: > Hi, > > When I start snmpd agent, it exists with an error message: >

v5.8 - Error opening specified endpoint ""

2020-03-05 Thread Simon Chamlian
Hi, When I start snmpd agent, it exists with an error message: Error opening specified endpoint "" I start as root with: snmpd -c /home/user/my_snmpd.conf -Lf /tmp/snmpd_log.txt The config file my_snmpd.conf is very simple: createUser Simon MD5 "Simon-pass" rwuser

Help on using clientaddr for Ipv6 address

2020-02-29 Thread chandrasekharreddy c
Hi all, I am using net-snmp 5.7.2 in my project .I want to use trap source interface feature in my project. I enabled clientaddr by reading some posts in our community. It’s working fine for only Ip address interface. It’s not working for Ipv6 address interfaces. I gone through the net-snmp

Snmpd not answering if an unknown context is used in query from client

2020-02-25 Thread daniele
Hello everybody, I'm using NET-SNMP 5.7.3 with SSL support enabled and I can properly configure the daemon to run SNMPV3 with authNoPriv users. At run time my subagent will register OIDs with a configurable context name. Everything is working perfectly. However I can see a minor but unexpected

hrSWRunName problem

2020-02-21 Thread Ed Greenberg
I have five web servers, centos7 and net-snmp, 1:5.7.2-43.el7. I'm also running fail2ban. On the first four web servers, fail2ban is at 0.10.4-1.el7, but on more recently built web5, fail2ban is at 0.10.5-2.el7. This morning, nagios reported that it couldn't find the fail2ban process on web5,

Minimal C agent application that is able to read MIB values from config file.

2020-02-14 Thread José Fernández via Net-snmp-users
I am starting to know net-snmp and I am going to use it to develop an agent in C languaje. I think that a good starting point is an minimal C program (or agent) that is able to read MIB values from a config file. On the net-snmp web page I have not been able to find this example. Where could

Real World Setup Question

2020-01-23 Thread Larry Hayes
Hello, In the real world when an SNMP Manager setups the USM users, will they typically define the same user name across multiple systems with the same authorization and privacy values? For GETs/Traps, the authoritative engine id is that of the Agent. Any Agent created user will have GET and

Re: Modifying same-table else-row, and other-data on row insert...

2020-01-16 Thread Paul Herring
It's been over a month, and I realise Christmas and New Year have been in the middle, but I'm just wondering if anyone had any thoughts on my problem here... It's less important now, since I've put a nasty, nasty, hack around it; by putting the necessary work I wanted doing in the script that

VACM and TSM Configuration

2020-01-15 Thread Larry Hayes
Hello, I have been playing around with TSM configuration and was wondering if it is possible to restrict what OIDs a TSM user can access? What I tried has failed, it seems like the only VACM parameter that is consumed are the rwuser or rouser. Which gives it the view of _all_. Nothing under

Re: net-snmp 5.8 password encryption

2020-01-07 Thread Bill Fenner
Uma, Perhaps the confusion is because there are two different files named snmpd.conf. Where they are located depends on the system configuration; mine are in /etc/snmp/snmpd.conf and /var/lib/net-snmp/snmpd.conf . If you put the createUser command in /etc/snmp/snmpd.conf, it will remain there,

Re: Behavior of snmptrapd and snmpd when using certificates (TSM, DTLS)

2020-01-07 Thread Anders Wallin
Hi Bart, this is a good start, but we also need to add code for the newer version of TLS if we should apply to the RFC's. For the moment I don't have any time to work on it. The DTLS/TLS stuff also have some major bugs/design issues that needs to be fixed. Regards Anders Wallin On Sat, Nov

Re: net-snmp 5.8 password encryption

2020-01-07 Thread Uma Mohandoss via Net-snmp-users
Michael/Team, Can you please provide more information on the below, as I am newbie to snmp and net-snmp. As you mentioned below I removed the user from snmpd.conf, after that snmpwalk fails with following error. debugshell# snmpwalk -v3 -u u1 -a sha -A watchThis123 -l AuthPriv -x AES -X

Re: net-snmp 5.8 password encryption

2020-01-06 Thread Uma Mohandoss via Net-snmp-users
Hi Michael/team, A gentle reminder for help. Thanks, Uma Mohandoss On Monday, 23 December, 2019, 11:27:34 PM IST, Uma Mohandoss wrote: Michael, Thanks for the information. Can you please give me right snmpusm cloneFrom command. Unable to know clearly what are the common

[no subject]

2019-12-31 Thread Fatemeh Mehdizadeh
I'm using NET-SNMP version 5.7.3 onFreebsd 12.1. I want to chane enginID with snmpset command. *snmpd.conf* *rwcommunity private* * snmpset -v 2c -c private localhost e x 80020109840301* *The error is**:* *Error in packet.Reason: notWritable (That object does not support

Re: Determine snmpd status

2019-12-24 Thread Paul Herring
On Sun, Dec 22, 2019 at 2:56 PM Raz Moshe wrote: > Hello, > > Assuming I have no community string configured (and so cannot use > 'snmpwalk' and other similar binaries), when I turn the snmp daemon on, is > there a way to determine it has done initialization and ready for queries? > > I found

Re: net-snmp 5.8 password encryption

2019-12-23 Thread Uma Mohandoss via Net-snmp-users
Michael, Thanks for the information. Can you please give me right snmpusm cloneFrom command. Unable to know clearly what are the common options in the snmpusm syntax. Tried following and got below error. snmpusm -v 3 -a sha -l AuthPriv -x AES localhost cloneFrom USER u1 -X watchThis123

Determine snmpd status

2019-12-22 Thread Raz Moshe
Hello, Assuming I have no community string configured (and so cannot use 'snmpwalk' and other similar binaries), when I turn the snmp daemon on, is there a way to determine it has done initialization and ready for queries? I found that checking if the log file exists gives a good indication (if

tech review wanted on snmp book

2019-12-20 Thread Michael W. Lucas
Hi, I've written a short book on SNMP, and am looking for technical reviewers. Details at: https://mwl.io/archives/4928 If you're interested, please read the blog post and follow those directions. It uses net-snmp as a reference implementation to teach SNMP, but it's not limited to net-snmp.

Re: net-snmp 5.8 password encryption

2019-12-20 Thread Michael W. Lucas
The encrypted user is placed in the persistent data file. You can remove this line from snmpd.conf after the user is created, and use snmpusm to clone it for new accounts. ==ml On Fri, Dec 20, 2019 at 05:31:09AM +, Uma Mohandoss via Net-snmp-users wrote: > Hi, > > Net-snmp 5.8, user

net-snmp 5.8 password encryption

2019-12-19 Thread Uma Mohandoss via Net-snmp-users
Hi, Net-snmp 5.8, user creation does not encrypt password. Password stored in plain text under /etc/snmp/snmpd.conf. Eg. (snippet from snmpd.conf) createUseru1 SHA watchThis123 AES watchThis123 group COMMON usm u1 Need help/patch to encrypt password. Thanks, Uma Mohandoss

Re: net-snmp and openssl

2019-12-17 Thread Bart Van Assche
On 2019-12-17 07:55, Colin Anderson wrote: > I have net-snmp 5.5 and openssl 1_1_1d (light version) installed on my > Windows 10 machine.  I want to be able to send get/walk commands into an > end node on our network for testing purposes. > > I’ve been trying to follow the wiki tutorial at >

net-snmp and openssl

2019-12-17 Thread Colin Anderson
Hi I have net-snmp 5.5 and openssl 1_1_1d (light version) installed on my Windows 10 machine. I want to be able to send get/walk commands into an end node on our network for testing purposes. I've been trying to follow the wiki tutorial at

Net-snmp Proxy to the same device

2019-12-13 Thread vijayasanjana reddy
Hi , I using net-snmp proxy and is communicating to the same device using different user community. I still want to keep my context as default Context "" My Request would be if I can send the SNMP PDU out from the Proxy to the other device (In this case the localhost IP) using different UDP src

Re: Agentx timeout no response

2019-12-12 Thread Philippe DENIS via Net-snmp-users
Hi again, My problem was linked to the Udp port which is not aligned with the Configuration file. B/R Phil > Le 10 déc. 2019 à 07:31, Philippe DENIS a écrit : > > Hi again, > > By modifying the Udp port, I’ve succeeded to get an answer from snmpget -v > 2c -c MyComRO

Modifying same-table else-row, and other-data on row insert...

2019-12-12 Thread Paul Herring
TLDR: Programmatically... 1) How can I delete other 'unrelated' rows from a table when adding a row to that same table. 2) How can I read/write data elsewhere? == Setup: I have a table with details of 'alarms' (think alerts) - one per line - with various data associated with each alarm (id,

Re: Agentx timeout no response

2019-12-09 Thread Philippe DENIS via Net-snmp-users
Hi again, By modifying the Udp port, I’ve succeeded to get an answer from snmpget -v 2c -c MyComRO system.sysLocation.0 But when I’m sending a request linked to my MIB. I still have the timeout. In order to know what part is not working correctly I typed the tcpdump -vv -i lo and the

Agentx timeout no response

2019-12-09 Thread Philippe DENIS via Net-snmp-users
Hello all, I've a problem to communicate with my agentx. I've set the MIBS environment variable by typing 'export MIBS=ALL' First, I write a small mib containing 2 objects (counter1 and counters2). Thanks to the mib2c tool, i've generated the C code and update the data needed. I follow all the

problem in getting snmp traps

2019-12-05 Thread Fatemeh Mehdizadeh
I'm on Freebsd 12. I installed NET-SNMP version 5.7.3 on my FRR router. The problem is in sending traps from router. For example the link up/down does not sending trap. The config files are: *snmpd.conf* *view V included .1view V included .1.3.6.1.2.1.1view V included

Send trap with logmatch and monitor

2019-12-04 Thread Armando Mártires
Hi, I'm trying to have my net-snmp send a trap when a word is found on a log file. my snmpd.conf file is like this: --- com2sec    accessUser    192.168.1.0/24    private group     accessGroup    v2c    accessUser view     

Re: Agent and shared memory

2019-12-04 Thread Philippe DENIS via Net-snmp-users
Hi, Do you have any answer or any clue ? Have you already experienced a similar use-case ? Phil > Le 2 déc. 2019 à 20:53, Philippe DENIS a écrit : > > Hello all, > > I’ve created a MIB which contains 2 object Counter1 and Counter2. > > Thanks to the mib2c tool, I’ve generated the

Issue trying to subscribe to mailing list

2019-12-04 Thread Scott L Fields
When I sent in a request to subscribe to this mailing list, it sent a confirmation mail, but there was no link in the mail to confirm my request. Not sure how to resolve this, or if the link was sent and I just can't locate it in the message. ___

How to set msgMaxSize

2019-12-04 Thread Chinnapareddygari, Chandrasekharreddy
Hi All, Getting time out message for SNMP Get operation in silver creek tool for msgMaxSize as 484 and 500 only I want to send a SNMPv3 message with msgMaxSize as 484 and 500. I want to reproduce this issue without tool. How can I set the msgMaxSize ? Please help me on this. Thanks,

No trap with link down

2019-12-04 Thread vadud3
I am running snmptrapd like below and took one of the interface down on my VM. But I do not see any trap. What gives? # snmptrapd -Lf /var/log/snmp-traps --disableAuthorization=yes -m +ALL There is nothing on the /var/log/snmp-traps showing any trap If I run a test trap, I do see it is showing

snmptrapd output to traphandler does not contain datatype info.

2019-12-03 Thread Ben Kinsella
I raised this issue on GitHub before I realised that this mailing list existed: https://github.com/net-snmp/net-snmp/issues/47 I am using a traphandle directive to send the output of snmptrapd to an external Python program. The Python script creates a JSON object and publishes on MQTT, and

Agent and shared memory

2019-12-02 Thread Philippe DENIS via Net-snmp-users
Hello all, I’ve created a MIB which contains 2 object Counter1 and Counter2. Thanks to the mib2c tool, I’ve generated the associated C skeleton and configure, compile and install. I succeeded to retrieve information thanks to snmpget command. Now, I want to create an agent to poll a shared

Re: Adding timestamp in snmpd.log

2019-12-02 Thread Anders Wallin
On Sun, Dec 1, 2019 at 4:38 AM Krishna Vivek Vitta < krishna.vivekvi...@citrix.com> wrote: > Thank you Anders for swift response. > > > > "[snmp] logTimestamp 1" > > > > What does [snmp] indicate in above line ? Is it compulsory ? > Yes it's compulsory. This is an option that's not snmpd specific

Notification trap type problem

2019-12-01 Thread Klemen Sladic
Hi. I have a question about notification (trap) type since I am getting "Wrong Type (should be INTEGER)". For example, let's say this is in my MIB: Object definition: myTrigger OBJECT-TYPE SYNTAX INTEGER { down1(10), up1(11), down2(20), up2(21) } MAX-ACCESS read-write STATUS

RE: Adding timestamp in snmpd.log

2019-11-30 Thread Krishna Vivek Vitta
Thank you Anders for swift response. "[snmp] logTimestamp 1" What does [snmp] indicate in above line ? Is it compulsory ? Our application frequently alters the contents of snmpd.conf in including trap destintions and managers. This may lead the entry “logTimestamp 1” being missed out in

Re: Behavior of snmptrapd and snmpd when using certificates (TSM, DTLS)

2019-11-29 Thread Bart Van Assche
Hi Anders and Larry, How about making it possible to tell Net-SNMP to use a more recent version of TLS, e.g. as follows: diff --git a/include/net-snmp/library/default_store.h b/include/net-snmp/library/default_store.h index

Re: Adding timestamp in snmpd.log

2019-11-29 Thread Anders Wallin
add "[snmp] logTimestamp 1" in snmpd.conf Regards Anders Wallin On Fri, Nov 29, 2019 at 3:57 PM Krishna Vivek Vitta < krishna.vivekvi...@citrix.com> wrote: > Hi team, > > > > We have a snmpd agent running in a Freebsd box. > > > > The following command is being used to run snmpd: > > > >

Adding timestamp in snmpd.log

2019-11-29 Thread Krishna Vivek Vitta
Hi team, We have a snmpd agent running in a Freebsd box. The following command is being used to run snmpd: "Snmpd -c snmpd.conf -Lf snmpd.log -p snmpd.pid" Is there any option to add timestamp being logged for every trace in snmpd.log ? Kindly assist Thank you Krishna Vivek

Re: running a script with a dynamic parameter

2019-11-29 Thread drovalev
Hello. All the same, can I pass the parameter to the script through the SNMP? This script is located on a managed system (snmp agent). *Yes or no?* If yes, then how? It is not realistic to write all scripts with all parameters to the snmpd.conf file! Thank. Roman. 27.11.2019 9:04,

Re: Behavior of snmptrapd and snmpd when using certificates (TSM, DTLS)

2019-11-27 Thread Anders Wallin
Hi Larry, I see the same problem! You should think more then twice before using TLS/DTLS. The code is full of bugs and design issues (like sending traps before checking hostnames etc) and it's using deprecated version of TLS. Regards Anders Wallin On Wed, Nov 27, 2019 at 9:33 PM Larry Hayes

Re: Behavior of snmptrapd and snmpd when using certificates (TSM, DTLS)

2019-11-27 Thread Larry Hayes
It is even worse with TLS. When the snmptrapd is restarted without restarting the snmpd: kill the snmptrapd: >From the snmpd logs: snmpd detects the connection close. Nov 27 14:23:51 apcon-ubuntu snmpd[22569]: tlstcp: Nov 27 14:23:51 apcon-ubuntu snmpd[22569]: remote side closed connection

Re: running a script with a dynamic parameter

2019-11-26 Thread Дровалев Роман
Hello. 26.11.2019 22:44, Larry Hayes пишет: Have you tried this in your snmpd.conf file: exec [MIBOID] NAME PROG ARGS OR sh [MIBOID] NAME PROG ARGS        exec and sh extensions can only be configured via the snmpd.conf file.  They cannot be set up via SNMP SET requests. If you look in

Re: running a script with a dynamic parameter

2019-11-26 Thread Larry Hayes
Have you tried this in your snmpd.conf file: exec [MIBOID] NAME PROG ARGS OR sh [MIBOID] NAME PROG ARGS exec and sh extensions can only be configured via the snmpd.conf file. They cannot be set up via SNMP SET requests. If you look in the snmpd.conf man pages, you will find more

Re: running a script with a dynamic parameter

2019-11-25 Thread Дровалев Роман
Hello. Thanks for the quick response. I understand the script. How to implement this through the Net-SNMP? 1. I am editing a file /etc/snmp/snmpd.conf /*pass .1.3.6.1.4.1.2021.8.4 test2  /usr/share/snmp/test2.sh*/ # cat test2.sh/* #!/bin/sh /bin/cat $1 >> /tmp/test2.new */ # /*snmpset -v3 -a

Re: running a script with a dynamic parameter

2019-11-25 Thread Linux
Is this what you are looking for? This would the content of your script "program". #!/bin/sh param=$1 /*snmpset -v3 -a SHA -A STrP@SSWRD -x AES -X STr0ngP@SSWRD -l authPriv -u snmpadmin host_ip .1.4.6.1.3.35514.4.1 s $param*/ - Ajay/**/Sharma /* */ On 11/25/19 4:35 AM, Дровалев Роман

running a script with a dynamic parameter

2019-11-25 Thread Дровалев Роман
Hello. Tell me please. Is it possible with Net-SNMP to do the following? I send the command to the agent: /*snmpset -v3 -a SHA -A STrP@SSWRD -x AES -X STr0ngP@SSWRD -l authPriv -u snmpadmin host_ip .1.4.6.1.3.35514.4.1 s "parameter #1" */ for this OID, the script "program" is executed on

Behavior of snmptrapd and snmpd when using certificates (TSM, DTLS)

2019-11-20 Thread Larry Hayes
Hello, I am using net-snmp v5.8 r0. I think I have successfully configured an snmpd server to generate V3 Traps/Informs using TSM with certificates and have an snmptrapd receive those V3 Traps/Informs. As I can see the Trap/Infom data dumped to the window snmptrapd is running. My issue is, when

Re: No trap with link down

2019-11-18 Thread vadud3
Still looking for some suggestions On Fri, Nov 15, 2019 at 3:40 PM wrote: > I am running snmptrapd like below and took one of the interface down on my > VM. But I do not see any trap. What gives? > > # snmptrapd -Lf /var/log/snmp-traps --disableAuthorization=yes -m +ALL > > There is nothing on

RE: Crash at Net-snmp due to corrupted double-linked list

2019-11-18 Thread Kiran Kumar Pamula -X (kpamula - HCL TECHNOLOGIES LIMITED at Cisco) via Net-snmp-users
Hi Experts, Could you please shed some light on this. Our Dev engineer had analyzed the cores files using the unstripped snmpd binary. >From the core analysis, we can see both the crashes happened due to memory >corruption in snmp. Attached the core backtrace logs for reference. Could you

Re: How to add SNMP-TSM-MIB to snmpd

2019-11-15 Thread Larry Hayes
I got it working. I was correct in that it was a build/configuration issue. I had to add this to the configuration options at build time: '--with-mib-modules=tsm-mib' After that the snmpd started to respond with data: larryh@apcon-ubuntu:~/.../tls$ snmpget -m +SNMP-TSM-MIB -v

snmptranslate: Print Filename MIB is Loaded From

2019-11-15 Thread Joe Clark
I would like to be able to print out the full path to the MIB file from which a particular MIB/MIB item is loaded. Normally, the output of snmptranslate just prints the MIB name. Consider if two versions of a MIB file are (inadvertently) loaded at two different locations in the MIB search path.

Re: How to add SNMP-TSM-MIB to snmpd

2019-11-15 Thread Larry Hayes
Thanks for the suggestion, I am assuming you meant that the snmpget needed a -v 3 to do version 3 snmp. That did not work and I tried with USM and TSM models: bash-4.3# snmpget -v 3 -u v3admin -a md5 -A hello1234 -l authNoPriv 127.0.0.1 1.3.6.1.2.1.190.1.2.1.0

Re: How to add SNMP-TSM-MIB to snmpd

2019-11-14 Thread Anders Wallin
Hi Larry, you need to use "-v 3", there is no TLS support in "2c" Regards Anders Wallin On Thu, Nov 14, 2019 at 9:18 PM Larry Hayes wrote: > I am using 5.8.r0 net-snmp. > > I have build the net-snmp library and snmpd with the flags for TSM: > > > *--with-security-modules=tsm

How to add SNMP-TSM-MIB to snmpd

2019-11-14 Thread Larry Hayes
I am using 5.8.r0 net-snmp. I have build the net-snmp library and snmpd with the flags for TSM: *--with-security-modules=tsm --with-transports=TLSTCP,DTLSUDP* *and--with-mibs=SNMP-TSM-MIB:* I can get the snmpd daemon running with self signed cert access working. Installed the TSM Mib in the

RE: Crash at Net-snmp due to corrupted double-linked list

2019-11-12 Thread Kiran Kumar Pamula -X (kpamula - HCL TECHNOLOGIES LIMITED at Cisco) via Net-snmp-users
Hi Net-snmp team, Our Dev engineer had analyzed the cores files using the unstripped snmpd binary. >From the core analysis, we can see both the crashes happened due to memory >corruption in snmp. Attached the core backtrace logs for reference. Could you please help in this regard. CORE1:

Help with TSM configuration setup

2019-11-12 Thread Larry Hayes
Hello, I am using net-snmp 5.8 and trying to configure TSM. I worked through the examples and got them working. But I am confused about the snmpget example command: snmpget -v 3 --defSecurityModel=tsm -u joecool -l authPriv \ -T

Crash at Net-snmp due to corrupted double-linked list

2019-11-12 Thread Kiran Kumar Pamula -X (kpamula - HCL TECHNOLOGIES LIMITED at Cisco) via Net-snmp-users
Hi Net-snmp team, We are using Net-snmp 5.7.3 in our product and our customer has reported the below crash recently, although it was never hit in our internal tests. Could you please confirm if this is any known issue and if a patch is available for the same. [New LWP 31070] [Thread debugging

snmp_save_persistent()

2019-11-11 Thread Mark Ellison
Hi, I want to update a line in an application configuration file during the commit phase of an SNMP SET operation. I am noticing the read_config_store appends a new line to the configuration file when I want to replace a line. This config file lives in the net-snmp persistent directory. I've

RE: V3 inform user requires engineID in persistent snmpd.conf?

2019-10-29 Thread Atkins, Brian
Also, a user configured with a remote engineID in order to support V3 inform messages, as described below, would never be able to perform other SNMP operations (GET, GET-NEXT, SET) because the authoritative engineID would not match the target, correct? From: Atkins, Brian Sent: Monday, October

Re: usm_parse_create_usmUser recently unexported -- alternative?

2019-10-28 Thread Bart Van Assche
On 2019-10-28 13:30, Joe Clark wrote: > I am attempting to update our snmp infrastructure from 5.7.x to the > current master.  I see that the function usm_parse_create_usmUser has > recently been unexported. We have a call to that function in our code.  > Can you provide background on why this

V3 inform user requires engineID in persistent snmpd.conf?

2019-10-28 Thread Atkins, Brian
I'm checking my understanding of how to configure a trapsess for V3 informs in snmpd.conf. I want to avoid putting the authentication and encryption passwords in the config file, so I'm relying on USM user lookup, such as: trapsess -v3 -Ci -l authPriv -u user1 with "user1" being defined using

usm_parse_create_usmUser recently unexported -- alternative?

2019-10-28 Thread Joe Clark
I am attempting to update our snmp infrastructure from 5.7.x to the current master. I see that the function usm_parse_create_usmUser has recently been unexported. We have a call to that function in our code. Can you provide background on why this function was unexported, and give some advice on

snmpget and snmpbulkget return different OIDs

2019-10-28 Thread Michael W. Lucas
Am I holding this wrong, or is it worth a bug report? Verified on FreeBSD and CentOS. $ snmpget localhost sysUpTimeInstance DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (320554) 0:53:25.54 $ snmpbulkget -Cn1 localhost sysUpTimeInstance SNMPv2-MIB::sysContact.0 = STRING:

not taking snmp version from .snmp/host/host.conf

2019-10-21 Thread Michael W. Lucas
Hi, Running net-snmp 5.7.3 on FreeBSD 12.0, and 5.7.2 on CentOS 7.7.1908. I can set SNMPv3 auth information in $HOME/.snmp/hostname.conf just fine. If I create a per-host file to tell snmpwalk to use v2 or v2c, however, it insists on using v3 anyway. I can set snmp.conf to use v2c, and have

Fwd: does netsnmp support IPv6 varbind

2019-10-21 Thread Surya Mishra
*Question : Does netsnmp support IPv6 varbind as type IPAdress?* 1- *I "get bad notation" error when I am trying to send trap having IPv6 address with type IPAdress(a) as highlighted(in red italics underlined)* [root@IWFVM00141 ~]# snmptrap -d -v 2c -c public 16.166.98.198:5163 123

Using one AgentX sub-agent with multiple master snmpd daemons

2019-10-17 Thread Babis Chalios
Hello, I am in the process of writing my own AgentX sub-agent for serving some MIB. I was wondering whether it is possible to have the same sub-agent connect to more than one master agents. I have been looking around both in documentation (I couldn't find a relative example) and the source

Using one AgentX sub-agent with multiple master snmpd daemons

2019-10-17 Thread Babis Chalios
Hello, I am in the process of writing my own AgentX sub-agent for serving some MIB. I was wondering whether it is possible to have the same sub-agent connect to more than one master agents. I have been looking around both in documentation (I couldn't find a relative example) and the source

Fwd: sending traps and perl plugin

2019-10-10 Thread Александр Малюков
Good day! I use snmpd with perl plugin. Plugin code - http://paste.debian.net/1105734 snmpd config - http://paste.debian.net/1105733 snmpwalk works fine. But i try to add monitor (sending traps) feature. and add monitor section: monitor -S -I -r 20 toHot 1.3.6.1.4.1.9.2.1.1 > 15 In

creating users with different security levels

2019-10-09 Thread Michael W. Lucas
Hi, I can create an initial SNMPv3 user with authNoPriv and MD5, using net-snmp-create-v3-user, and then clone it with snmpusm. No problem, all straight from the docs. Now I need a user with SHA-AES and authPriv, on the same agent. Per snmpusm(1), I assume I would create a template user, and

snmpset memory issue

2019-10-07 Thread Cathal McGlone
hi there hi there I have been using snmpset in a Win10 command line to set variables in example table netSnmpIETFWGTable and this works perfectly as follows: C:\usr\bin>snmpset -v 2c -c nsCommStrRW 127.1.1.1 NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1.\"wg1\" s jblog1

Re: Support for SNMP source trap address

2019-09-30 Thread Bill Fenner
You should be able to cherry-pick git commit 06a02b7c708c1ea2bf67e59c333001e8ce128dff . Or if you are using -s (not clientaddr), you may be able to specify ":0" at the end of the address. If ":0" does not work you can pick a port number, ":38471", but then of course you lose the ability of the

Re: Support for SNMP source trap address

2019-09-29 Thread Nitin Samuel
Thanks again Bill... But what do you suggest as a workaround until 5.8.1 is out ? Is there a patch that I can take as a fix ? Regards, Nitin On Sun, Sep 29, 2019 at 8:58 PM Bill Fenner wrote: > On Fri, Sep 27, 2019 at 2:28 PM Nitin Samuel wrote: > >> Thanks Bill, >> Yet another

Re: Support for SNMP source trap address

2019-09-29 Thread Bill Fenner
On Fri, Sep 27, 2019 at 2:28 PM Nitin Samuel wrote: > Thanks Bill, > Yet another query...sorry to bother you again. > Why am I seeing traps from port 161 on 5.8 version, whereas 5.7.3 > traps are from ephemeral ports ? > This is a bug in 5.8. It will be fixed in 5.8.1. Bill

Re: Support for SNMP source trap address

2019-09-27 Thread Nitin Samuel
Thanks Bill, Yet another query...sorry to bother you again. Why am I seeing traps from port 161 on 5.8 version, whereas 5.7.3 traps are from ephemeral ports ? 13:20:20.565905 IP 192.168.0.206.161 > 192.168.0.60.162: V2Trap(131) .1.3.6.1.2.1.1.3.0=10278

Re: Support for SNMP source trap address

2019-09-27 Thread Bill Fenner
Yes, the clientaddr is used if a given entry does not have an -s option. Bill On Fri, Sep 27, 2019 at 2:40 AM Nitin Samuel wrote: > Hi Bill, > Would you know if the ' [snmp] clientaddr ' token will continue > to be honored in 5.8, though some trapsess/trap2sink entries could also >

Re: Support for SNMP source trap address

2019-09-27 Thread Nitin Samuel
Hi Bill, Would you know if the ' [snmp] clientaddr ' token will continue to be honored in 5.8, though some trapsess/trap2sink entries could also have a ' -s <>' option ? Thanks, NitinVS On Sun, Sep 8, 2019 at 10:45 PM Nitin Samuel wrote: > Thanks Bill. > > So in 5.8, if I have [snmp]

Re: Some general questions on netsnmp_logging_restart

2019-09-17 Thread Bill Fenner
On Fri, Sep 13, 2019 at 1:42 AM Krishna Vivek Vitta < krishna.vivekvi...@citrix.com> wrote: > Hi Bill, > > > > Can we differentiate if snmpd has been subjected to coldStart or warmStart > ? Are there ways to check if snmpd.conf has been reloaded ? > The reason it's not done now is because the

agent_check_process(0)

2019-09-16 Thread Deepak Sachan
I am using net-snmp 5.7. Using Agent X. I have written a code like while(1){ - - - if(flag) agent_check_process(0); } Whenever flag changes 0 to 1 it reconnect Agent X every time and program has to wait 10 to15 seconds until it reconnect and process pending requests. 1. Is here any way not to

Re: missing information in logmatch trap data

2019-09-13 Thread Thommandra Gowtham
Hi everyone, Can I please get a response on the query? Regards, Gowtham On Tue, Sep 10, 2019, 21:20 Thommandra Gowtham wrote: > Hi > > I am using net-snmp 5.7.3 on Ubuntu and have a few questions regarding > logmatch trap > > - How can we get more information in a logmatch trap other than the

RE: Some general questions on netsnmp_logging_restart

2019-09-12 Thread Krishna Vivek Vitta
Hi Bill, Can we differentiate if snmpd has been subjected to coldStart or warmStart ? Are there ways to check if snmpd.conf has been reloaded ? The frequency of the trap is daily once during the same time. Also as Kiran mentioned, Is there any impact by commenting the code to raise the trap ?

Re: Some general questions on netsnmp_logging_restart

2019-09-11 Thread Bill Fenner
On Tue, Sep 10, 2019 at 1:06 AM Kiran Kumar Pamula -X (kpamula - HCL TECHNOLOGIES LIMITED at Cisco) via Net-snmp-users < net-snmp-users@lists.sourceforge.net> wrote: > Hi Experts, > > > > Could you please help me with below questions in the below part of > net-snmp code: > > > > File: net-snmp >

Re: Support for SNMP source trap address

2019-09-11 Thread Bill Fenner
-s on trapsess lines will override clientaddr. Bill On Sun, Sep 8, 2019 at 1:15 PM Nitin Samuel wrote: > Thanks Bill. > > So in 5.8, if I have [snmp] clientaddr <> at the top, followed later by > a few trapsess hosts but one of which has the new '-s <>' option, will > clientaddr token

Re: Support for SNMP source trap address

2019-09-11 Thread Bill Fenner
Good point, Chandra - in snmpd.conf, the configuration has to be [snmp] clientaddr ___ Bill On Tue, Sep 10, 2019 at 12:27 PM Chinnapareddygari, Chandrasekharreddy < chandrasekharreddy.chinnapareddyg...@hpe.com> wrote: > Thanks Bill, > > It's working fine after adding clienaddr in snmp.conf

SNMPv3 restrict source address

2019-09-10 Thread Craig Smith
Hello, I've been going through the documentation all day and haven't found a definitive answer. Can snmpd be configured to allow only V3 access only from specific IP addresses? I am aware of host.allow/deny and firewalling, but the first doesn't seem secure enough and the second will add

missing information in logmatch trap data

2019-09-10 Thread Thommandra Gowtham
Hi I am using net-snmp 5.7.3 on Ubuntu and have a few questions regarding logmatch trap - How can we get more information in a logmatch trap other than the pattern matched? For example if we have below configuration logmatch loginFailure /var/log/auth.log 30 Failed password monitor -r 10 -o

Re: How to reduce agent x reconnect time

2019-09-10 Thread Ravi Prasad
Hi Deepak, If your objective is just to re-load snmpd.conf, it can also be achieved by setting MIB object *versionUpdateConfig* to 1. In this case restart of snmpd is not needed. Hence you will not have reconnect issue. Regards, Ravi On Sat, 7 Sep 2019 at 10:09, Deepak Sachan wrote: > Hi all

RE: Some general questions on netsnmp_logging_restart

2019-09-09 Thread Kiran Kumar Pamula -X (kpamula - HCL TECHNOLOGIES LIMITED at Cisco) via Net-snmp-users
Hi Experts, Could you please help me with below questions in the below part of net-snmp code: File:

Re: Support for SNMP source trap address

2019-09-08 Thread Nitin Samuel
Thanks Bill. So in 5.8, if I have [snmp] clientaddr <> at the top, followed later by a few trapsess hosts but one of which has the new '-s <>' option, will clientaddr token be honored for this trap host ? On Sun, Sep 8, 2019 at 4:21 PM Bill Fenner wrote: > On Fri, Sep 6, 2019 at 4:56 PM

Re: Support for SNMP source trap address

2019-09-08 Thread Bill Fenner
On Fri, Sep 6, 2019 at 4:56 PM Chinnapareddygari, Chandrasekharreddy < chandrasekharreddy.chinnapareddyg...@hpe.com> wrote: > I am using net-snmp 5.7.2 in my project..I want to use SNMP trap source > as user configured IP address. > How can I achieve this ? > In 5.7.2 you can use the

Re: How to reduce agent x reconnect time

2019-09-07 Thread Anders Wallin
see https://sourceforge.net/p/net-snmp/bugs/2926/ Anders Wallin On Sat, Sep 7, 2019 at 6:39 AM Deepak Sachan wrote: > Hi all > I am using 5.7.2 in my application. After made any change in snmpd.conf I > have to restart agent to reread the snmpd.conf. after restarting it shows - > agent x

How to reduce agent x reconnect time

2019-09-06 Thread Deepak Sachan
Hi all I am using 5.7.2 in my application. After made any change in snmpd.conf I have to restart agent to reread the snmpd.conf. after restarting it shows - agent x reconnected in 15. How can i reduce this reconnect time?? Thanks in advance. ___

Support for SNMP source trap address

2019-09-06 Thread Chinnapareddygari, Chandrasekharreddy
Hi , I am using net-snmp 5.7.2 in my project..I want to use SNMP trap source as user configured IP address. How can I achieve this ? Please give me some inputs Thanks, Chandra Get Outlook for Android ___ Net-snmp-users

RE: Some general questions on netsnmp_logging_restart

2019-09-05 Thread Kiran Kumar Pamula -X (kpamula - HCL TECHNOLOGIES LIMITED at Cisco) via Net-snmp-users
Sorry .. I wrongly copied code in my earlier email. Please find plain text below. 1199 static int 1200 receive(void) 1201 { .. .. 1233 snmp_log(LOG_INFO, "Reconfiguring daemon\n"); 1234 /* Stop and restart logging. This allows logfiles to be 1235

Re: NET-SNMP 5.8

2019-09-05 Thread Bart Van Assche
On 9/4/19 11:42 PM, Viana Gordo, Javier wrote: NET-SNMP was built using win32/build.bat. The error is given when the application running. Our VS2019 application is trying to do some GETS. Please keep the mailing list in Cc when replying. Please also check whether your application calls

Some general questions on netsnmp_logging_restart

2019-09-05 Thread Kiran Kumar Pamula -X (kpamula - HCL TECHNOLOGIES LIMITED at Cisco) via Net-snmp-users
Hi Experts, Could you please help me with below questions: File:

Re: NET-SNMP 5.8

2019-09-04 Thread Bart Van Assche
On 9/3/19 4:08 AM, Viana Gordo, Javier wrote: Hi, We're trying to use net-snmp 5.8 in visual studio 2019 and we have the following problems: * netsnmp_assert s != (-1) failed ..\..\snmplib\transports\snmpUDPBaseDomain.c:510 * when the program runs, it hangs in *snmp_synch_response()*

<    1   2   3   4   5   6   7   8   9   10   >