Guru Prasad | 16 Apr 09:11 2014
Picon

(unknown)

Hi All,

I am using netsnmp-5.4.3 installed in my linux debian (wheezy) machine.

When i try to run snmpd, i am getting the following error eventhough when i am not using the option 
--enable-ipv6.


root <at> guru: /usr/sbin/snmpd -f -C -c /etc/snmp/snmpd.conf &

/usr/sbin/snmpd: symbol lookup error: /usr/lib/libnetsnmpagent.so.15: undefined symbol: netsnmp_TCPIPv6Domain


Kindly help me in this regard.


Thanks,
Guru.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
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
Gefei Jiang | 15 Apr 20:35 2014

Error in packet. Reason: Unknown Error with snmpwalk

Hi Everyone,

 

Is there anyone who has a solution to the issue below:

 

When I do snmpwalk on one of my table (ntpTable) it displays

    <the oids with the correct value>

     Error in packet.

     Reason: Unknown Error

 

I just upgraded my snmp agent (snmpd) from 5.4.2 to 5.7.2.1. Before the upgrade I had no issue at all.

 

I appreciate in advance.

 

Thanks,

 

Gefei

PS:   Below is my captures for both version:

 

5.7.2.1 version (this is the version with the error in the end)

 

[gjiang <at> Gefei-PC ~]$ snmpwalk -v 2c -c myCode 10.219.101.161 NETOPTICS-MIB-DIRECTOR::ntpTable

NETOPTICS-MIB-DIRECTOR::ntpIndex.0.0 = INTEGER: 0

NETOPTICS-MIB-DIRECTOR::ntpAction.0.0 = INTEGER: default(0)

NETOPTICS-MIB-DIRECTOR::ntpAdmin.0.0 = INTEGER: enabled(1)

NETOPTICS-MIB-DIRECTOR::ntpSrvrIp.0.0 = IpAddress: 10.30.1.15

NETOPTICS-MIB-DIRECTOR::ntpDst.0.0 = INTEGER: on(1)

NETOPTICS-MIB-DIRECTOR::ntpTimezone.0.0 = STRING: New_York

NETOPTICS-MIB-DIRECTOR::ntpSrvrIpv6.0.0 = STRING:

Error in packet.

Reason: Unknown Error

####################################################################################

 

5.4.2 version: (this is the version without the error)

 

[gjiang <at> Gefei-PC ~]$ snmpwalk -v 2c -c myCode 10.219.101.161 NETOPTICS-MIB-DIRECTOR::ntpTable

NETOPTICS-MIB-DIRECTOR::ntpIndex.0.0 = INTEGER: 0

NETOPTICS-MIB-DIRECTOR::ntpAction.0.0 = INTEGER: default(0)

NETOPTICS-MIB-DIRECTOR::ntpAdmin.0.0 = INTEGER: enabled(1)

NETOPTICS-MIB-DIRECTOR::ntpSrvrIp.0.0 = IpAddress: 10.30.1.15

NETOPTICS-MIB-DIRECTOR::ntpDst.0.0 = INTEGER: on(1)

NETOPTICS-MIB-DIRECTOR::ntpTimezone.0.0 = STRING: New_York

NETOPTICS-MIB-DIRECTOR::ntpSrvrIpv6.0.0 = STRING:

 

####################################################################################

 

 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
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
Benix Vincent | 15 Apr 13:56 2014
Picon

Setting community string to net-snmp when net-snmp is up and running.


Is there a way to set the community string dynamically to the net-snmp? 

Ie. I will know the community string only after net-snmp daemon is up and running.

I want to set the community sting to net-snmp daemon when it is up and running and want it come to effect ASAP.

Thanks,
Benix.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
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
laguna-mc | 10 Apr 16:25 2014
Picon

SNMP Protocol

question about SNMP Protocol: where is installed MIB files (vendor-specific): on the Network management station (NMS) or on the network devices (network node)?

 


 
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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
jregovic | 8 Apr 21:24 2014

