Re: Problème String into OID

2013-01-16 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 15

Re: Problème String into OID

2013-01-14 Thread Dave Shield
On 14 January 2013 16:23, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: But when I restart my snmpd services, there is no way to contact server by any community. What are the access configuration settings in your snmpd.conf file? Is there anything logged when you start the

RE: Problème String into OID

2013-01-14 Thread Jérôme BELLEGARDE
Hello, I'm trying to re-build a new installation of net-snmp because we are changing our server. I have compil the package, with this : ./configure --prefix=/usr --with-mibdirs=/usr/share/snmp/mibs --with-default-snmp-version=2 --with-defaults --with-mib-modules=adsp make make install

RE: Problème String into OID

2012-08-03 Thread Jérôme BELLEGARDE
-snmp-users@lists.sourceforge.net Objet : Re: Problème String into OID On 2 August 2012 14:44, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: My question is now, how can I store a string into an OID Please see the code in 'agent/mibgroup/examples/watched.c' which does exactly

Problème String into OID

2012-08-02 Thread Jérôme BELLEGARDE
); DEBUGMSGTL((adspFAFtp, Done initalizing adspFAFtp module\n)); } My question is now, how can I store a string into an OID (like 500/1000 char or so). If you can give me an exemple of it. Thank you :) Cordialy

Re: Problème String into OID

2012-08-02 Thread Dave Shield
On 2 August 2012 14:44, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: My question is now, how can I store a string into an OID Please see the code in 'agent/mibgroup/examples/watched.c' which does exactly this. Dave

RE: Problème String into OID

2012-08-02 Thread Jérôme BELLEGARDE
2012 16:05 À : Jérôme BELLEGARDE Cc : net-snmp-users@lists.sourceforge.net Objet : Re: Problème String into OID On 2 August 2012 14:44, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: My question is now, how can I store a string into an OID Please see the code in 'agent/mibgroup

RE: Problème String into OID

2012-08-02 Thread Jérôme BELLEGARDE
--- -Message d'origine- De : Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] Envoyé : jeudi 2 août 2012 17:18 À : Jérôme BELLEGARDE Cc : net-snmp-users@lists.sourceforge.net Objet : Re: Problème String into OID On 2 August 2012 16:03, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote

Re: [convert string as oid]

2010-02-17 Thread Dave Shield
On 16 February 2010 15:44, Ashish vashishtha ashish.vashish...@gmail.com wrote: That also i have tried but result was the same. OK - then you need to step back, and try with something simpler. Does it work with a single, fixed input string? (similar to the code that Vivek posted) Does it

[convert string as oid]

2010-02-16 Thread Ashish vashishtha
hello , is there any way to convert string to oid. for example i have a string string str that contains numeric oid like 1.3.6.1.1.1.1 how i convert it as OID type? -- Regards Ashish Vashishtha -- SOLARIS 10 is the OS

Re: [convert string as oid]

2010-02-16 Thread Dave Shield
On 16 February 2010 08:48, Ashish vashishtha ashish.vashish...@gmail.com wrote: is there any way to convert string to oid. for example i have a string string str that contains numeric oid like 1.3.6.1.1.1.1 how i convert it as OID type? snmp_parse_oid() Dave

Re: [convert string as oid]

