SNMPGET specifying the community name

2010-01-05 Thread Irvs
Hello guys! Is it possible to have the value of the community string containing spaces? I am used to using the default community value which is 'public' but I just recently found out that it can be set into something different other than the 'public' string. But, I am having problem with querying(

Re: SNMPGET specifying the community name

2010-01-05 Thread Tarun Wadhwa
Hello Irvs, You could try enclosing the community name in quotes " " . That should work -Tarun On Wed, Jan 6, 2010 at 8:30 AM, Irvs wrote: > Hello guys! > > Is it possible to have the value of the community string containing spaces? > I am used to using the default community value which is 'pu

Re: SNMPGET specifying the community name

2010-01-06 Thread Irvs
Thanks Tarun. I can't seem to make it work, executing this command [snmpget -v2c -c "sample community" 10.10.10.9 enterprises] does not give me the right return value. Do you guys have an idea where in the source code can I find the part where it reads the community name value for evaluation? Th

Re: SNMPGET specifying the community name

2010-01-07 Thread Dave Shield
2010/1/7 Irvs : > I can't seem to make it work, executing this command [snmpget -v2c -c > "sample community" 10.10.10.9 enterprises] does not give me the right return > value. Well, no - it won't. 'enterprises' is the *root* of a tree of information, but there's nothing associated with this object

Re: SNMPGET specifying the community name

2010-01-07 Thread Irvs
Thanks Dave. I am sorry, the command I provided wasn't correct. It should work if I use the snmpwalk command instead of the snmpget or completed the OID string witht eh snmpget. With the current version I am using which is 5.0.8(from the FAQ file) I noticed a very weird behavior. I can successful

Re: SNMPGET specifying the community name

2010-01-07 Thread Dave Shield
2010/1/7 Irvs : > With the current version I am using which is 5.0.8 Argg!! That is a *very* *very* old version. It's not even the most up-to-date release on the 5.0.x line, which has been closed for development for several years. I'm pretty sure that spaces in community names are only suppor

Re: SNMPGET specifying the community name

2010-01-11 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. ] 2010/1/1

Re: SNMPGET specifying the community name

2010-01-12 Thread Irvs
Thanks Dave. Fair enough. > But be aware that by running with such an obsolete version > of the software, you are missing out on a *lot* of fixes > (including a number of security-related issues). > > You should think about planning an upgrade to something > a little newer when you have the time.

Re: SNMPGET specifying the community name

2010-01-12 Thread Dave Shield
2010/1/12 Irvs : > Unfortunately, the version we are using now does not have the vacm_conf.[ch] > files yet. Then look for the equivalent code in vacm_vars.c The same patch should be applicable there. Dave -- This SF.Net

Re: SNMPGET specifying the community name

2010-01-13 Thread Irvs
Dave, I finally got the fix suited for our system. First, I made sure to make the community name be enclosed inside a single quote when it is written on the snmpd.conf file. Then, when the security, group and access info are parsed, I avoided the use of strtok() but instead made use of the copy_