RE: send a snmp trap

Andrew,

Your oght to be seeing some errors from your command. Assuming that 192.168.3.45 is your management statation and CISCO-13000 is the device, that device name needs to be a resolvable name or an IP.

For example:

$ snmptrap -v1 -c 506 10.228.70.123 .1.3.6.1.4.1.3607.6.10.30 CISCO-13000 6 3540 15
getaddrinfo: CISCO-13000 Name or service not known
unknown host: CISCO-13000
$

If I change the agent tot something resolvable:

$ snmptrap -v1 -c 506 10.228.70.123 .1.3.6.1.4.1.3607.6.10.30 www.google.com 6 3540 15
$

You should be getting errors on stderr when you run your command.
-------- Original Message --------
Subject: send a snmp trap
From: "andrewarnier" <andrewarnier <at> gmail.com>
Date: Tue, April 08, 2014 12:59 am
To: <net-snmp-users <at> lists.sourceforge.net>

#wmQuoteWrapper /* Font Definitions */ <at> font-face {font-family:PMingLiU; panose-1:2 2 5 0 0 0 0 0 0 0;} #wmQuoteWrapper <at> font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} #wmQuoteWrapper <at> font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} #wmQuoteWrapper <at> font-face {font-family:PMingLiU; panose-1:2 2 5 0 0 0 0 0 0 0;} #wmQuoteWrapper /* Style Definitions */ p.MsoNormal, #wmQuoteWrapper li.MsoNormal, #wmQuoteWrapper div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Calibri","sans-serif";} #wmQuoteWrapper a:link, #wmQuoteWrapper span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} #wmQuoteWrapper a:visited, #wmQuoteWrapper span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} #wmQuoteWrapper p.MsoListParagraph, #wmQuoteWrapper li.MsoListParagraph, #wmQuoteWrapper div.MsoListParagraph {mso-style-priority:34; margin-top:0cm; margin-right:0cm; margin-bottom:0cm; margin-left:24.0pt; margin-bottom:.0001pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:0cm; mso-para-margin-left:2.0gd; mso-para-margin-bottom:.0001pt; font-size:12.0pt; font-family:"Calibri","sans-serif";} #wmQuoteWrapper span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} #wmQuoteWrapper .MsoChpDefault {mso-style-type:export-only;} #wmQuoteWrapper /* Page Definitions */ <at> page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} #wmQuoteWrapper div.WordSection1 {page:WordSection1;}
Hi all,

I try to send a snmp trap to my system, the example as follows,

 

 

snmptrap -v 1 -c public 192.168.3.45 .1.3.6.1.4.1.3607.6.10.30 CISCO-13000 6 3540 15 \

.1.3.6.1.4.1.3607.6.10.100.10.20.1 s "20080227205807S" \

.1.3.6.1.4.1.3607.6.10.20.30.20.1.80.4103.220 s "90" \

.1.3.6.1.4.1.3607.6.10.20.30.20.1.20.4103.220 s "670" \

.1.3.6.1.4.1.3607.6.10.20.30.20.1.60.4103.220 s "16386" \

.1.3.6.1.4.1.3607.6.10.20.30.20.1.30.4103.220 s "4" \

.1.3.6.1.4.1.3607.6.10.20.30.20.1.40.4103.220 s "10" \

.1.3.6.1.4.1.3607.6.10.20.30.20.1.50.4103.220 s "0" \

.1.3.6.1.4.1.3607.6.10.20.30.20.1.100.4103.220 s "testFAC-3-4"

 

 

And I check the log

#tail –f /var/log/snmptt/snmptt.log

But it’s didn’t shown in the log

 

Can anyone tell me what is wrong with the trap?

 

Thanks,

Andrew

  

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_______________________________________________
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
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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
Stone, Thomas | 20 Mar 15:43 2014

Need help bringing up TLS v1.2 support

