Fwd: RE: RE: snmpget returns Unknown host

2007-08-31 Thread Reza Salehi
Thanks Mike. The following line is in that file: 127.0.0.1 localhost.localhostdomainlocalhost It seems it defined fine.Is there any other place that might be changed? Regards, Reza Note: forwarded message attached.

RE: RE: snmpget returns Unknown host

2007-08-31 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Reza Salehi > When I use 127.0.0.1 it works fine but I can also so do < > ping localhost > and that works fine too. I doubt that means anything, since I would expect ping to have the value of "localhost" compiled i

Fwd: RE: snmpget returns Unknown host

2007-08-31 Thread Reza Salehi
Thanks Mike for your response. When I use 127.0.0.1 it works fine but I can also so do < ping localhost > and that works fine too.It seems snmpget doesn't like the localhost name. Any suggestion in this matter would be appreciated. Regards, Reza Note: forwarded message attached.

RE: snmpget returns Unknown host

2007-08-31 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Reza Salehi > Sent: Thursday, August 30, 2007 3:01 PM > I am having problem with snmpget or set on query from local host. > When I type: snmpget -d -v 2c -c TC localhost sysUpTime >snmpget : Unknown

RE: install snmp module

2007-08-31 Thread Bruce Shaw
You've covered a lot of ground here so I'll address (hopefully correctly - I don't use nagios or perl with SNMP) one issue at a time. >I want to install perl SNMP module on solaris 10 servers and I cannot do that successfully by using >perl -MCPAN -e shell > install SNMP >failed. >I do not

Can not find Module (DISMAN-EVENT-MIB): at line 0

2007-08-31 Thread Reza Salehi
Hi All, I am running Net-snmp 5.4. Whenever I run snmpd or snmpget or set It will give me two errors: Cannot Finf module : (DISMAN-EVENT-MIB): AT line 0 in (none) cannot find module : (NET-SNMP-VACM-MIB):At ine 0 in (none) I put those MIB file in usr/local/share/snmp/mibs

RE: Length of string variable in a Trap

2007-08-31 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Edison C. > Sent: Wednesday, August 29, 2007 10:12 PM > What is the maximum length of a SNMP packet supported by > NET-SNMP? Is it > 64KB since max size of UDP packet size is 64KB? To the best of my knowledge, that i

RE: Failed to connect to agentx master agent

2007-08-31 Thread Jayaprakasha Guddenahalli Naganna
>>/usr/local/sbin/snmpd -c /usr/local/share/snmpsnmpd.conf -X >>tcp:localhost:706 I think you have given wrong configuration file name "snmpsnmpd.conf". Please check the file name. Thanks -JP -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED

RE: NET-SNMP - Table - which CONFIG file to be used for compilation

2007-08-31 Thread Jayaprakasha Guddenahalli Naganna
Use "mib2c.user-array.conf" if data is sorted and maintained in agent code. Use "mib2c.iterate_access.conf" if data is not sorted and not maintained in agent code. -JP From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Praveen2 K Sent: Friday, August

install snmp module

2007-08-31 Thread yifei wu
Hi, I want to install perl SNMP module on solaris 10 servers and I cannot do that successfully by using perl -MCPAN -e shell > install SNMP failed. I do not know why. However why i can seel /user/perl5/5.8.4/sun4-solaris-64int/SNMP.pm there. does that mean SNMP module is installed by default?

NET-SNMP - Table - which CONFIG file to be used for compilation

2007-08-31 Thread Praveen2 K
Hi All, I am new to NET-SNMP and I want to compile the tabular object given below. Out of the entries in it, SwitchPortAdminStatus, SwitchPortVlanState, SwitchPortVlanID are Read-Write, rest all are read-only. I would like to know how to compile it, which CONFIG file to be used - mib2c.mfd.conf

RE: RE: table can't be get and set, var_***Table functin is not i nvok ed anyway

2007-08-31 Thread Adam Bell
Sorry, mistake in my last send. Not sure where the problem is. -Original Message- From: Adam Bell Sent: Friday, August 31, 2007 7:14 AM To: 'ye_cl'; Adam Bell Cc: net-snmp-users Subject: RE: RE: table can't be get and set, var_***Table functin is not invok ed anyway If 1.3.6.1.4.1.191

RE: RE: table can't be get and set, var_***Table functin is not i nvok ed anyway

2007-08-31 Thread Adam Bell
If 1.3.6.1.4.1.19176.1.1.20.9.1 is the table OID 1.3.6.1.4.1.19176.1.1.20.9.1.1 is the Entry OID 1.3.6.1.4.1.19176.1.1.20.9.1.1.1 is the first item in the table. I can't see where 1.1.2.1 is coming from. Adam -Original Message- From: ye_cl [mailto:[EMAIL PROTECTED] Sent: Friday, August

Re: Using a non-default context as a AgentX subagent?

2007-08-31 Thread Thomas Anders
Davin wrote: > I'd like to be able to have snmpd register itself under a different > context when operating in AgentX subagent mode. I've scoured the > documentation and Google for a few hours but haven't had much luck > finding information on how to accomplish this. > > From what I know of A

Re: library to parse and create mib tree

2007-08-31 Thread Thomas Anders
Shawn He wrote: > I am looking for a open-source library that does parse and create mib > tree data structure from a mib file such that I can directly access the > tree. It seems net-snmp not directly support this feature. Any > suggestion where I should look? Have look at libsmi: http://www.ibr.c