FW: Problems installing net-snmp

2009-08-20 Thread Ross, Brian

OK,

I've worked out that the command "/usr/local/sbin/snmpd
/usr/local/share/snmp/snmpd.conf" is NOT the command to start net-snmp.
It should just be "/usr/local/sbin/snmpd".  Thanks to Dave Shield for
confirming that.

I have also worked out that you should not have quotes around the server
name in the trap2sink line in the configuration file.  I am unsure why
the snmpconf command creates them in that way, if all they cause is
errors in the log file.  Ditto for the port numbers.

Now, my configuration file has been pared back to basically:

__

###
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#


###
# SECTION: Monitor Various Aspects of the Running Host
#
#   The following check up on various aspects of a host.

# proc: Check for processes that should be running.
# proc NAME [MAX=0] [MIN=0]
#
# NAME:  the name of the process to check for.  It must match
#exactly (ie, http will not find httpd processes).
# MAX:   the maximum number allowed to be running.  Defaults to 0.
# MIN:   the minimum number to be running.  Defaults to 0.
#
#   The results are reported in the prTable section of the UCD-SNMP-MIB
tree
#   Special Case:  When the min and max numbers are both 0, it assumes
#   you want a max of infinity and a min of 1.

proc  proftpd 1 1

# disk: Check for disk space usage of a partition.
#   The agent can check the amount of available disk space, and make
#   sure it is above a set limit.
#
#disk PATH [MIN=10]
#
#PATH:  mount path to the disk in question.
#MIN:   Disks with space below this value will have the Mib's
errorFlag set.
#   Can be a raw byte value or a percentage followed by the %
#   symbol.  Default value = 10.
#
#   The results are reported in the dskTable section of the UCD-SNMP-MIB
tree

disk  / 48
disk  /var 548

# load: Check for unreasonable load average values.
#   Watch the load average levels on the machine.
#
#load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
#
#1MAX:   If the 1 minute load average is above this limit at query
#time, the errorFlag will be set.
#5MAX:   Similar, but for 5 min average.
#15MAX:  Similar, but for 15 min average.
#
#   The results are reported in the laTable section of the UCD-SNMP-MIB
tree

load  12.0 12.0 12.0


###
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will
make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  xx

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact  "SDS (08) 9334 "


###
# SECTION: Trap Destinations
#
#   Here we define who the agent will send traps to.

# trap2sink: A SNMPv2c trap receiver
#   arguments: host [community] [portnum]

trap2sink  kens-mgmt-043 ISsCa1

# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]

informsink  kens-mgmt-043 ISsCa1

# trapcommunity: Default trap sink community to use
#   arguments: community-string

trapcommunity  ISsCa1

# authtrapenable: Should we send traps when authentication failures
occur
#   arguments: 1 | 2   (1 = yes, 2 = no)

authtrapenable  1
___

This however produces the following comment in the snmpd.log file:

"Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmpd.conf
file for this agent.
NET-SNMP version 5.4.2.1"

___

After running "snmpconf -g access_control" I removed that warning and
now simply get:

" NET-SNMP version 5.4.2.1"

In the snmpd.log.

___

When I attempt to test the installation, I get the following:

# snmpget -v 1 -c ISsCa1m localhost sysUpTime.0
Timeout: No Response from localhost.
r...@calm-dmz-6 /var/log# snmpwalk -v 2c -c ISsCa1m -m ALL loc

Re: ask snmptrap

2009-08-20 Thread Wes Hardaker
> On Tue, 18 Aug 2009 09:45:37 +0700, haries fajar nugroho 
>  said:

hfn> For example how do i do snmptrap on my linux machine is :  snmptrap
hfn> -v1 -c public 192.168.4.1 .1.3.6.1.2.1.25.2.3.1.5.1 localhost 6 1 ''
hfn> . Is it the right parameter to trap the storage size of my machine and
hfn> send it to computer on ip 192.168.4.1 ? if it is yes, how can i omit
hfn> the uptime information ? and what is the number "6 1" on that syntax
hfn> means, is it any other code number ?