I have an Ubuntu box running net-snmp 5.7.1 which I have modified to support ecdsa and sha384.  I have an embedded application running net-snmp 5.6.1.1 which has had the same modification performed and openssl-1.0.1.  The Ubuntu net-snmp is configured with the joe-cool certificates from the net-snmp tls tutorial.  The embedded net-snmp has a self-signed cert of type ecdsa-with-sha384.

 

At a terminal window on the Ubuntu machine, I enter the following commands:

 

net-snmp-cert -t remote import remote.crt

 

snmpget -u rco -l authPriv -x AES -X 'asdASD12! <at> ' -a SHA -A 'asdASD12! <at> ' -T our_identity=tutorial-joecool -T their_identity=remote -t 10 tls:192.168.1.141 sysUpTime.0

 

Wireshark has been used to analyze the message exchange.  It has been configured with the private keys for both entities.  It shows the following message exchange (tcp acks removed):

 

Ubuntu send Client Hello

 

Embedded sends Server Hello, Certificate, Certificate Request, Server Hello Done

 

Ubuntu sends Certificate, Client Key Exchange

 

Ubuntu sends Certificate Verify, Change Cipher Spec, Encrypted Handshake Message

 

Embedded sends New Session Ticket, Change Cipher Spec, Encrypted Handshake

 

Ubuntu sends Application Data

 

Embedded sends Encrypted Alert with code 21 (Decryption Failed)

 

Ubuntu sends Encrypted Alert with code 21 (Decryption Failed)

 

I am trying to track down the cause of the Encrypted Alert message.  In reading the RFCs I expected to see a Server Key Exchange message but it seems to be missing.

 

Any thoughts/suggestions on the direction I should take for tracking this down will be greatly appreciated.

 

Thomas Stone

 

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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
johnny.issa | 7 Apr 19:47 2014

Net-SNMP and QNX6.2.1

Currently I am running net-snmp5.5 on QNX6.2.1 and using a subagent for my SNMP. Everything is working fine. Now I am trying to expand my SNMP MIB with new functionality and I was trying to use pass_persist for the expansion. I was thinking of using either Perl or Python for the flexibility. No such luck so far.

 

Here is what I tried to do so far:

1.       I tried to setup pass_persist to use a shell script that adds a log entry to a log file and I can see that this works. I used this to prove that my snmpd.conf entries are correct.

2.       Next I downloaded the Python script snmp_passpersist.py and wrote a Python script that uses this class and this is where the problems started happening. I start snmpd with the following debug flag “-D ucd-snmp/pass_persist” and when I try to do snmpget on the OID, I see that it is calling the correct script in the debug message but I get an error message that PONG was not received. My Python script logs a message when it is started but I don’t see the message which tells me that it is not getting called. I made sure that Python is started in un-buffered STDIN mode “python –u”.

3.       Next I tried to start the python script from the shell script used in step 1 and I get the log message that the Python script started but it does not work.

4.       Next I thought I will try Perl. We have another system that is used pass_persist on QNX 6.5.0 and I used that Perl script on QNX 6.2.1 but I get the same result as with Python script in step 2.

 

Unfortunately I can’t run QNX 6.5.0 on my current system due to hardware compatibility so I am stuck with QMX 6.2.1.

 

My questions are:

1.       Does pass_persist work on QNX 6.2.1?

2.       Do I need to run configure with different flags?

3.       Am I doing something wrong.

 

Any suggestion or ideas would be greatly appreciated.

 

Johnny Issa

 

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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
Áki Hermann Barkarson | 8 Apr 01:45 2014
Picon

creating custom mib

Hi guys,

 

Maybe this is not the place to ask with help for creating a custom MIB and if not then if someone could point me towards a forum or mailing list I’d be very grateful.

 

I have a lot of scripts to monitor various systems and most of them will have some sort of built-in alert functionality that will send an e-mail.. it’s a bit messy to have that functionality all distributed and I wanted to see if snmp traps may be a better way to go. We cover all the monitoring functionality with polling for reliability but snmp-traps we use to speed up alerting for critical systems.

 

