snmptrap v3 authentication

2023-04-14 Thread Simon Chamlian
Hi, The snmptrap v3 authentication does not seem to be working. I am using Version: 5.9.1 >From my agent, I issue: snmptrap -v 3 -u Simon -a MD5 -A SimonPass -l authNoPriv 172.27.37.227 "" coldStart.0 I do receive the trap on my Trap Receiver even if I didn't specify a Username and

Re: snmpwalk

2022-04-13 Thread Simon Chamlian
::snmpEnableAuthenTraps.0 = INTEGER: disabled(2) SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0 SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0 SNMPv2-SMI::enterprises.4464.2.3.1.1.1.2.0 = STRING: "NG-STM" etc ... etc .. etc.. On Wed, Apr 13, 2022 at 10:05 AM Simon Chamlian wrote: > Hi, > > When

snmpwalk

2022-04-13 Thread Simon Chamlian
Hi, When I use the snmpwalk command: # snmpwalk -v 2c -c private localhost 0.1 ccitt.1 = No Such Object available on this agent at this OID # I got the error message above. Am I missing a MIB? Thanks, S. ___ Net-snmp-users mailing list

MIB search path

2021-03-25 Thread Simon Chamlian
Hi, When using snmpinform, I get the messages: SNMPInform failed: MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs Where are these MIB search paths defined? When I issue: # net-snmp-config --default-mibdirs /home/root/.snmp/mibs:/usr/share/snmp/mibs So it should look for:

Re: NET-SNMP version: 5.8 - v1/ v2 blocked, v3 works

2021-03-17 Thread Simon Chamlian
d on the error message, are you sure you have all MIBs needed, > loaded? Try say the device description OID, or the System Up Time OID. > Just as validation, a suggestion. The communication seems good, just the > OID rejected? > > -DD > On 03/17/2021 11:19, Simon Chamlian wrote: &

NET-SNMP version: 5.8 - v1/ v2 blocked, v3 works

2021-03-17 Thread Simon Chamlian
Hi, Seems like v1/v2 is blocked while v3 works fine. *V3 works Fine* # snmpget -v 3 -u Simon -a MD5 -A simon123 -l authNoPriv localhost NEM-DCI-MIB::nemDCISnmpTrapPort.0 NEM-DCI-MIB::nemDCISnmpTrapPort.0 = INTEGER: 162 *V1/V2 does not work* # snmpget -v 2c -c public localhost

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

2020-03-09 Thread Simon Chamlian
# # cat /etc/services | grep 161 snmp 161/tcp # Simple Net Mgmt Protocol snmp 161/udp # On Fri, Mar 6, 2020 at 4:30 PM David Moriconi (dmoricon) wrote: > This error can also happen when port 161 is already in use. Make sure it > is not the case. > > > > *From: *Simon Chamlian

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

2020-03-06 Thread Simon Chamlian
pd_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: >> Error opening specified endpoint "" >> >> I start

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

Re: netsnmp 5.7.1

2018-10-26 Thread Simon Chamlian
yes netsnmp 5.7.1, does support v3 traps. On Fri, Oct 26, 2018 at 3:30 PM LIU Chris (CA) wrote: > I am using netsnmp 5.7.1, does it support v3 trap? > > From wireshark, it seems sending v2 trap > > > > > > With Best Regards, > > > > Chris LIU > > > Thales Canada, Transportation Solutions >

Re: Net-SNMP Installation of net-snmp-5.7.3

2018-08-22 Thread Simon Chamlian
LD_LIBRARY_PATH=/usr/local/lib >> ~/.bashrc 5) in net-snmp-5.7.3/perl$ do sudo perl Makefile.PL sudo make sudo make install On Wed, Aug 22, 2018 at 2:51 PM, Simon Chamlian wrote: > Hi, > > I downloaded net-snmp-5.7.3.zip and followed the instructions to install > it on

Net-SNMP Installation of net-snmp-5.7.3

2018-08-22 Thread Simon Chamlian
Hi, I downloaded net-snmp-5.7.3.zip and followed the instructions to install it on my Ubuntu machine: QUICK INSTRUCTIONS == 1) Run ./configure 2) make and I am getting the following error: libtool: link: gcc -shared -fPIC -DPIC