2010-02-16 Thread Ashish vashishtha
strlen(ABcd).ASCII(A).ASCII(B).ASCII(c).ASCII(d) So A = 65 B= 66 c= 99 d = 100 Hence ur string oid would be 4..65.66.99.100 for ABcd --- On *Tue, 16/2/10, Ashish vashishtha ashish.vashish...@gmail.com*wrote: From: Ashish vashishtha ashish.vashish...@gmail.com Subject: [convert string

Re: [convert string as oid]

2010-02-16 Thread Dave Shield
On 16 February 2010 13:18, Ashish vashishtha ashish.vashish...@gmail.com wrote: I am reading oid from a xml file. and oids are in generic form like this oid1.3.6.1.1.133.5oid in xml file. i am reading this xml file and saving it as a std::string. now i need to convert it as oid for

Re: [convert string as oid]

2010-02-16 Thread Ashish vashishtha
i have my application specific xml file that has it own tags like. oid 1.3.6.1.1.133.5/oid i think snmp_parse_oid() function convert oids like ABCD to oid. when i am trying this function with string str that contains 1.3.6.1.1.133.5 i am getting garbage values. On Tue, Feb 16, 2010 at 6:53

Re: [convert string as oid]

2010-02-16 Thread Dave Shield
On 16 February 2010 13:43, Ashish vashishtha ashish.vashish...@gmail.com wrote: i think snmp_parse_oid() function convert oids like ABCD to oid. Whereas I think that snmp_parse_oid() converts a string representation of an OID (in any of a variety of formats - including dotted-numeric) into a

Re: [convert string as oid]

2010-02-16 Thread Dave Shield
On 16 February 2010 14:36, Ashish vashishtha ashish.vashish...@gmail.com wrote:  for( int k = 0; k vdata.size();k++)  {       char arr[MAX_OID_LEN];       oid kpioid[MAX_OID_LEN];           size_t oidlength = MAX_OID_LEN;       strcpy(arr,vdata[k].c_str()); Try clearing the

Re: [convert string as oid]

2010-02-16 Thread Ashish vashishtha
That also i have tried but result was the same. On Tue, Feb 16, 2010 at 8:18 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 16 February 2010 14:36, Ashish vashishtha ashish.vashish...@gmail.com wrote: for( int k = 0; k vdata.size();k++) { char arr[MAX_OID_LEN];

Re: [convert string as oid]

2010-02-16 Thread Vivek Singh Bhadauria
: Re: [convert string as oid] To: Ashish vashishtha ashish.vashish...@gmail.com Cc: Vivek Singh Bhadauria viv_...@yahoo.com, net-snmp-users@lists.sourceforge.net Date: Tuesday, 16 February, 2010, 7:37 PM On 16 February 2010 13:43, Ashish vashishtha ashish.vashish...@gmail.com wrote: i think

Re: [convert string as oid]

2010-02-16 Thread Ajeet Gupta
at 2:18 PM, Ashish vashishtha ashish.vashish...@gmail.com wrote: hello , is there any way to convert string to oid. for example i have a string string str that contains numeric oid like 1.3.6.1.1.1.1 how i convert it as OID type? -- Regards Ashish Vashishtha

String in OID

2009-06-05 Thread Vincent Bernat
Hi! I don't quite understand the rule to apply when an OCTET STRING is used as an index of a table. It seems that when several string are used as index, each string should be prefixed by its length (when converting to an OID). However, when the string comes in last position, no length is

Re: String in OID

2009-06-05 Thread Dave Shield
2009/6/5 Vincent Bernat ber...@luffy.cx: I don't quite understand the rule  to apply when an OCTET STRING is used as an index  of a table. It  seems that when several string  are used as index, each string should be  prefixed by its length (when converting to an OID). However,  when the string

Re: String in OID

2009-06-05 Thread Vincent Bernat
OoO En cette matinée pluvieuse du vendredi 05 juin 2009, vers 10:30, Dave Shield d.t.shi...@liverpool.ac.uk disait : I don't quite understand the rule  to apply when an OCTET STRING is used as an index  of a table. It  seems that when several string  are used as index, each string should

Re: String in OID

2009-06-05 Thread Dave Shield
2009/6/5 Vincent Bernat ber...@luffy.cx: So, a  variable-length string should  always be prefixed by  its length, except if it is IMPLIED. Yes. LldpManAddress ::= TEXTUAL-CONVENTION    SYNTAX      OCTET STRING (SIZE (1..31)) lldpLocManAddrEntry OBJECT-TYPE    INDEX   {

Exec string with OID doesnt work

2008-11-21 Thread Brent Jones
All, I'm trying to execute a script to assign the output to a special OID. It has worked for many of my machines in the past, but when I try to do so now, it will not let me assign an OID to it. It will work if I leave the OID field blank. Heres a little bit of info: NET-SNMP version: 5.4.2.1