You should read the tutorial about snmptrap at:

  http://www.net-snmp.org/wiki/index.php/TUT:snmptrap

The 6 and 1 are specific to SNMPv1, and I'd use SNMPv2c or above traps
if I were use.  They're easier to use and are identified by an OID
instead of the "6 1" type combination.

If you want to omit the uptime, just put in a 0.
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: ask snmptrap

2009-08-20 Thread Wes Hardaker
> On Fri, 14 Aug 2009 15:22:16 -0700 (PDT), niepa inter 
>  said:

ni> 0048: 03 00 04 0A  6D 79 75 73  65 72 6E 61  6D 65 04 00myusername..
...
ni> snmpwalk: Unknown user name

The remote agent hasn't been configured to accept the "myusername" user.
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: snmpd[7495]: couldn\'t map value 248 for ipAddressAddrType

2009-08-20 Thread Wes Hardaker
> On Tue, 18 Aug 2009 12:41:54 +0530, bheemesh v  said:

bv> I am using net-snmp 5.3.1, and is there a correction for this in any new
bv> version of net-snmp?

I believe there were some corrections to that code in the 5.4 tree.  Can
you try and that and see before anyone dives heavily into the problem
only to find out a recent version already fixes the problem.
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: CPU consumption

2009-08-20 Thread Wes Hardaker
> On Wed, 19 Aug 2009 14:16:35 +0300, "Marwan Khoury" 
>  said:

MK> It is a MIB that I have defined.  How can I add caching to the
MK> table?

What type of code did you use to code the mib instrumentation?
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: problem in subagent

2009-08-20 Thread Wes Hardaker
> On Wed, 19 Aug 2009 15:14:27 +0530, Darshan Ghumare 
>  said:

DG> I have created subagent using
DG> $*net-snmp-config --compile-subagent mysubagent nstAgentSubagentObject.c*

DG> $./mysubagent
DG> mysubagent: symbol lookup error: /usr/lib/libnetsnmpagent.so.15:
DG> undefined symbol: boot_DynaLoader

Hmm...  That likely means that the perl libraries weren't included in
the list of libraries that net-snmp-config is trying to link against.

Try this:

net-snmp-config --compile-subagent mysubagent nstAgentSubagentObject.c 
--with-ldflags=`net-snmp-config --agent-libs`

and see if that helps.

Be sure that you're using the same net-snmp-config that came from the
source code where your installed libraries came from.
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: engineIDType = ENGINEID_TYPE_NETSNMP_RND

2009-08-20 Thread Wes Hardaker
> On Thu, 20 Aug 2009 20:50:11 +0530, sanjaykumar 
>  said:

s> Actually I am getting wrong engine TIME in wireshark capture
s> I am reading the engine Time using the function 
s> "snmpv3_local_snmpEngineTime()"
s> While I was debugging the code I had the some doubt, It might be 
s> engineType which affecting it.

I'm not sure why wireshark would be having issues.  It has nothing to do
with the format of the EngineID though.  Wireshark should be ambivalent
about it.

The important thing about EngineIDs is that:

1) they must be unique.  A manager will get confused if two devices on
   the network contain the same ID.
2) if an engineID on a device changes, it's likely a running manager
   will get confused until it restarts.

One of the whole reasons that Net-SNMP uses the engine ID type it does
is to avoid conflicts that many of the other types of engineID creation
schemes can run into.
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


RE: Setting objects of type InetAddressType and InetAddress

2009-08-20 Thread Mike Ayers
> From: chandan [mailto:chandan.b...@globaledgesoft.com]
> Sent: Tuesday, August 11, 2009 4:10 AM