Unknown Engine ID

2015-12-21 Thread Simon Chamlian
Hi, Using Ney-SNMP 5.7.1., I have an agent (v3) running. The user of this agent is responsible for making the server and he is complaining that when they change the server to a new server (same machine) to communicate to agent: a) They do a GET with empty with empty binding to get the

snmpd.conf privProtocol does not work

2015-06-26 Thread Simon Chamlian
Hi, With snmpd.conf creating a userusing *authProtocol* works fine. For example: createUser User1 MD5 HelloWorld rwuser User1 auth But creating a user with encryption does not work. I tried: = createUser User2 MD5

Re: snmpd.conf privProtocol does not work

2015-06-26 Thread Simon Chamlian
. On Fri, Jun 26, 2015 at 11:31 AM, Ajit Ambekar 007aji...@gmail.com wrote: While compiling use should enable des encryption. On Jun 26, 2015 8:34 PM, Simon Chamlian simon.chaml...@gmail.com wrote: Hi, With snmpd.conf creating a userusing *authProtocol* works fine. For example

ERROR: You don't have the SNMP perl module installed.

2014-07-11 Thread Simon Chamlian
Hi, I installed net-snmp my Ubuntu machine. Works well. simon@Subuntu-2:~/SNMP$ snmpget --version NET-SNMP version: 5.7.2.1 simon@Subuntu-2:~/SNMP$ snmptranslate -m +MPBC-RMH-MIB -IR -On mpbcRMHDateTime .1.3.6.1.4.1.4464.2.1.4.2.3 Now I am trying the perl scripts but it fails:

Re: How to get instance from a Request in Table_handler()

