When I try on other system MIBs It is working perfectly.... I have =
tried on SNMP MIB and system MIB.
Thanks in advance.
Regards
Kumar
> Hi,
>=20
> I am struggling from past three days on same problem> ...>=20
>=20
> 1. I have complied my MIB ( ADSL-LINE-MIB) with net-SNMP agent =
-- success.=20
> ( Note: code is generated with mib2c.iterate.conf )
>=20
> 2. I have created snmpd.conf (with rocommunity is public and =
rwcommunity is private ).
> 3. I have started snmp demon in following way with root access.
>=20
> agent/snmpd -r -f -Lo -m ALL -M =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf -c =
/home/kumar/.snmp/snmpd.conf - C -d -a =20
>=20
> Output of the demon> ...>=20
>=20
> init_adslMIB: Entered =20
> initialize_table_adslLineConfProfileTable: Entered =20
> netsnmp_create_handler_registration =20
> netsnmp_create_handler_registration success =20
> netsnmp_table_helper_add_indexes =20
> netsnmp_register_table_iterator =20
> adslLineConfProfileTable_createEntry: Entered SNMP_TYPEDEF_MALLOC =20
> adslLineConfProfileTable Entry: created with profile name: 0000000001 =
> adslLineConfProfileTable_createEntry: Entered SNMP_TYPEDEF_MALLOC=20
> adslLineConfProfileTable Entry: created with profile name: 0000000002
> ( Note: All the above logs are added by for debugging> ...> )
>=20
> ( some more errors from other MIBS.. Because I am loading all MIBs =
from specified directory.. Those I have ignored..
> For reference I have including all those errors at the end of the =
mail)
>=20
> NET-SNMP version 5.2.1
>=20
> 4. I have requested one object in following way with root access.
>=20
> ( some more errors from other MIBS.. Because I am loading all MIBs =
from specified directory.. Those I have ignored..
> For reference I have included all those errors at the end of the =
mail)
>=20
> snmpget -v 2c -m ALL -M =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private =
10.94.1.1.14.1.2."0000000001"
>=20
> Output of the command:
>=20
> =
transmission.adslMIB.adslLineMib.adslMibObjects.adslLineConfProfileTable.=
adslLineConfProfileEntry.adslAtucConfRateMod e.'.' =3D No Such Object =
available on this agent
>=20
> So, It has recognised the path properly> ...> I feel that problem is =
in instance of the object.. I have given MIB definitions at end of the =
question.
>=20
> =09
> Output of the demon when requested the OID..
>=20
>=20
> Received 49 bytes from UDP: [127.0.0.1]:33965
> 0000: 30 2F 02 01 01 04 07 70 72 69 76 61 74 65 A0 21 =
0/.....private !
> 0016: 02 04 79 CB 3C 92 02 01 00 02 01 00 30 13 30 11 =
..y=CB<.......0.0.=09
> 0032: 06 0D 2B 06 01 02 01 0A 5E 01 01 0E 01 02 01 05 =
..+.....^.......
> 0048: 00 .
>=20
> Received SNMP packet(s) from UDP: [127.0.0.1]:33965
> GET message
> -- ADSL-LINE-MIB::adslAtucConfRateMode.'.'
>=20
> Sending 49 bytes to UDP: [127.0.0.1]:33965
> 0000: 30 2F 02 01 01 04 07 70 72 69 76 61 74 65 A2 21 =
0/.....private=A2!
> 0016: 02 04 79 CB 3C 92 02 01 00 02 01 00 30 13 30 11 =
..y=CB<.......0.0.
> 0032: 06 0D 2B 06 01 02 01 0A 5E 01 01 0E 01 02 01 80 =
..+.....^.......=09
> 0048: 00 .
>=20
>=20
> But When I tried in the following way , it is giving some parser =
error..
>=20
> snmpget -v 2c -m ALL -M =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private =
10.94.1.1.14.1.2.\"0000000001\"
>=20
> snmpget -v 2c -m ALL -M =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private =
'10.94.1.1.14.1.2."0000000001"'
>=20
> Error message:
> 10.94.1.1.14.1.2."0000000001":Unknown Object Identifier ( -quote is =
for variable length strings)
>=20
> Please help me to come out of this problem> ...> ..
>=20
> Advance thanks for ur help..
>=20
> Regards
> Kumar
>=20
>=20
> MIB definitions> ...>=20
>=20
> =09
> adslLineConfProfileTable OBJECT-TYPE
> SYNTAX SEQUENCE OF AdslLineConfProfileEntry>=20
> MAX-ACCESS not-accessible
> STATUS current
> DESCRIPTION
> "This table contains information on the ADSL line
> configuration. One entry in this table reflects a
> profile defined by a manager which can be used to
> configure the ADSL line."
> ::=3D { adslMibObjects 14}
>=20
> adslLineConfProfileEntry OBJECT-TYPE
> SYNTAX AdslLineConfProfileEntry
> MAX-ACCESS not-accessible
> STATUS current
> DESCRIPTION
> "Each entry consists of a list of parameters that
> represents the configuration of an ADSL modem.
>=20
> When `dynamic' profiles are implemented, a default
> profile will always exist. This profile's name will
> be set to `DEFVAL' and its parameters will be set
> to vendor specific values, unless otherwise specified
> in this document.
>=20
> When `static' profiles are implemented, profiles
> are automaticly created or destroyed as ADSL
> physical lines are discovered and removed by
> the system. The name of the profile will be
> equivalent to the decimal value of the line's
> interface index.
> "
> INDEX { IMPLIED adslLineConfProfileName}
> ::=3D { adslLineConfProfileTable 1}
>=20
> AdslLineConfProfileEntry ::=3D
> SEQUENCE {
> adslLineConfProfileName SnmpAdminString,
> adslAtucConfRateMode INTEGER,
> adslAtucConfRateChanRatio INTEGER,
> adslAtucConfTargetSnrMgn INTEGER,
> adslAtucConfMaxSnrMgn INTEGER,
> adslAtucConfMinSnrMgn INTEGER,
> adslAtucConfDownshiftSnrMgn INTEGER,
> adslAtucConfUpshiftSnrMgn INTEGER,
> adslAtucConfMinUpshiftTime INTEGER,
> adslAtucConfMinDownshiftTime INTEGER,
> adslAtucChanConfFastMinTxRate Unsigned32,
> adslAtucChanConfInterleaveMinTxRate Unsigned32,
> adslAtucChanConfFastMaxTxRate Unsigned32,
> adslAtucChanConfInterleaveMaxTxRate Unsigned32,
> adslAtucChanConfMaxInterleaveDelay INTEGER,
> adslAturConfRateMode INTEGER,
> adslAturConfRateChanRatio INTEGER,
> adslAturConfTargetSnrMgn INTEGER,
> adslAturConfMaxSnrMgn INTEGER,
> adslAturConfMinSnrMgn INTEGER,
> adslAturConfDownshiftSnrMgn INTEGER,
> adslAturConfUpshiftSnrMgn INTEGER,
> adslAturConfMinUpshiftTime INTEGER,
> adslAturConfMinDownshiftTime INTEGER,
> adslAturChanConfFastMinTxRate Unsigned32,
> adslAturChanConfInterleaveMinTxRate Unsigned32,
> adslAturChanConfFastMaxTxRate Unsigned32,
> adslAturChanConfInterleaveMaxTxRate Unsigned32,
> adslAturChanConfMaxInterleaveDelay INTEGER,
> adslLineConfProfileRowStatus RowStatus
> }
>=20
> adslLineConfProfileName OBJECT-TYPE
> SYNTAX SnmpAdminString (SIZE (1..32))
> MAX-ACCESS not-accessible
> STATUS current
> DESCRIPTION
> "This object is used by the line configuration table
> in order to identify a row of this table.>=20
>=20
> When `dynamic' profiles are implemented, the profile
> name is user specified. Also, the system will always
> provide a default profile whose name is `DEFVAL'.
>=20
> When `static' profiles are implemented, there is an
> one-to-one relationship between each line and its
> profile. In which case, the profile name will
> need to algorithmicly represent the Line's ifIndex.
> Therefore, the profile's name is a decimalized string
> of the ifIndex that is fixed-length (i.e., 10) with
> leading zero(s). For example, the profile name for
> ifIndex which equals '15' will be '0000000015'."
>=20
>=20
> ::=3D { adslLineConfProfileEntry 1 }
>=20
> adslAtucConfRateMode OBJECT-TYPE
> SYNTAX INTEGER {
> fixed (1), -- no rate adaptation
> adaptAtStartup (2), -- perform rate adaptation
> -- only at initialization
> adaptAtRuntime (3) -- perform rate adaptation at
> -- any time
> }
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION
> "Defines what form of transmit rate adaptation is
> configured on this modem. See ADSL Forum TR-005 [3]
> for more information."
> ::=3D { adslLineConfProfileEntry 2 }
>=20
> adslAtucConfRateChanRatio OBJECT-TYPE
> SYNTAX INTEGER(0..100)
> UNITS "%"
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION
> "Configured allocation ratio of excess transmit
> bandwidth between fast and interleaved channels. =
Only
> applies when two channel mode and RADSL are =
supported.
> Distribute bandwidth on each channel in excess of the
> corresponding ChanConfMinTxRate so that:
> adslAtucConfRateChanRatio =3D
>=20
> [Fast / (Fast + Interleaved)] * 100
>=20
> In other words this value is the fast channel
> percentage."
> ::=3D { adslLineConfProfileEntry 3 }
>=20
> adslAtucConfTargetSnrMgn OBJECT-TYPE
> SYNTAX INTEGER (0..310)
> UNITS "tenth dB"
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION
> "Configured Target Signal/Noise Margin.
> This is the Noise Margin the modem must achieve
> with a BER of 10-7 or better to successfully complete
> initialization."
> ::=3D { adslLineConfProfileEntry 4 }
>=20
>=20
> > ...> ...> ...> ...> ...> ...> ...> ...> ...> ...> ...> ...> ...> =
e.t.c
>=20
> =09
> These are the errors when I was starting snmp demon. I have got =
these from other MIBS.. Because I am loading all MIBs from specified =
directory.. Those I have ignored..
>=20
> Cannot find module (IANAifType-MIB): At line 13 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/IF-MIB
> Did not find 'IANAifType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/IF-MIB)
> Expected ")" (,): At line 1010 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/efm-cu-mib
> Should be ACCESS (65535): At line 1010 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/efm-cu-mib=09
> Bad parse of OBJECT-TYPE: At line 1010 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/efm-cu-mib
> Warning: This entry is pretty silly (hcPerfHistTCMIB): At line 27 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/HC-PerfHist-TC-MIB
> Warning: This entry is pretty silly (vdslMIB): At line 93 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/VDSL-> LINE-MIB
> Warning: This entry is pretty silly (vdslExtMCMMIB): At line 77 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/VDSL-LINE-EXT-MCM-MIB
> 5 (is a reserved word): At line 669 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/VDSL-LINE-EXT-MCM-MIB
> Bad operator (This): At line 671 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/VDSL-LINE-EXT-MCM-MIB
> Cannot find module (IANA-RTPROTO-MIB): At line 14 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/IPMROUTE-STD MIB
> Did not find 'IANAipRouteProtocol' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/IPMROUTE-STD- MIB)
> Did not find 'IANAipMRouteProtocol' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/IPMROUTE-STD- MIB)
> Cannot find module (IANA-MALLOC-MIB): At line 17 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/MALLOC-MIB
> Did not find 'IANAscopeSource' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/MALLOC-MIB)
> Did not find 'IANAmallocRangeSource' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/MALLOC-MIB)
> Cannot find module (IANATn3270eTC-MIB): At line 22 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB
> Did not find 'IANATn3270eAddrType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB)
> Did not find 'IANATn3270eAddress' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB)
> Did not find 'IANATn3270eClientType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB)
> Did not find 'IANATn3270Functions' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB)
> Did not find 'IANATn3270ResourceType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB)
> Did not find 'IANATn3270DeviceType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB)
> Did not find 'IANATn3270eLogData' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-MIB)
> Did not find 'IANATn3270eAddrType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-RT-MIB)
> Did not find 'IANATn3270eAddress' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/TN3270E-RT-MIB)
> Cannot find module (IANAifType-MIB): At line 19 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/DIAL-CONTROL- MIB
> Did not find 'IANAifType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/DIAL-CONTROL-MIB)
> Cannot find module (IANAifType-MIB): At line 6 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/APPN-MIB
> Did not find 'IANAifType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/APPN-MIB)=09
> Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB): At line 16 in =
home/kumar/projects_cc/common/mib_tools/mibs/ietf/NHRP-MIB
> Did not find 'AddressFamilyNumbers' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/NHRP-MIB)
> Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB): At line 18 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/PTOPO-MIB
> Did not find 'AddressFamilyNumbers' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/PTOPO-MIB)
> Cannot find module (IANAifType-MIB): At line 26 in =
/home/kumar/projects_cc/common/mib_tools/mibs/ietf/ISDN-MIB
> Did not find 'IANAifType' in module #-1 =
(/home/kumar/projects_cc/common/mib_tools/mibs/ietf/ISDN-MIB)
>=20
>=20
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users