> Consider the following MIB objects:
> 
> pktcEUEDevOpSTUNAddrType  OBJECT-TYPE
> SYNTAX  InetAddressType
> MAX-ACCESS  read-create
> STATUS  current
> DESCRIPTION
> " This data element identifies the data type of the
>   value contained in 'pktcEUEDevOpSTUNAddr'."
> 
> DEFVAL   { unknown }
> ::= { pktcEUEDevOpEntry 3 }
> 
> pktcEUEDevOpSTUNAddr  OBJECT-TYPE
> SYNTAX  InetAddress
> MAX-ACCESS  read-create
> STATUS  current
> DESCRIPTION
> " This data element contains the STUN server address
>   associated with the domain name identified in
>   'pktcEUEDevOpDomain'."
> 
> DEFVAL   { "" }
> ::= { pktcEUEDevOpEntry 4 }
> 
> How do I use "snmpset" command to set the values of these MIB objects.
> Specifically what would the TYPE  (one of a, s, ...) be? For
> illustration purposes assume that we would want to set
> pktcEUEDevOpSTUNAddrType to IPv4(1) and pktcEUEDevOpSTUNAddr to the
> IP
> address 172.16.8.141.

$ snmpset [params] pktcEUEDevOpSTUNAddrType.[index] i ipv4 
pktcEUEDevOpSTUNAddr.[index] a 172.16.8.141

...should do the trick.


HTH,

Mike

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Traps from Windows 7 and Vista

2009-08-20 Thread niepa inter
Hello,

I was wondering if anyone has an idea on the type of traps sent by both Windows 
7 and/or Vista during "Add Printer Wizard" under TCP/IP printers.
I have been using Wireshark for the capture of the traps but I have realized 
that Wireshark do not capture traps(unless I have a wrong setting). It will 
capture get and getnext requests but it will not show traps.
Even when I send traps myself, I am able to receive them and they don't show up 
on Wireshark. I am basically watching udp 162 and udp 161.

Please could someone assist me with this ?
Thanks.

Yan~



  --
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


Re: engineIDType = ENGINEID_TYPE_NETSNMP_RND

2009-08-20 Thread sanjaykumar
Hi Dave,
   Actually I am getting wrong engine TIME in wireshark capture
  I am reading the engine Time using the function 
"snmpv3_local_snmpEngineTime()"
While I was debugging the code I had the some doubt, It might be 
engineType which affecting it.


What could be the reason of wrong Engine Creation Time. It is showing 
sometime 2191 or sometme 1909 ...
 
rgds,
Sanjay


Dave Shield wrote:
> 2009/8/18 sanjaykumar :
>   
>> As netsnmp-5.4.2.1 has by default set the engine id as
>> engineIDType = ENGINEID_TYPE_NETSNMP_RND
>>
>> But I have a doubt regarding the above.
>>
>> What should be default type ?
>> 
>
> That is a perfectly sensible choice of engineID algorithm.
> It's worked well for many years now. Why do you think
> there is a problem?
>
>
>   
>> as we have other options also as below
>> #define ENGINEID_TYPE_IPV41
>> #define ENGINEID_TYPE_IPV62
>> #define ENGINEID_TYPE_MACADDR 3
>> #define ENGINEID_TYPE_TEXT4
>> 
>
> These correspond to the mechanisms defined in RFC 3411.
> The first three are tightly linked to the network configuration
> of the local system.   Changes to network hardware (for
> example) could require a complete re-configuration of
> your network management systems.
>
>
>
>   
>> On what basic we need to decide what should be the engine ID type ?
>> 
>
> Is there any good reason for changing the current approach?
> If it's not broken, why fix it?
>
> Dave
>
>   


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: purpose of timeout/retry values for SNMP trap

2009-08-20 Thread Dave Shield
2009/8/20 srenivasan rs :
>  I would like to have clarification on timeout and retry values
> supported by snmptrap
> What is the purpose for these parameters for trap ?


The command "snmptrap" can be used to send both
unacknowleged traps, and acknowleged inform notifications.