2012-03-20 Thread Simon Chamlian
SNMP_ERR_NOERROR; } Thanks, S On Tue, Mar 20, 2012 at 5:43 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 16 March 2012 19:39, Simon Chamlian simon.chaml...@gmail.com wrote: In the request handler function: How can we get the instance of the request (i.e., the row number

Understanding Table_handler() function

2012-03-19 Thread Simon Chamlian
Hi, The Table handler functions I get using one of the scripts are: int xxxTable_handler( netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info*reqinfo, netsnmp_request_info *requests) {

Re: Agent (snmpd) seems to have cache

2012-01-27 Thread Simon Chamlian
Since there is no answer, I should presume there is no way to compile the libraries into one application: snmpd? On Wed, Jan 25, 2012 at 4:46 PM, Simon Chamlian simon.chaml...@gmail.comwrote: Just a clarification. I am downloading the snmpd onto a board (embedded Linux). I realized

mib2c.iterate.conf generates errors

2012-01-26 Thread Simon Chamlian
Hi, The C file generated by *mib2c.iterate.conf* gives several errors when compiled (option 1). The errors are: 1) The line: # Determine the first/last column names 2) The structure generated has undefined entries and is duplicated twice: /* Typical data structure for a row entry */

which config file to use for tables

2012-01-26 Thread Simon Chamlian
Hi, It is hard to decide which config file to use to generate code for a table. Basically, when I do GetTable from a bowser, in the C code, I would like to: - create rows - populate the rows with values - send response to the browser - delete the rows (since next time, it will be

DEBUGMSGTL() and snmp_log() messages

2012-01-25 Thread Simon Chamlian
Hi, - How do I activate the DEBUGMSGTL() messages? Where does the messages go (in a file, console)? - How do I activate the snmp_log() messages? Where does the messages go (in a file, console)? Thanks, Simon

Agent (snmpd) seems to have cache

2012-01-25 Thread Simon Chamlian
Hi, I have the weirdest problem ever! *I had a MIB (say MIB1) that I compiled. Works fine.* *I made a new MIB (say MIB2). * 1. Created new C/h files 2. Changed the ./configure --with-mib-modules= ... to use the new files 3. Deleted all the c and header files related to MIB1. 4.

Re: Agent (snmpd) seems to have cache

2012-01-25 Thread Simon Chamlian
mpbcRMHMonHpuState * Thanks, S On Wed, Jan 25, 2012 at 3:11 PM, Simon Chamlian simon.chaml...@gmail.comwrote: Hi, I have the weirdest problem ever! *I had a MIB (say MIB1) that I compiled. Works fine.* *I made a new MIB (say MIB2). * 1. Created new C/h files 2. Changed the ./configure

Re: snmptrap question

2012-01-13 Thread Simon Chamlian
-TrapCritical * TIA, S On Wed, Jan 11, 2012 at 5:21 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 11 January 2012 21:31, Simon Chamlian simon.chaml...@gmail.com wrote: I'm issuing the following snmptrap command: snmptrap -v 3 -u testrwauth -a MD5 -A authentication test -l authNoPriv

snmptrap question

2012-01-11 Thread Simon Chamlian
Hi, I'm issuing the following snmptrap command: snmptrap -v 3 -u testrwauth -a MD5 -A authentication test -l authNoPriv 172.27.57.34 *42 *MPBC-RMH-MIB::mpbcRMH-Mon-HPU-State 1) This is returning the ObjectID in the summary of my trap window (i.e, my trap log has 4 columns:

snmptrap/snmpinform port number

2012-01-03 Thread Simon Chamlian
Hi, snmpinform/snmptrap port number is set to 162 by default. Is there any way we can change the port number through command line or it is hard coded? If not possible in the command line, is it possible to change it in the code and re-compile (which file is it)? Thanks, Simon

snmpinform

2011-12-23 Thread Simon Chamlian
Hi, Is there any explanation on -r RETRIES and -t TIMEOUT options of snmpinform? The timeout is for each request? In other words, if I have 3 retries, with timeout of 2ses: for each request, it waits 2 seconds (6 seconds total)? Are there any limits on the # of retries (can I set a

snmptrap

2011-12-22 Thread Simon Chamlian
Hi, How do I send a trap on one of my own OID? I tried: [root@M54418TWR root]# snmptrap -v 3 -u testrwauth -a MD5 -A authentication test -l authNoPriv 172.27.57.65 42 mpbcRMHMon-HPU-State mpbcRMHMon-HPU-State: Unknown Object Identifier (Sub-id not found: (top) - mpbcRMHMon-HPU-State)

Re: snmptrap

2011-12-22 Thread Simon Chamlian
? Thanks, Simon On Thu, Dec 22, 2011 at 4:41 PM, Simon Chamlian simon.chaml...@gmail.comwrote: Hi, How do I send a trap on one of my own OID? I tried: [root@M54418TWR root]# snmptrap -v 3 -u testrwauth -a MD5 -A authentication test -l authNoPriv 172.27.57.65 42 mpbcRMHMon-HPU-State

MIB for Dummies

2011-12-14 Thread Simon Chamlian
Hi, I am still trying to compile my mib into the agent running in an embedded Linux board. I have been told to create the c file/header on the PC, then cross-compile in my embedded target agent. So I installed net-snmp on Ubuntu. Seems to be working:

Re: MIB for Dummies

2011-12-14 Thread Simon Chamlian
Shield d.t.shi...@liverpool.ac.ukwrote: On 14 December 2011 17:00, Simon Chamlian simon.chaml...@gmail.com wrote: Now I copied my MIB file MPBC-RMH-MIB into same directory. Into which directory? /usr/share/mibs/netsnmp ? $ snmptranslate -m +MPBC-RMH-MIB -IR -On mpbcRMH-Mon-HPU-State

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Simon Chamlian
Any feedback on this? I am also interested in such a script. Thanks, Simon On Wed, Nov 9, 2011 at 1:11 PM, Suresh kumar skjaiswa...@hotmail.comwrote: Hello all i want convert entire MIB object to c/h file using mib2c at once can any once do this before please let me know . if not what i

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Simon Chamlian
I think what he means (or what I mean) is to have one config file that converts the whole MIB file (which contains any possible object) into C. Simon On Thu, Nov 10, 2011 at 10:30 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 9 November 2011 18:11, Suresh kumar skjaiswa...@hotmail.com

Writing a MIB Module

2011-11-09 Thread Simon Chamlian
Hi, After reading the tutorials for “Writing a MIB Module”, it seems that there are 3 methods of adding our own MIB into the agent: 1) Directly compiled in code 2) Writing a subagent (AgentX), which is another daemon that talks to snmpd via IPCs 3) Dynamically loaded shared

Re: snmpusm problems

