1) > But its working fine with remote host.
$ snmpwalk -v 1 -c public <remote ip> versiontag
Output: UCD-SNMP-MIB::versionTag.0 = STRING: 5.0.9
$ snmpwalk -v 1 -c public <remote ip> system
Output:
SNMPv2-MIB::sysDescr.0 = STRING: SunOS BILL2 5.10 Generic_118833-33
sun4u
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.3
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2121314354) 245 days,
12:32:23
.54
SNMPv2-MIB::sysContact.0 = STRING: "System administrator"
SNMPv2-MIB::sysName.0 = STRING: BILL2
SNMPv2-MIB::sysLocation.0 = STRING: "System administrators office"
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (25) 0:00:00.25
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID:
SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic
objects fo
r network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP
implementatio
ns
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and
ICMP imple
mentations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP
implementatio
ns
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for
SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and
Dispatchin
g.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information
definitions for th
e SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (22) 0:00:00.22
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (22) 0:00:00.22
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (22) 0:00:00.22
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (22) 0:00:00.22
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (22) 0:00:00.22
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (22) 0:00:00.22
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (24) 0:00:00.24
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (24) 0:00:00.24
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (25) 0:00:00.25
> 3)$snmpwalk -v 1 -c public localhost versiontag
> End of MIB
2) $ cat /etc/snmp/snmpd.conf
# Other ideas:
#
# exec .1.3.6.1.4.1.2021.51 ps /bin/ps
# exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top
# exec .1.3.6.1.4.1.2021.53 mailq /usr/bin/mailq
#
------------------------------------------------------------------------
-----
########################################################################
#######
# Pass through control.
#
# Usage:
# pass MIBOID EXEC-COMMAND
#
# This will pass total control of the mib underneath the MIBOID
# portion of the mib to the EXEC-COMMAND.
#
# Note: You'll have to change the path of the passtest script to your
# source directory or install it in the given location.
#
# Example: (see the script for details)
# (commented out here since it requires that you place the
# script in the right location. (its not installed by
default))
# pass .1.3.6.1.4.1.2021.255 /bin/sh /usr/local/local/passtest
# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.255
# enterprises.ucdavis.255.1 = "life the universe and everything"
# enterprises.ucdavis.255.2.1 = 42
# enterprises.ucdavis.255.2.2 = OID: 42.42.42
# enterprises.ucdavis.255.3 = Timeticks: (363136200) 42 days, 0:42:42
# enterprises.ucdavis.255.4 = IpAddress: 127.0.0.1
# enterprises.ucdavis.255.5 = 42
# enterprises.ucdavis.255.6 = Gauge: 42
#
# % snmpget -v 1 localhost public .1.3.6.1.4.1.2021.255.5
# enterprises.ucdavis.255.5 = 42
#
# % snmpset -v 1 localhost public .1.3.6.1.4.1.2021.255.1 s "New string"
# enterprises.ucdavis.255.1 = "New string"
#
# For specific usage information, see the man/snmpd.conf.5 manual page
# as well as the local/passtest script used in the above example.
# Added for support of bcm5820 cards.
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
########################################################################
#######
# Further Information
#
# See the snmpd.conf manual page, and the output of "snmpd -H".
rocommunity public
Thanks & Regards,
ElayaRaja
_________________________________________________________________
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Tuesday, April 29, 2008 6:48 PM
To: Sathasivam, Elayaraja
Cc: [email protected]
Subject: Re: End of MIB
2008/4/29 Sathasivam, Elayaraja <[EMAIL PROTECTED]>:
> 1) $snmpget -v 1 -c public localhost sysUpTime.0
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (21168) 0:03:31.68
>
> 3)$snmpwalk -v 1 -c public localhost versiontag
> End of MIB
What is in the file /etc/snmp/snmpd.conf ?
> But its working fine with remote host.
What do you mean by that?
Are you querying *from* the remote host to the system above?
Or are you querying from this system *to* the remote host?
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users