Dear Dave,

It still timeout ,please see result below .

Now this  is my snmpd.conf   
/usr/local/share/snmp#cat snmpd.conf
###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#

###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]
rocommunity  public


and then

1)check snmpd process
/usr/local/share/snmp#ps -ef|grep snmpd
    root 1011744 3473524   0 14:56:17  pts/1  0:00 grep snmpd
    root 1077420  540752   0 16:33:23      -  0:00 /usr/sbin/snmpd
2) stop snmpd
/usr/local/share/snmp#stopsrc -s snmpd
0513-044 The snmpd Subsystem was requested to stop.
3)start snmpd
/usr/local/share/snmp#/usr/local/sbin/snmpd
4)check snmpd process again
/usr/local/share/snmp#ps -ef|grep snmpd
    root 1011746       1   0 14:56:39      -  0:00 /usr/local/sbin/snmpd
    root 3522632 3473524   0 14:56:46  pts/1  0:00 grep snmpd
5)run command snmpget -v 1 -c public localhost  sysDescr.0
/usr/local/bin#./snmpget -v 1 -c public localhost  sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: AIX sapdev 3 5 0008B7BED700
6)run command snmpwalk 

/usr/local/bin#./snmpwalk -v1 -cpublic localhost
SNMPv2-MIB::sysDescr.0 = STRING: AIX sapdev 3 5 0008B7BED700
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.15
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15256) 0:02:32.56
SNMPv2-MIB::sysContact.0 = STRING: root@@no.where
SNMPv2-MIB::sysName.0 = STRING: sapdev
SNMPv2-MIB::sysLocation.0 = STRING: /usr/local/bin
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.9 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatchin
g.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for th
e SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementatio
ns
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP imple
mentations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementatio
ns
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.9 = STRING: The MIB module to describe generic objects fo
r network interface sub-layers
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00
IF-MIB::ifNumber.0 = INTEGER: 0
IP-MIB::ipForwarding.0 = INTEGER: 0
IP-MIB::ipDefaultTTL.0 = INTEGER: 0
IP-MIB::ipInReceives.0 = Counter32: 416021632
IP-MIB::ipInHdrErrors.0 = Counter32: 0
IP-MIB::ipInAddrErrors.0 = Counter32: 0
IP-MIB::ipForwDatagrams.0 = Counter32: 0
IP-MIB::ipInUnknownProtos.0 = Counter32: 729577
IP-MIB::ipInDiscards.0 = Counter32: 0
IP-MIB::ipInDelivers.0 = Counter32: 399404278
IP-MIB::ipOutRequests.0 = Counter32: 399404280
IP-MIB::ipOutDiscards.0 = Counter32: 0
IP-MIB::ipOutNoRoutes.0 = Counter32: 0
IP-MIB::ipReasmTimeout.0 = INTEGER: 0 seconds
IP-MIB::ipReasmReqds.0 = Counter32: 0
IP-MIB::ipReasmOKs.0 = Counter32: 0
IP-MIB::ipReasmFails.0 = Counter32: 0
IP-MIB::ipFragOKs.0 = Counter32: 0
IP-MIB::ipFragFails.0 = Counter32: 0
IP-MIB::ipFragCreates.0 = Counter32: 0
IP-MIB::ipRoutingDiscards.0 = Counter32: 68428
IP-MIB::icmpInMsgs.0 = Counter32: 325092
IP-MIB::icmpInErrors.0 = Counter32: 371803
IP-MIB::icmpInDestUnreachs.0 = Counter32: 0
IP-MIB::icmpInTimeExcds.0 = Counter32: 0
IP-MIB::icmpInParmProbs.0 = Counter32: 0
IP-MIB::icmpInSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpInRedirects.0 = Counter32: 0
IP-MIB::icmpInEchos.0 = Counter32: 0
IP-MIB::icmpInEchoReps.0 = Counter32: 0
IP-MIB::icmpInTimestamps.0 = Counter32: 0
IP-MIB::icmpInTimestampReps.0 = Counter32: 0
IP-MIB::icmpInAddrMasks.0 = Counter32: 0
IP-MIB::icmpInAddrMaskReps.0 = Counter32: 0
IP-MIB::icmpOutMsgs.0 = Counter32: 519784
IP-MIB::icmpOutErrors.0 = Counter32: 371803
IP-MIB::icmpOutDestUnreachs.0 = Counter32: 0
IP-MIB::icmpOutTimeExcds.0 = Counter32: 0
IP-MIB::icmpOutParmProbs.0 = Counter32: 0
IP-MIB::icmpOutSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpOutRedirects.0 = Counter32: 0
IP-MIB::icmpOutEchos.0 = Counter32: 0
IP-MIB::icmpOutEchoReps.0 = Counter32: 0
IP-MIB::icmpOutTimestamps.0 = Counter32: 0
IP-MIB::icmpOutTimestampReps.0 = Counter32: 0
IP-MIB::icmpOutAddrMasks.0 = Counter32: 0
IP-MIB::icmpOutAddrMaskReps.0 = Counter32: 0
TCP-MIB::tcpRtoAlgorithm.0 = INTEGER: vanj(4)
TCP-MIB::tcpRtoMin.0 = INTEGER: 0 milliseconds
TCP-MIB::tcpRtoMax.0 = INTEGER: 0 milliseconds
TCP-MIB::tcpMaxConn.0 = INTEGER: -1
TCP-MIB::tcpActiveOpens.0 = Counter32: 701813
TCP-MIB::tcpPassiveOpens.0 = Counter32: 163144
TCP-MIB::tcpAttemptFails.0 = Counter32: 24600
TCP-MIB::tcpEstabResets.0 = Counter32: 24600
TCP-MIB::tcpCurrEstab.0 = Gauge32: 0
TCP-MIB::tcpInSegs.0 = Counter32: 405932720
TCP-MIB::tcpOutSegs.0 = Counter32: 392571678
TCP-MIB::tcpRetransSegs.0 = Counter32: 0
TCP-MIB::tcpInErrs.0 = Counter32: 10295
TCP-MIB::tcpOutRsts.0 = Counter32: 0
UDP-MIB::udpInDatagrams.0 = Counter32: 9210815
UDP-MIB::udpNoPorts.0 = Counter32: 371803
UDP-MIB::udpInErrors.0 = Counter32: 3602954
UDP-MIB::udpOutDatagrams.0 = Counter32: 5651662
SNMPv2-MIB::snmpInPkts.0 = Counter32: 129
SNMPv2-MIB::snmpOutPkts.0 = Counter32: 129
SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0
SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 111
SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0
SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 29
SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 114
SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0
SNMPv2-MIB::snmpInTraps.0 = Counter32: 0
SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 28
SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0
SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 153
SNMPv2-MIB::snmpOutTraps.0 = Counter32: 0
SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0
SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (0) 0:00:00.00
HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2009-4-1,14:59:12.0,+7:0
HOST-RESOURCES-MIB::hrSystemInitialLoadDevice.0 = INTEGER: 1536
HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Gauge32: 2
HOST-RESOURCES-MIB::hrSystemProcesses.0 = Gauge32: 784
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 16777216 KBytes
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.32 = INTEGER: 32
HOST-RESOURCES-MIB::hrStorageIndex.33 = INTEGER: 33
HOST-RESOURCES-MIB::hrStorageIndex.34 = INTEGER: 34
HOST-RESOURCES-MIB::hrStorageIndex.35 = INTEGER: 35
HOST-RESOURCES-MIB::hrStorageIndex.36 = INTEGER: 36
HOST-RESOURCES-MIB::hrStorageIndex.37 = INTEGER: 37
HOST-RESOURCES-MIB::hrStorageIndex.38 = INTEGER: 38
HOST-RESOURCES-MIB::hrStorageIndex.39 = INTEGER: 39
HOST-RESOURCES-MIB::hrStorageIndex.40 = INTEGER: 40
HOST-RESOURCES-MIB::hrStorageIndex.41 = INTEGER: 41
HOST-RESOURCES-MIB::hrStorageIndex.42 = INTEGER: 42
HOST-RESOURCES-MIB::hrStorageIndex.43 = INTEGER: 43
HOST-RESOURCES-MIB::hrStorageIndex.44 = INTEGER: 44
HOST-RESOURCES-MIB::hrStorageIndex.45 = INTEGER: 45
HOST-RESOURCES-MIB::hrStorageIndex.46 = INTEGER: 46
HOST-RESOURCES-MIB::hrStorageIndex.47 = INTEGER: 47
HOST-RESOURCES-MIB::hrStorageIndex.48 = INTEGER: 48
HOST-RESOURCES-MIB::hrStorageIndex.49 = INTEGER: 49
HOST-RESOURCES-MIB::hrStorageIndex.50 = INTEGER: 50
HOST-RESOURCES-MIB::hrStorageIndex.51 = INTEGER: 51
HOST-RESOURCES-MIB::hrStorageIndex.52 = INTEGER: 52
HOST-RESOURCES-MIB::hrStorageIndex.53 = INTEGER: 53
HOST-RESOURCES-MIB::hrStorageIndex.54 = INTEGER: 54
HOST-RESOURCES-MIB::hrStorageIndex.55 = INTEGER: 55
HOST-RESOURCES-MIB::hrStorageIndex.56 = INTEGER: 56
HOST-RESOURCES-MIB::hrStorageIndex.57 = INTEGER: 57
HOST-RESOURCES-MIB::hrStorageIndex.58 = INTEGER: 58
HOST-RESOURCES-MIB::hrStorageIndex.59 = INTEGER: 59
HOST-RESOURCES-MIB::hrStorageIndex.60 = INTEGER: 60
HOST-RESOURCES-MIB::hrStorageIndex.61 = INTEGER: 61
HOST-RESOURCES-MIB::hrStorageIndex.62 = INTEGER: 62
HOST-RESOURCES-MIB::hrStorageIndex.63 = INTEGER: 63
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtua
lMemory
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtu
alMemory
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.32 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.33 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.34 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.35 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.36 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.37 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.38 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.39 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.40 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.41 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.42 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.43 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
HOST-RESOURCES-MIB::hrStorageType.44 = OID: HOST-RESOURCES-TYPES::hrStorageFixed
Disk
Timeout: No Response from localhost