2011-11-08 Thread Simon Chamlian
November 2011 22:24, Simon Chamlian simon.chaml...@gmail.com wrote: 1) In snmpd.conf, I added: rwuser initial noauth Have you got a 'createUser initial ... ' line anywhere? Dave -- RSA(R) Conference 2012 Save

Re: snmpusm problems

2011-11-08 Thread Simon Chamlian
Shield d.t.shi...@liverpool.ac.ukwrote: On 8 November 2011 14:38, Simon Chamlian simon.chaml...@gmail.com wrote: I tried the following: # snmpusm -v3 172.27.42.191 create initial wes snmpset: No securityName specified # snmpusm -v3 -l authNoPriv -a MD5 172.27.42.191 create enzo1

snmpusm problems

2011-11-07 Thread Simon Chamlian
Hi, I am trying to go through the ( http://www.net-snmp.org/docs/man/snmpusm.html#lbAG) tutorial but without success. 1) In snmpd.conf, I added: rwuser initial noauth 2) Started the daemon: snmpd -a -c snmpd.conf -d -Lf log1.txt In log1.txt, I see (NET-SNMP version 5.7.1) 3) When I do #

Re: mib2c -c mib2c.mfd.conf

2011-11-04 Thread Simon Chamlian
, Simon Chamlian simon.chaml...@gmail.comwrote: I took your advice and tried to install net-snmp on my host (Ubuntu PC). I followed the steps in the installation guide: QUICK INSTRUCTIONS == 1) Run ./configure Done 2) Optionally edit include/net-snmp/net-snmp

Re: mib2c -c mib2c.mfd.conf

2011-11-03 Thread Simon Chamlian
://www.net-snmp.org/wiki/index.php/Agent_Architecture gives the C code to do it but it is not clear. Thanks, Simon On Thu, Nov 3, 2011 at 4:15 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 31 October 2011 18:51, Simon Chamlian simon.chaml...@gmail.com wrote: I have an embedded board running

Re: mib2c -c mib2c.mfd.conf

2011-11-02 Thread Simon Chamlian
...@globaledgesoft.comwrote: ** Hi Simon, Please follow the following steps. [root@venkatesh perl]# cd net-snmp-5.7.pre1/perl [root@venkatesh perl]# make [root@venkatesh perl]# make install Please try this, Regards, Venki. Simon Chamlian wrote: Hi, I have

How to test the Agent

2011-11-02 Thread Simon Chamlian
(similar to open socket) and listens to incoming Get/Set command and replies back? Is there such test/template code on the network? Thanks, Simon On Wed, Nov 2, 2011 at 5:02 PM, Simon Chamlian simon.chaml...@gmail.comwrote: The problem is that the net-snmp is compiled in installed using *LTIB

Re: mib2c -c mib2c.mfd.conf

2011-11-01 Thread Simon Chamlian
with code 1 Basically, the snmpd does not recognize the tokens in snmpd.conf, which was created using snmpconf. Simon On Mon, Oct 31, 2011 at 2:51 PM, Simon Chamlian simon.chaml

mib2c -c mib2c.mfd.conf

2011-10-31 Thread Simon Chamlian
Hi, I have an embedded board running Linux/net-snmp (TWR54418 from Freescale). I am trying to get the agent going on the eval board and create an application in C, to connect to the agent and return a value to a get/set command from a mib bowser running on PC. After reading several tutorials, I

Re: MIB converter

2011-02-07 Thread Simon Chamlian
I installed strawberryperl. I tried: D:\public\net-snmp-5.6.1\perlperl makehtml.pl -W mpbcRMH-MIB.mib m.html No errors but creates a 'm.html' with size 0?!? Any hints? Thanks, S. - Original Message - From: Brandon Wigfield To: Dave Shield Cc: Simon Chamlian ; net

Re: MIB converter

2011-02-07 Thread Simon Chamlian
Great. Being new with PERL, what do I need to run it under WindowsXP. Thanks a lot. S. - Original Message - From: Dave Shield d.t.shi...@liverpool.ac.uk To: Simon Chamlian simon.chaml...@mpbc.ca Cc: net-snmp-users@lists.sourceforge.net Sent: Friday, February 04, 2011 10:04 AM Subject