To learn more about this I want to create my own MIB and I have an enterprise OID (1513) that I can use.

 

So I send traps with SNMPv2-SMI::enterprises.1513…. and passing along some variable and this is where I’m struggling with syntax and general lack of understanding. I want to format my mib in the correct way.. maybe it should be split down into one mib defining objects and then I define the notifications in another mib.. and and.. so many questions J I can see various examples out there but I’d love to have a conversation with someone who actually knows this stuff.

 

 

This is what I have so far:

 

 

Advania-Traps-MIB DEFINITIONS ::= BEGIN

 

IMPORTS

   enterprises                                  FROM RFC1155-SMI

 

advania                                OBJECT IDENTIFIER ::= { enterprises 1513 }

objects                 OBJECT IDENTIFIER ::= { advania 1 }

notifications       OBJECT IDENTIFIER ::= { advania 2 }

 

-- Objects

 

trapState OBJECT-TYPE

    SYNTAX      DisplayString (SIZE (0..31))

    MAX-ACCESS  read-write

    STATUS      current

    DESCRIPTION

            "A brief description."

    ::= { msg 1 }

 

shortMsg OBJECT-TYPE

    SYNTAX      DisplayString (SIZE (0..31))

    MAX-ACCESS  read-write

    STATUS      current

    DESCRIPTION

            "A brief description."

    ::= { msg 1 }

 

longMsg OBJECT-TYPE

    SYNTAX      DisplayString (SIZE (0..1279))

    MAX-ACCESS  read-write

    STATUS      current

    DESCRIPTION

            "Detailed info."

    ::= { msg 2 }

 

 

-- Notifications

 

customTrap NOTIFICATION-TYPE

       STATUS current

       VARIABLES { trapState, shortMsg, longMsg }

       DESCRIPTION "Custom trap alert."

       ::= { notifications 1 }

 

END

 

Not sure if this is how it’s meant to be formatted, any help would be appreciated..

 

 


Áki Hermann Barkarson

Sérfræðingur / Service Engineer
CCDP
/ CCIE # 27552

 

Skilmálar/Disclaimer

 

 

 

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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
Bartkowska, Irena | 24 Mar 00:52 2014

lots of issues with net-snmp on Windows 7

I do not know how other windows installs perform , but on Windows 7 is just horrible, seems not to be supported at all and there is no documentation for Windows specifically wrt intall; all in this ReadMe.Win32 file is Wrong AND NOT WORKING

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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
Manikandan G | 20 Mar 08:59 2014

start snmp with new version

Hi All,

 

          I am upgraded net-snmp version with 5.7.2.1 . But when am start the snmp service  using /etc/init.d/snmpd start , its started the version 5.4.3.

 

          In My Ubuntu has snmp version 5.4.3 and 5.7.2.1. How to start the snmpd and snmptrapd service with 5.7.2.1.

 

          And am trying to receive snmpv3 traps in Ubuntu. But am not at all receiving [able to receive snmpv1 and snmpv2 traps]

 

        Could you anyone please help me to receive snmpv3 traps in Ubuntu pc.

 

 

 

 

Regards,

Manikandan.G

 

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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
Nirmal Sahoo | 14 Mar 09:06 2014
Picon

SNMP Manager and Master Agent Communication Issue

Hello All,
I am facing Sync issue with the below scenario,Please help me.

Manager(response timeout 45sec).
Master Agent: Proxy configured timeout 10sec for sub-agent
Sub Agent


Set request for master agent is to restart the snmpd.
Behaviour for Master Agent:one will get the set request send the response and restart the snmpd.

Scenario:
=========
Send set request from manager to Master Agent no issues.

Two request(one for Master agent and one for Sub-agent via proxy)..if subagent is reachable and sending response immediately then then issues.

Issue scenario:
================
if subagent is not reachable and timeout happens then there is a sync issue is happening with Manager and Master Agent.

Anyone can Give me any clue where will be the problem or where and how to debug.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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