Re: version of imlementation(i solved)

Mohsen Pahlevanzadeh <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
In both machine i change snmp.conf (not snmpd) to :

mibs +ALL

mibdirs +/var/lib/mibs/iana/

mibdirs +/var/lib/mibs/ietf/

mibdirs +/usr/share/snmp/mibs/

On 02/22/2015 08:47 AM, Mohsen
Pahlevanzadeh wrote:

Dear All,

I have 3 debian :

cacti hostname , dev32 hostname and amd64 hostname:

I installed snmp-mibs-downloader, snmpd and snmp on them.

Along with installation of snmpd I compiled net-snmpd 5.7.3 on
/opt/, snmpd of my debian is 5.4.x

When i use the following command : (5.7.3 [last version])

/////////////////////////////////////////////////////////////////////

opt/net-snmp/bin/snmpwalk -v 2c -c public localhost system

SNMPv2-MIB::sysDescr.0 = STRING: Linux debian 3.16.0-4-amd64 #1
SMP Debian 3.16.7-ckt4-3 (2015-02-03) x86_64

SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (316189)
0:52:41.89

SNMPv2-MIB::sysContact.0 = STRING: Me <[email protected]>

SNMPv2-MIB::sysName.0 = STRING: debian

SNMPv2-MIB::sysLocation.0 = STRING: Sitting on the Dock of the Bay

SNMPv2-MIB::sysServices.0 = INTEGER: 72

SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORID.1 = OID: SNMP-MPD-MIB::snmpMPDCompliance

SNMPv2-MIB::sysORID.2 = OID:
SNMP-USER-BASED-SM-MIB::usmMIBCompliance

SNMPv2-MIB::sysORID.3 = OID:
SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance

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:
SNMP-NOTIFICATION-MIB::snmpNotifyFullCompliance

SNMPv2-MIB::sysORID.10 = OID:
NOTIFICATION-LOG-MIB::notificationLogMIB

SNMPv2-MIB::sysORDescr.1 = STRING: The MIB for Message Processing
and Dispatching.

SNMPv2-MIB::sysORDescr.2 = STRING: The management information
definitions for the SNMP User-based Security Model.

SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management
Architecture MIB.

SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2
entities

SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP
implementations

SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP
and ICMP implementations

SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP
implementations

SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model
for SNMP.

SNMPv2-MIB::sysORDescr.9 = STRING: The MIB modules for managing
SNMP Notification, plus filtering.

SNMPv2-MIB::sysORDescr.10 = STRING: The MIB module for logging
SNMP Notifications.

SNMPv2-MIB::sysORUpTime.1 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.2 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.3 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.9 = Timeticks: (1) 0:00:00.01

SNMPv2-MIB::sysORUpTime.10 = Timeticks: (1) 0:00:00.01

/////////////////////////////////////////////////////////////////////////////////////////////////

But when i use :

////////////////////////////////////////////////////////////////////////

root@debian:/home/mohsen# snmpwalk -v 2c -c public localhost
system

system: Unknown Object Identifier (Sub-id not found: (top) ->
system)

//////////////////////////////////////////////////////////////////////////////////////

Do you have any solution unless compiling net-snmpd last version
on three computer? Because they was test, i need to a bigger
environment.

My snmpd.conf :

/////////////////////////////////////////////////////////////////////////////////////////////

 grep -E -v "^$" /etc/snmp/snmpd.conf |grep -v ^#

agentAddress udp:127.0.0.1:161

view  systemonly included  .1.3.6.1.2.1.1

view  systemonly included  .1.3.6.1.2.1.25.1

rocommunity public localhost

rocommunity public default   -V systemonly

rocommunity6 public default  -V systemonly

com2sec readonly localhost public

com2sec readonly 192.168.1.11 public

com2sec readonly 192.168.1.10 public

rouser  authOnlyUser

sysLocation   Sitting on the Dock of the Bay

sysContact    Me <[email protected]>

sysServices   72

proc mountd

proc ntalkd   4

proc sendmail 10 1

disk      /    10000

disk      /var 5%

includeAllDisks 10%

load  12 10

trapsink    localhost public

trap2sink   localhost public

iquerySecName  internalUser     Â

rouser         internalUser

defaultMonitors         yes

linkUpDownNotifications yes

extend   test1  /bin/echo Hello, world!

extend-sh test2Â Â echo Hello, world! ; echo Hi there ; exit 35

master         agentx

//////////////////////////////////////////////////////////////////////////////////////////////

---Regards

Mohsen

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk

_______________________________________________
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

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.