The timeout/retry values are indeed irrelevant for trap requests,
but *are* relevant for informs.

Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Specifying Multiple directories for SNMPGet

2009-08-20 Thread Sowmya P Venkatesh
Hi Dave,

In snmpget we have an option -M. All my mibs are stored in 2 custom folders -> 
c:\Folder1 and c:\Folder2. Now can you pleae give an example of how to use 
these 2 directories in snmpget command

Regards,

Sowmya P Venkatesh
Test Conductor - Dev Team - INDIA
M: +91 99400 42932
O: +91 44 4282 9259
svenkat...@ixiacom.com


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


Re: Specifying Multiple directories for SNMPGet

2009-08-20 Thread Dave Shield
2009/8/20 Sowmya P Venkatesh :
> In snmpget we have an option –M. All my mibs are stored in 2 custom folders
> -> c:\Folder1 and c:\Folder2. Now can you pleae give an example of how to
> use these 2 directories in snmpget command

  From the snmpcmd(1) man page:

   -M DIRLIST
  Specifies a ===>colon separated list<=== of directories
to search for MIBs


Note that this is written from a Unix perspective.
On windows, you'd use ';' rather than ':' to separate the list of folders.


Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


purpose of timeout/retry values for SNMP trap

2009-08-20 Thread srenivasan rs
Hi All,

  I would like to have clarification on timeout and retry values 
supported by snmptrap.

  For normal SNMP requests, we need to use retry and timeout to get the 
results from device.
What is the purpose for these parameters for trap since trap is an 
unsolicited message to manager.
and how the device knows when to resend the trap again and when timeout 
is to be used?

 I have tried out some of the RFC's like 1157. but, I did not find out 
anything.

Thanks in advance,

R Srinivasan


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: How to install snmptrapd?

2009-08-20 Thread Dave Shield
2009/8/20 Sahoo, Manas R (GE Infra, Energy) :
> I have installed net-snmp 5.4.21.in linux PC. I am bale to get all the
> executables except snmptrapd. The snmptrapd command is not found.

If there were errors during the build of snmptrapd, then it's not
really surprising if the snmptrapd binary is missing.


> Also while using the snmptrapd_add_seesion function, build errors are coming.

Something must have gone wrong.


> Please help!..

If you had bothered to give some indication of what these "build errors" were,
then perhaps we might have been able to.   But in the absence of any solid
information, there's nothing we can do.  We can not read your mind!

Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


How to install snmptrapd?

2009-08-20 Thread Sahoo, Manas R (GE Infra, Energy)
All,

I have installed net-snmp 5.4.21.in linux PC. I am bale to get all the
executables except snmptrapd. The snmptrapd command is not found. Also
while using the snmptrapd_add_seesion function, build errors are coming.

Please help!..

Regards,
Manas

Manas Ranjan Sahoo
GE Energy

T  +91-40-4022 0431
D  *709 - 0431
M  +91-99634 22624

Hyderabad Technology Center
Unit No.# 02-01,2nd Floor
Block 1, Cyber Pearl, HITEC CITY
Hyderabad - 500081


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: Need username /password for ftp

2009-08-20 Thread Dave Shield
2009/8/20 Nandini Saikia (nsaikia) :
> Please let me know where I can download net-SNMP for windows and
> how do I install it.

This is available from the project website
http://www.net-snmp.org/download.html

Click the link "binaries" (next to 5.4.2.1),
and retrieve the file net-snmp-5.4.2.1-1.win32.exe

Then run this program to install the software.

Please note that you will need to configure the agent
before you can use it.   See the documentation on the
same website for more details.   In particular, please
familiarise yourself with the contents of the FAQ.


> Also I got a ftp site to download net-SNMP, please let me know what is the
> username/password to login.


In general, if you have to retrieve stuff from an FTP server, you should
use the username "ftp" or "anonymous", with your email address as
the password.
But if you use the link above, you shouldn't need to worry abouy this.
Similarly, if you use a web browser to access an FTP address, this
should handle the username/password for you automatically.

Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: question about '-c configfile' option of snmpd

