Many thanks all,
you gave me really useful information.
For the moment I going in the direction of parsing the output but I wonder
if the type STRING can be overriden by any other dattype in a specific MIB
written on purpose. As noticed it's a bit risky because for the string type
we don't know anything in advance, we can only query its lenght.
Regards, Alex
2016-05-14 7:43 GMT+02:00 Mattias Barthel <mbart...@accedian.com>:
> Lets look at snmp type BITS which is actually an OCTET-STRING with a very
> special format.
> It can be used for to assign what parts of a quantity an entity supports.
> Take a network interface for example. What media types does it support?
>
> BITS is an snmp type derived from a primitive snmp type.
>
>
> https://www.webnms.com/snmp/help/snmpapi/snmpv3/using_mibs_in_applns/bits_datatype.html
>
>
> On Friday, 13 May 2016, alessandro macuz <alessandro.ma...@gmail.com>
> wrote:
>
>> Thank you Fedor and Mattias.
>>
>> @Mattias I haven't seen such MIBs. I have to admit that I tried to learn
>> them but I haven't understood this capabilities of their of parsing the OID
>> output.
>>
>> Maybe I haven't sought the Internet in the right way.
>>
>> Do you perhaps have an example or a web-page where I can read of this
>> specific MIBs that parse the OID value and learn from it?
>>
>> Many thanks in advance,
>>
>> Alex
>>
>> 2016-05-13 10:02 GMT+02:00 Mattias Barthel <mbart...@accedian.com>:
>>
>>> A MIB writer can define a new type.
>>> We do that a lot.
>>>
>>>
>>> On Friday, 13 May 2016, alessandro macuz <alessandro.ma...@gmail.com>
>>> wrote:
>>>
>>>> Hello all,
>>>>
>>>> I tried to search the Internet for my answer but I don't seem to find
>>>> it.
>>>>
>>>> At my company we have an appliance that for some OIDs it doesn't return
>>>> an integer calue that can be processed and graphed but a string that looks
>>>> like the following
>>>>
>>>>
>>>>
>>>> .1.3.6.1.3456.c.f.r.t.h.y.j.uu.i.w. : STRING ::This OID gives the
>>>> height of the cake in the owen = 5.45
>>>>
>>>> Where the value of te OID is "This OID gives the height of the cake in
>>>> the owen = 5.45"
>>>>
>>>> The vendor of the appliance doesn't release any MIB and from my
>>>> understanding the way to provide a human exclamation is right returning a
>>>> self-explanatory-string AND the value.
>>>>
>>>> As far as I know MIBs can only serve to describe the OIDs' structure.
>>>>
>>>> Now the quite-a-newbie-question: can a MIB be used to describe the
>>>> format of the OID's value?
>>>>
>>>> I don't think so and I'd like to hear the opinon from somebody who
>>>> knows SNMP much better.
>>>>
>>>> Because the SNMP poller we use cannot parse such returned value.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Alex
>>>>
>>>
>>> Avis de confidentialité
>>>
>>> Les informations contenues dans le présent message et dans toute pièce
>>> qui lui est jointe sont confidentielles et peuvent être protégées par le
>>> secret professionnel. Ces informations sont à l’usage exclusif de son ou de
>>> ses destinataires. Si vous recevez ce message par erreur, veuillez s’il
>>> vous plait communiquer immédiatement avec l’expéditeur et en détruire tout
>>> exemplaire. De plus, il vous est strictement interdit de le divulguer, de
>>> le distribuer ou de le reproduire sans l’autorisation de l’expéditeur.
>>> Merci.
>>>
>>> Confidentiality notice
>>>
>>> This e-mail message and any attachment hereto contain confidential
>>> information which may be privileged and which is intended for the exclusive
>>> use of its addressee(s). If you receive this message in error, please
>>> inform sender immediately and destroy any copy thereof. Furthermore, any
>>> disclosure, distribution or copying of this message and/or any attachment
>>> hereto without the consent of the sender is strictly prohibited. Thank you.
>>>
>>
>>
> Avis de confidentialité
>
> Les informations contenues dans le présent message et dans toute pièce qui
> lui est jointe sont confidentielles et peuvent être protégées par le secret
> professionnel. Ces informations sont à l’usage exclusif de son ou de ses
> destinataires. Si vous recevez ce message par erreur, veuillez s’il vous
> plait communiquer immédiatement avec l’expéditeur et en détruire tout
> exemplaire. De plus, il vous est strictement interdit de le divulguer, de
> le distribuer ou de le reproduire sans l’autorisation de l’expéditeur.
> Merci.
>
> Confidentiality notice
>
> This e-mail message and any attachment hereto contain confidential
> information which may be privileged and which is intended for the exclusive
> use of its addressee(s). If you receive this message in error, please
> inform sender immediately and destroy any copy thereof. Furthermore, any
> disclosure, distribution or copying of this message and/or any attachment
> hereto without the consent of the sender is strictly prohibited. Thank you.
>
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users