Quantcast
Channel: C# Based Open Source SNMP Library for .NET and Mono
Viewing all 576 articles
Browse latest View live

Released: TritonMate (8.0) RC (Apr 07, 2013)

$
0
0

Updated Release: TritonMate (8.0) RC (Apr 07, 2013)

$
0
0

New Post: How can I access name and value from a NamedNumberList?

New Post: How can I access name and value from a NamedNumberList?

$
0
0
dear lextm:
tank you for your attention,
please say me when could i have this Pro edition
regards

New Post: How can I access name and value from a NamedNumberList?

$
0
0
The early access program will kick off once I finish most of the features in plan. Based on my current progress, that should be in this May.

BTW, what do you want to achieve? The Pro editions do not target all users of #SNMP.

New Post: How can I access name and value from a NamedNumberList?

$
0
0
for example:
i want to read a :
.......
{
trp1TxRFCHCenterFreq OBJECT-TYPE
SYNTAX     INTEGER {
    freq7747-70MHz (0),
    freq7777-35MHz (1),
    freq7807-00MHz (2),
    freq7836-65MHz (3),
    freq7866-30MHz (4),
    freq7895-95MHz (5),
    freq7825-60MHz (6),
    freq7855-25MHz (7),
    freq8059-02MHz (8),
    freq8088-67MHz (9),
    freq8118-32MHz (10),
    freq8147-97MHz (11),
    freq8177-62MHz (12),
    freq8207-27MHz (13),
    freq8236-92MHz (14),
    freq8266-57MHz (15)
}
.........
}
please help me that how do i read this details of syntax in mib file ?
regards

New Post: Asynch Set - .EndGetResponse necessary?

$
0
0
Hi Lextm,

So i am using your library to implement asynchronous set calls based off the asynch support mentioned here:
http://sharpsnmplib.codeplex.com/wikipage?title=600009&referringTitle=KB

and was wondering whether it was necessary to call the .EndGetResponse considering we do not necessarily care about the return of a set call since there is no return object we need to access? If we just shoot off the set request and do not call this will it cause a memory leak or any other undesirable side effects?

Thanks for your help

New Post: How can I access name and value from a NamedNumberList?

$
0
0
mr lextm:
can you prefer any solution for my problem
please say me what I can?
regards

New Post: Asynch Set - .EndGetResponse necessary?

$
0
0
It is common to avoid calling End* when you don't care. But do you really want to neglect the returned message? SET operations can fail, and you should handle failures gracefully.

Regards,

Lex

New Post: i don´t understandign create a mib??

$
0
0
The goal of #SNMP is to support existing MIB documents, but not create new. Do you know clearly why you need to create a MIB document? If not, you probably don't need to do so.

Simply spearking, to write new MIB documents, you can start from reading the SMI syntax described in related RFC documents,

http://tools.ietf.org/html/rfc2578

Then even with notepad or gedit you can write a new document correctly.

The open source version of #SNMP MIB Compiler can report some issues of a MIB document, but I am currently working on a Pro edition which is growing to be an IDE for MIB authors,

http://www.lextm.com/2013/04/snmp-pro-sneak-on-upcoming-compiler-pro.html

Regards,

Lex

New Post: IDefinition node=DefaultObjectRegistry.Instance.Tree.Find() is null

$
0
0
hi
i use IDefinition node=DefaultObjectRegistry.Instance.Tree.Find() for get node
but when i want to load 2 or many mibfile this node is null ,but when load 1 mib file work
please help me that how can i load many mib file
best regards

New Post: IDefinition node=DefaultObjectRegistry.Instance.Tree.Find() is null

$
0
0
hi
i use IDefinition node=DefaultObjectRegistry.Instance.Tree.Find() for get node
but when i want to load 2 or many mibfile this node is null ,but when load 1 mib file work
please help me that how can i load many mib file
best regards

New Post: i don´t understandign create a mib??

$
0
0
I work with .net, you have reason the file .mib not create necessary,
but I want manipulation the file .mib, I need the compiler.exe for communication in protocol SNMP. saw the examples.

Thanks

Commented Issue: Report engine time exceeds RFC max value [7253]

$
0
0
Hi Lex,