2009-08-20 Thread Dave Shield
2009/8/20 Asano Yasushi :
> When we execute snmpd, it searches the configuration file from /etc/snmp
> automatically

That is correct.  There is a built-in path to search for configuration files.

>   even if we do not use -c option.

The '-c' option is used to *add* config files to this search path,
rather than replace the list completely.

> If we execute snmpd usimg -c option as follows,
>
> /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a -c
> /etc/snmp/snmpd.conf
>
> snmpd.conf was read and instruction was given in snmpd.conf twice.
> Is this a specification? It seems like a redundancy.

It's a mis-invocation - you don't need to specify configuration files
that is on the default search path.   Alternatively, you could use the
'-C' flag to clear this default list, before reading the specified
config file(s).


Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: Problems installing net-snmp

2009-08-20 Thread Dave Shield
2009/8/20 Ross, Brian :
>  [after] starting
> snmpd with the command " /usr/local/sbin/snmpd
> /usr/local/share/snmp/snmpd.conf" (I am unsure if that is the correct
> start command) 
>
> Am I starting it with the wrong command?

Yes, you are.

Try simply running "snmpd" (after restoring the snmpd.conf file).
That should work.

If you still have problems, try running the agent using
"snmpd -f -Le"
which should display any error output.


> Also when I attempt to use the snmpget and snmpwalk commands to test the
> snmpd system, I keep getting a "timeout" response.  :-(

That's because the agent isn't listening.
Or rather, it's listening on a Unix socket named
"/usr/local/share/snmp/snmpd.conf"
(which is why the config file gets overwritten).

Restart the agent without any options (or with '-f -Le')
and try the snmpget/snmpwalk commands again.

If they still don't work, please report the exact commands
you are giving, the full contents of the snmpd.conf file,
and any output from both agent and clients.
   Details are often important - a report that "it doesn't work"
isn't particularly useful.


Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: Question on SNMP configuration of VLAN on a CISCO Catalyst Switch

2009-08-20 Thread Dave Shield
2009/8/20 Piletti Chiara :
> I'm working on the configuration of a CISCO CATALYST 3550 switch through
> SNMP and I have to perform these 3 steps:
>
> 1. CREATE VLAN
> 2. ASSIGN AN IP ADDRESS TO THE SVI RELATED TO THE VLAN JUST CREATED
> 3. ADD THIS VLAN AMONG THOSE ALLOWED ON THE SWITCH PORTS IN TRUNK
>
> I was able to perform the first step by using this documentation
> http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a00801c6035.shtml
>
> May anyone please help me on performing the other 2 steps? I need
> documentation on how to assign an IP address to a SVI and on how to add a
> VLAN among the allowed on the trunk ports USING SNMP.


That's really a question about how to manage the Cisco switch,
rather than about the Net-SNMP tools in particular.

I suggest you ask Cisco about this.

Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Need username /password for ftp

2009-08-20 Thread Nandini Saikia (nsaikia)
Hi All,
 
   I am a new user to NET-SNMP.
 
Please let me know where I can download net-SNMP for windows and how do
I install it.
 
Also I got a ftp site to download net-SNMP, please let me know what is
the username/password to login.
 
Thanks,
Nandini
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


question about '-c configfile' option of snmpd

2009-08-20 Thread Asano Yasushi
Hello,

We have a question about snmpd(NET-SNMP version 5.4.2).
When we execute snmpd, it searches the configuration file from /etc/snmp
automatically even if we do not use -c option.
If we execute snmpd usimg -c option as follows,

/usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a -c
/etc/snmp/snmpd.conf

snmpd.conf was read and instruction was given in snmpd.conf twice.
Is this a specification? It seems like a redundancy.
When trapsink is used in snmpd.conf, the trap is issued two times from
the client.

Regards,

Yasushi Asano


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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