SNMP MIB Visualizer recommendations? [closed] - snmp

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Are there any free visualization tools for MIBs? I've been assigned some SNMP trap normalization/enrichment work and been given Cisco ONS 15454s to start with. The MIBs seem more complex than others I have seen. Lots of object cross-references, including some to objects that are defined in other MIBs and exported. A quick example of trying to trace down the port number of an alarm:
Alarm definition:
Cerent454AlarmEntry ::= SEQUENCE {
cerent454AlarmIndex INTEGER,
cerent454AlarmObjectType Cerent454EntityClass,
cerent454AlarmSlotNumber INTEGER,
cerent454AlarmPortNumber CerentPortNumber,
cerent454AlarmLineNumber INTEGER,
cerent454AlarmObjectIndex INTEGER,
cerent454AlarmType Cerent454AlarmType,
cerent454AlarmState CerentNotificationClass,
cerent454AlarmTimeStamp TimeStamp,
cerent454AlarmObjectName DisplayString,
cerent454AlarmAdditionalInfo DisplayString
}
CerentPortNumber references from the same file (CERENT-454.mib):
IMPORTS
(...)
CerentPortNumber
FROM CERENT-TC
(...)
cerent454AlarmPortNumber OBJECT-TYPE
SYNTAX CerentPortNumber
ACCESS read-only
STATUS mandatory
DESCRIPTION
"This will indicate what is the port
of the object which raised this alarm."
::= { cerent454AlarmEntry 40 }
The actual syntax for CerentPortNumber, from CERENT-TC.mib:
CerentPortNumber ::=
INTEGER
{ unknown (1),
port0 (5),
port1 (10),
port2 (20),
(...)
port62 (620),
port63 (630),
port64 (640),
portAll (10240)
}
Maybe this isn't as complex as it feels, but this is just one small example. It feels like there should be a GUI-based "explorer" type app that would allow me to see these references easily without a lot of back and forth between files and locations in files. Any recommendations?

I use iReasoning's MIB Browser.

The one I used to use was MIB Browser.
But looking for MIB viewer on google gives you lots of other solutions.

I expect you can use Mgsoft-MIB Browser trail version for some extent.
Regards
Haranadh

You can use tkmib and snmpb in Linux-land.

Related

How to validate a raw Zebra Programming Language (ZPL) file with a regular expression? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
When receiving ZPL raw labels (text files) from a third party, I would like to run a regular expression on them to validate them.
Rather than a 100% strict validation, I am mostly looking to avoid sending to the printer obviously wrong files, such as completely unrelated text files, or binary files.
I am not familiar enough with ZPL/ZPL-II and I would prefer to use an existing resource for that. Would you know if one exists?
I've never heard of one. But it wouldn't be too hard to validate. ZPL is pretty straightforward, especially if there's a very defined set that you send to your printer...
The ZPL command characters are ~ for immediate commands an ^ for formatting commands.
Label formats must begin with a ^XA and end with a ^XZ.
Download commands typically begin with a ~D<something>, like ~DY, ~DG, ~DT, ~DC etc.
There are a couple status commands like ~HI and ~HS
There may be a couple other edge cases, but these are the most common commands.