8)check snmpd process 
/usr/local/bin#ps -ef|grep snmpd
    root 1101850 3473524   0 15:00:20  pts/1  0:00 grep snmpd

Process snmpd already gone,please help me to solve it

Best Regards,


________________________________
From: Dave Shield <[email protected]>
To: down Load <[email protected]>
Cc: [email protected]
Sent: Wednesday, April 1, 2009 2:30:47 PM
Subject: Re: snmpwalk can't walk when start by /usr/local/sbin/snmpd

2009/4/1 down Load <[email protected]>:

> rocommunity  public


> com2sec notConfigUser  default       public
> group   notConfigGroup v1           notConfigUser
> group   notConfigGroup v2c           notConfigUser
> view    allview    included   .1.3.6
> access  notConfigGroup ""      any       noauth    exact  allview none none

First thing - you are mixing two different types of access control.
*Either* use "rocommunity" *or* use "com2sec/group/view/access".
Don't try to use both at the same time.



> agentaddress  161

> # Proxy IBM Agnt Requests for port number
> proxy -v 1 -c public 127.0.0.1:161 1.3.6.1.4.1.2.2.1.1.0

That doesn't make sense either.
You are listening on port 161, but then forwarding certain
requests to the agent listening on port 161.
Which is the same agent.

So if a request comes in for this object (or any of the other
proxied areas), it will be forwarded to the agent on localhost:161.
Which will then be forwarded to the agent on localhost:161.
Which will then be forwarded to the agent on localhost:161.
Which will then be forwarded to the agent on localhost:161.
Which will then be forwarded to the agent on localhost:161.
Which will then be forwarded to the agent on localhost:161.


> Please help me to solve this problem

I'd start by simplifying your config.
Remove *EVERYTHING* and just use the single line

    rocommunity public

Then restart the agent.

Now try running the command

    snmpget -v 1 -c public localhost  sysDescr.0

Do you get anything back?

Dave



      
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to