We've had report messages returned by SecureSnmpContext.HandleDiscovery() where the EngineTime exceeds the max int value of 2147483647; so our network devices do not complete the discovery process and we stop receiving messages from them.

As the value is based on Environment.TickCount we can workaround the problem by rebooting the server, however it's not ideal.

Thanks,

Stuart
Comments: Thanks Lex, We're integrating this into a build - I'll let you know if we have any problems. When do you think TritonMate will go from RC to release?

Closed Issue: Trap V3 authentication fails when system uptime over 25 days [7232]

$
0
0
SNMP v3 trap authentication uses EngineGroup.EngineTime, which returns Environment.TickCount. When the system has been up for 25 days or more TickCount is a large negative number. Because of this all v3 trap authentication fails because of this comparison in SecureSnmpContext.HandleMemership:

return parameters.EngineTime.ToInt32() <= Group.EngineTime + 500;

This will almost always return false after 25 days. This is an issue if you want your trap listener to run on a system that's been up for more than 25 days.

Commented Issue: Report engine time exceeds RFC max value [7253]

$
0
0
Hi Lex,

We've had report messages returned by SecureSnmpContext.HandleDiscovery() where the EngineTime exceeds the max int value of 2147483647; so our network devices do not complete the discovery process and we stop receiving messages from them.

As the value is based on Environment.TickCount we can workaround the problem by rebooting the server, however it's not ideal.

Thanks,

Stuart
Comments: If no critical issue is found in the next few weeks, the RC build will be marked as RTW in early June.

New Post: Set Context Name v3

$
0
0
Hello,

First of all I want to thanks for the great library.

I don't find the way how to set the context name in SNMP v3.

Can you help me?

Thanks in advance!!

Sergio

New Post: Using a Sequence datatype with SendTrapV2

$
0
0
We have an application that is using your Messenger namespace and is working fine with basic data types (OctetString) with an oid being used to construct a Variable, added to the List<Variable>and then being used with the Messenger.SendTrapV2 method. We need to include a Sequence type of OctetStrings to the Variable list, but it is not clear on how to accomplish this. I have tinkered around with getting as far as adding a list of ISnmpData types to a Sequence, but that is as far as I can go.. What am I missing?
  List<ISnmpData> snmpData = new List<ISnmpData>();
  snmpData.Add(new OctetString("Key"));
  snmpData.Add(new OctetString("Value"));
  Sequence seq = new Sequence(snmpData);
...
  Messenger.SendTrapV2(,,,,List<Variable>); ...How to include a Sequence???);

New Post: Using a Sequence datatype with SendTrapV2

$
0
0
Can you tell me what kind of TRAP v2 message you are going to send? It's better if you can paste the MIB document portion.

As far as I know, you should never send a Sequence object out, as that violates the SNMP package format.

Lex

New Post: Using a Sequence datatype with SendTrapV2

$
0
0
It's a 'custom' trap that we are sending which has alert information about our system. The MIB is fairly long to paste, but since we have control of how to construct it maybe I can pose the question in another way with a snippet.
alertingVars OBJECT IDENTIFIER 
        -- 1.3.6.1.4.1.1530.1.1.1.1
        ::= { alertingMib 1 }

-- the associated data that contains the details needed to define the trap
alertPayload OBJECT-TYPE
        SYNTAX  DisplayString
        MAX-ACCESS read-only
        STATUS  current
        DESCRIPTION
                "An alert data value in string format."
        -- 1.3.6.1.4.1.1530.1.1.1.1.6
        ::= { alertingVars 6 }
The alertPayload currently is an OctetString containing a variable length delimited key value pair which is placed into the Variable list (and to the SendTrapV2) of which is not going to be useful to the customer. The associated portion of the trap looks like this currently from the receiver:
Ent Value 3: .1.3.6.1.4.1.1530.1.1.1.1.6=Key1^Value1,Key2^Value2 
The solution was to somehow represent the key value pair in a SEQUENCE type in the MIB and then modify the trap sending code to include a Sequence type within the variable list of the SendTrapV2. I've seen how SEQUENCES are defined in MIB's but I'm confused on how to approach it from the code sending side.

It sounds like I am approaching this wrong. So how would I resolve this issue?
Viewing all 576 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>