Converting a Protocol Buffer to a POJO [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there a tool or library that can map a Protobuff object to a POJO. I would like to have the pojo implement other interfaces that I can not with the ProtoBuff object. Or would I have to manually do this conversion?
Maybe too late, but you can try protobuf-converter library. It is easy to use.
Convert POJO object to related protobuf message:
POJOClass pojoInstance = new POJOClass();
...
ProtobufClass protoInstance = Converter.create().toProtobuf(ProtobufClass.class, pojoInstance );
Code for backward conversion:
POJOClass pojoInstance = Converter.create().toDomain(POJOClass.class, protoInstance);
Take a look at ProtoStuff.
I think it will do what you want.
I believe that you will want to use the "java-bean" compiler.
Edit: Changed the link.
I guess it is too late, but it might help others.
You may use https://gitlab.com/protobuf-tools/proto_domain_converter
It is very similar to protobuf-converter but I'm actively maintaining it, it has better performance, supports map type and polymorphism (oneof).

Dynamic Hash-like data-structure in Fortran [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Is there a library usable in Fortran, which allows the usage of sparse dynamic arrays (hash/dictionary like) besides the Judy arrays?
I have created an abstracted dictionary in fortran which might suit your needs.
See: https://github.com/zerothi/fdict
Basically it lets you do
type(dict) :: dic, dic2
dic = ('KEY'.kv.1)
dic = dic //('next'.kv. (/3.,5.,6./))
dic = dic //('string'.kv.'Hello world')
dic2 = ('string2'.kv.'Test')
dic = dic // ('dic2'.kvp.dic2)
Where you can save all intrinsic types and it can easily be extended to contain other data-types, it defaults to initially contain itself as another value. (the last line retains a dictionary as a pointer)
It does .kv. == key : value designation which is a deep copy, and
.kvp. == key : pointer which is a reference copy.
In this way you can store huge data without having to duplicate data and retrieve the pointer at some later point.
To elaborate on the idea, all data is stored as address pointers using a transfer call from a derived type containing the data pointer. In this way you trick the compiler to hand you the address of the fortran derived type, but forces you to retrieve it in the exact same manner.
By .kv. a pointer of the data-type is allocated and subsequently pointed to by the data-container, then afterwards the allocated pointer is nullifyied and lost thus forcing the user to know what they are doing (there is no garbage-collector in it ;) ).
By .kvp. the pointer is directly saved without duplicating any memory.
The nice thing is that it is fortran90 compliant.
Haven't seen one built-in, but google returns a few:
FLibs: http://flibs.sourceforge.net/
Hash Tables: http://burtleburtle.net/bob/hash/evahash.html and http://www.cris.com/~Ttwang/tech/inthash.htm.

Where can I find a good template for a software application user guide? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Looking for links to resources that will help me write a user guide for a software application. I'm after something that will help me to structure my guide, give it an appropriate writing style, and ensure that it has an excellent look and feel throughout.
This link has some strong points. Each point is presented with clear speech and with inline justifications.
When writing procedures, use the
active voice (e.g. Click this) and
address users directly (write "you"
rather than "the user").
When explaining an action, use the
"command" form of the verb:
"Choose an option from the menu and
press [ENTER]."
http://www.klariti.com/technical-writing/User-Guides-Tutorial.shtml
Here is the complete list of the topics covered on the aforementioned article:
Front Page (cover pages)
Cover and Title Page
Disclaimer
Preface
Contents
Body of the guide
Procedures
Writing procedures
Chunking text
Number your steps
Using the If-Then Approach
Reference Materials
Back Matter
Glossary
Index
Establishing Standards
Document Format
Structure Style
Technical Language
Addressing the User
Presenting your material
Special Requirements
For structure and look+feel, consider using a framework such as DocBook.
DocBook uses an XML markup schema that makes you think about how your document should be arranged. There are XSL transformations to convert it to common formats like HTML and PDF with a whole load of config options to make it look the way you want. And it's open-source (free). There are downsides of course: the schema's pretty big, and editing can be hard work without a good XML editor.
Examples: http://wiki.docbook.org/topic/WhoUsesDocBook

Dictionary API or Library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Does anyone know of a good dictionary API or ruby library to lookup the definitions of words?
I'm thinking it should work something like:
I call get_definition(word)
It returns the definition for that word (ideally in some way to easily format the definition for display.
Thanks
Wordnik.com has several word-info APIs, including a definitions API. More info is here: http://developer.wordnik.com/
[I work for Wordnik. We will have more APIs soon, let us know what you want!]
I discovered a webservice for this yesterday.
Go to the British Council homepage and double click on any word (that isn't already a hyperlink).
This should open a popup window with a Cambridge Dictionary definition in it. The API is relatively simple (and it is a public API, I checked it yesterday):
http://dictionary.cambridge.org/learnenglish/results.asp?searchword=SEARCH_PHRASE&dict=L
For reference, here's the code they use to launch this on double-click:
/* BC double-click pop-up dictionary */
var NS = (navigator.appName == "Netscape" || navigator.product == 'Gecko') ? 1 : 0;
if (NS) document.captureEvents(Event.DBLCLICK);
document.ondblclick = dict;
var dictvar;
function dict() {
if (NS) {
t = document.getSelection();
pass_to_dictionary(t);
} else {
t = document.selection.createRange();
if(document.selection.type == 'Text' && t.text != '') {
document.selection.empty();
pass_to_dictionary(t.text);
}
}
}
function pass_to_dictionary(text) {
//alert(text);
if (text > '') {
window.open('http://dictionary.cambridge.org/learnenglish/results.asp?searchword='+text+ '&dict=L', 'dict_win', 'width=650,height=400,resizable=yes,scrollbars=yes');
}
}
Ruby-WordNet sounds like it does what you're looking for:
Ruby-WordNet is a Ruby interface to
the WordNet® Lexical Database. WordNet
is an online lexical reference system
whose design is inspired by current
psycholinguistic theories of human
lexical memory. English nouns, verbs,
adjectives and adverbs are organized
into synonym sets, each representing
one underlying lexical concept.
Different relations link the synonym
sets.
there's also wrappers for dictionary.com's API (a few years old)
http://rubyforge.org/snippet/detail.php?type=snippet&id=53
http://rubyforge.org/snippet/detail.php?type=snippet&id=52
and wiktionary
http://eightpence.com/ninjawords-a-fast-online-dictionary-fast-like-a-ninja/

Resources