Hi Magnus,
I changed to mibs ALL, 
now it is working for the some of the MIBs, but some not.

IF-MIB::ifAdminStatus.5 = INTEGER: up(1)
IF-MIB::ifAdminStatus.6 = INTEGER: up(1)
IF-MIB::ifAdminStatus.7 = INTEGER: up(1)
IF-MIB::ifAdminStatus.8 = INTEGER: up(1)
IF-MIB::ifAdminStatus.9 = INTEGER: up(1)

But
SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.177 = STRING: "VLAN0177"
SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.178 = STRING: "VLAN0178"
SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.179 = STRING: "VLAN0179"
SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.180 = STRING: "VLAN0180"
SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.181 = STRING: "VLAN0181"
SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.182 = STRING: "VLAN0182"
SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.184 = STRING: "VLAN0184"

And also can you please let me know how to add a new directory in default 
directory?
Like how to add a new directory under:
$net-snmp-config --default-mibdirs

Thanks for your help.

With regards,
Biswajit

> Subject: Re: Reg: SNMP Output - Need to Get Object Name in stead of OID
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Date: Thu, 28 Apr 2011 13:45:02 +0200
> 
> On Thu, 2011-04-28 at 17:04 +0530, Biswajit Mandal wrote:
> > Hi,
> > While doing snmpwalk on agent, I am getting the output in OID format,
> > as below:
> > $snmpwalk -v 2c -c "public" <IP> 1
> > ................
> > iso.3.6.1.2.1.2.2.1.17.7 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.8 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.9 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.10 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.11 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.12 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.13 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.14 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.15 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.16 = Counter32: 0
> > iso.3.6.1.2.1.2.2.1.17.17 = Counter32: 0
> > ...........
> > I have added all the MIBs in /usr/share/snmp/mibs and 
> > put the below line in snmp.conf file in /root/.snmp
> > mibs +ALL
> > 
> > $net-snmp-config --default-mibdirs
> > /root/.snmp/mibs:/usr/share/snmp/mibs
> > 
> > But still not getting the Object Names in output.
> > Can you please point me out where I am doing wrong?
> 
> I am using the line
> 
> mibs ALL
> 
> in my snmp.conf.
> 
> Does that make any change for you?
> 
> /MF
> 
> 
                                          
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to