Hi,
sorry for my long e-mail i tried to give a detailed view of my problem
thanks for your understanding.
> Yes - that will always be the case, due to the indexing of the rows.
> The rows of this table are ordered by IP address, so 127.0.0.1 will
> always come before 192.168.2.101 (since 127 < 192)
> If you used a different IP address for your local network,
> such as 10.168.2.101, then this entry would come *before* 127.0.0.1
> (since 10 < 127)
this helped in case of the ipAddrTable
> What SNMP agent are you querying?
i use the net-snmp agent 5.2.1.2
> This doesn't look like the Net-SNMP agent, since we'd typically
> use ifIndex values of 1, 2, 3, etc
but not in my case
> My suspicion is that you're using the standard Microsoft SNMP agent,
> as I seem to recall reading that it uses this form of "base+offset"
> indexing for network interfaces.
> In which case, you'd need to speak to Microsoft about whether/how
> to renumber the interfaces. But I strongly suspect they'll tell
> you it's not possible.
all windows snmp tools are deinstalled.
> What are you actually trying to do?
Well i try to detect the net-snmp agent with the an HP printer management
tool HP Web Jetadmin.
this is the way how it searches for an thrid party printer agent:
1) it sends a sequence of get messages:
Simple Network Management Protocol
Version: 1 (0)
Community: public
PDU type: GET-NEXT (1)
Request Id: 0x00007980
Error Status: NO ERROR (0)
Error Index: 0
Object identifier 1: 1.3.6.1.2.1.1.1 (SNMPv2-MIB::sysDescr)
Value: NULL
Object identifier 2: 1.3.6.1.2.1.1.3 (SNMPv2-MIB::sysUpTime)
Value: NULL
Object identifier 3: 1.3.6.1.2.1.1.5 (SNMPv2-MIB::sysName)
Value: NULL
Object identifier 4: 1.3.6.1.2.1.2.2.1.6 (IF-MIB::ifPhysAddress)
Value: NULL
Object identifier 5: 1.3.6.1.2.1.4.20.1.1 (IP-MIB::ipAdEntAddr)
Value: NULL
Object identifier 6: 1.3.6.1.2.1.25.3.2.1.3
(SNMPv2-SMI::mib-2.25.3.2.1.3)
Value: NULL
Object identifier 7: 1.3.6.1.4.1.11.2.3.9.1.1.7
(SNMPv2-SMI::enterprises.11.2.3.9.1.1.7)
Value: NULL
Object identifier 8: 1.3.6.1.4.1.11.2.3.9.5.1.3
(SNMPv2-SMI::enterprises.11.2.3.9.5.1.3)
Value: NULL
Object identifier 9: 1.3.6.1.4.1.11.2.4.3.8.3.2
(SNMPv2-SMI::enterprises.11.2.4.3.8.3.2)
Value: NULL
Object identifier 10: 1.3.6.1.4.1.11.2.4.3.8.3.3
(SNMPv2-SMI::enterprises.11.2.4.3.8.3.3)
Value: NULL
Object identifier 11: 1.3.6.1.4.1.11.2.4.3.10.7
(SNMPv2-SMI::enterprises.11.2.4.3.10.7)
Value: NULL
Object identifier 12: 1.3.6.1.4.1.11.2.4.3.10.13
(SNMPv2-SMI::enterprises.11.2.4.3.10.13)
Value: NULL
Object identifier 13: 1.3.6.1.4.1.11.2.4.3.13.1
(SNMPv2-SMI::enterprises.11.2.4.3.13.1)
Value: NULL
2 ) then it gets the response from the agent (in this case a brothter
printer)
Simple Network Management Protocol
Version: 1 (0)
Community: public
PDU type: RESPONSE (2)
Request Id: 0x00007980
Error Status: NO ERROR (0)
Error Index: 0
Object identifier 1: 1.3.6.1.2.1.1.1.0 (SNMPv2-MIB::sysDescr.0)
Value: STRING: Brother NC-9100h, Firmware Ver.1.04 (03.11.07),MID
8C5-743
Object identifier 2: 1.3.6.1.2.1.1.3.0 (SNMPv2-MIB::sysUpTime.0)
Value: Timeticks: (310534526) 35 days, 22:35:45.26
Object identifier 3: 1.3.6.1.2.1.1.5.0 (SNMPv2-MIB::sysName.0)
Value: STRING: BSMFC
Object identifier 4: 1.3.6.1.2.1.2.2.1.6.1 (IF-MIB::ifPhysAddress.1)
Value: STRING: 0:80:77:36:9a:47
Object identifier 5: 1.3.6.1.2.1.4.20.1.1.141.99.179.205
(IP-MIB::ipAdEntAddr.141.99.179.205)
Value: IpAddress: 141.99.179.205
Object identifier 6: 1.3.6.1.2.1.25.3.2.1.3.1
(SNMPv2-SMI::mib-2.25.3.2.1.3.1)
Value: STRING: "Brother MFC-8420"
Object identifier 7: 1.3.6.1.4.1.11.2.3.9.1.1.7.0
(SNMPv2-SMI::enterprises.11.2.3.9.1.1.7.0)
Value: STRING: "MANUFACTURER:Brother;COMMAND SET:PJL,HBP,PCL;MODEL:HP
LaserJet 4050 Series;CLASS:PRINTER;COMMENT:The model name HP LaserJet 4050
Series is used only for compatibility information for HP printer"
Object identifier 8: 1.3.6.1.4.1.11.2.4.3.1.2.0
(SNMPv2-SMI::enterprises.11.2.4.3.1.2.0)
Value: STRING: "Vgr/Vkl :100%"
Object identifier 9: 1.3.6.1.4.1.11.2.4.3.8.3.4.0
(SNMPv2-SMI::enterprises.11.2.4.3.8.3.4.0)
Value: INTEGER: 0
Object identifier 10: 1.3.6.1.4.1.11.2.4.3.8.3.4.0
(SNMPv2-SMI::enterprises.11.2.4.3.8.3.4.0)
Value: INTEGER: 0
Object identifier 11: 1.3.6.1.4.1.11.2.4.3.10.7.0
(SNMPv2-SMI::enterprises.11.2.4.3.10.7.0)
Value: Hex-STRING: 00
Object identifier 12: 1.3.6.1.4.1.11.2.4.3.10.13.0
(SNMPv2-SMI::enterprises.11.2.4.3.10.13.0)
Value: ""
Object identifier 13: 1.3.6.1.4.1.11.2.4.3.13.1.0
(SNMPv2-SMI::enterprises.11.2.4.3.13.1.0)
Value: INTEGER: 1
I try to simulate this with the net-snmp agent.
this is the response of the net-snmp agent actually:
Simple Network Management Protocol
Version: 1 (0)
Community: public
PDU type: RESPONSE (2)
Request Id: 0x00007940
Error Status: NO ERROR (0)
Error Index: 0
Object identifier 1: 1.3.6.1.2.1.1.1.0 (SNMPv2-MIB::sysDescr.0)
Value: STRING: HP Laserjet Series 4050
Object identifier 2: 1.3.6.1.2.1.1.3.0 (SNMPv2-MIB::sysUpTime.0)
Value: Timeticks: (233118) 0:38:51.18
Object identifier 3: 1.3.6.1.2.1.1.5.0 (SNMPv2-MIB::sysName.0)
Value: STRING: Laserjet
Object identifier 4: 1.3.6.1.2.1.2.2.1.6.1 (IF-MIB::ifPhysAddress.1)
Value: STRING:
/* here it points to the loopback interface because the management *software
brakes up at ifPhysAddress.2
*
* REQUEST
*
* Simple Network Management Protocol
* Version: 1 (0)
* Community: public
* PDU type: GET (0)
* Request Id: 0x00007941
* Error Status: NO ERROR (0)
* Error Index: 0
* Object identifier 1: 1.3.6.1.2.1.2.2.1.6.2 (IF-MIB::ifPhysAddress.2)
* Value: NULL
*
* RESPONSE from my agent
*
* Simple Network Management Protocol
* Version: 1 (0)
* Community: public
* PDU type: RESPONSE (2)
* Request Id: 0x00007942
* Error Status: NO SUCH NAME (2)
* Error Index: 1
* Object identifier 1: 1.3.6.1.2.1.2.2.1.6.2 (IF-MIB::ifPhysAddress.2)
* Value: NULL
*/
Object identifier 5: 1.3.6.1.2.1.4.20.1.1.127.0.0.1
(IP-MIB::ipAdEntAddr.10.168.2.101)
Value: IpAddress: 10.168.2.101
Object identifier 6: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.1.5.0
(SNMPv2-SMI::enterprises.11.2.3.9.4.2.1.4.1.1.5.0)
Value: INTEGER: 2
Object identifier 7: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.1.5.0
(SNMPv2-SMI::enterprises.11.2.3.9.4.2.1.4.1.1.5.0)
Value: INTEGER: 2
Object identifier 8: 1.3.6.1.4.1.2021.10.1.1.1 (UCD-SNMP-MIB::laIndex.1)
/* as you can see the values for the enterprise OID come from the UCD-SNMP-
* MIB and not from the Laserjet-Series4050-MIB as i expected
* because i have already compiled the printer-MIB and the LeserJet MIB
*into the agent and set the ENTERPRISE_OID to 11
*/
Value: INTEGER: 1
Object identifier 9: 1.3.6.1.4.1.2021.10.1.1.1 (UCD-SNMP-MIB::laIndex.1)
Value: INTEGER: 1
Object identifier 10: 1.3.6.1.4.1.2021.10.1.1.1
(UCD-SNMP-MIB::laIndex.1)
Value: INTEGER: 1
Object identifier 11: 1.3.6.1.4.1.2021.10.1.1.1
(UCD-SNMP-MIB::laIndex.1)
Value: INTEGER: 1
Object identifier 12: 1.3.6.1.4.1.2021.10.1.1.1
(UCD-SNMP-MIB::laIndex.1)
Value: INTEGER: 1
Object identifier 13: 1.3.6.1.4.1.2021.10.1.1.1
(UCD-SNMP-MIB::laIndex.1)
Value: INTEGER: 1
i have one additional question
- how can i exactly change the enterprise OID to 1.3.6.1.4.1.11 so the
management software can access the Laserjet MIB instead of the UCD-SNMP-MIB
or does this depend on the management software or some other additional
vendor MIBs
with best regards
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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