Hi,
--- ye_cl <[EMAIL PROTECTED]> wrote:
> hi, I have a question. I run command of "env
> MIBS=¡±+SCOM-SV260A-MIB¡± mib2c scomcenter" to
> produce my module's skeleton source files for node
> "scomcenter" which is type of MODULE-IDENTITY and
> has oid of "1.3.6.1.4.1.19176".
> Now I will send my get request to node
>
ofiso(1).org(3).dod(6).internet(1).private(4).enterprises(1)
> whose type is OBJECT-IDENTIFIER for getting the
> value
>
ofiso(1).org(3).dod(6).internet(1).private(4).enterprises(1).scomcenter(19176).products(1).subproducts(1).sv260a(20).tsoverip(1).tsoveripstatus(0).
This is not correct. .enterprises cannot be used to
get anything. .enterprises is a path in the MIB tree
for placing private MIB tree branches (scomcenter in
your case).
> I don't know how to implement it, the get request
> oid and the response oid are not the same type, and
> are not in the same layer in MIB tree. In the
> mib2c-produced skeleton source files, I can only
> respond the oid that is from the client's request.
Correct. This is the way snmp works.
> My source code style is style of ucd-snmp. Would you
> please give me some help? regards,
Try looking in SNMPv2-MIB.txt at sysObjectID. I
believe this is the OID you want to use to return the
OBJECT-IDENTIFIER you desire. I don't know how to
specify the enterprise-oid in ucd-snmp. For net-snmp,
it can be specified as a configuration option
(--with-enterprise-oid).
Regards,
...doug
____________________________________________________________________________________
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.
http://autos.yahoo.com/carfinder/
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev