DigitalCountess
MIS
Hello all!
I'm facing a frustrating problem and I really hope that someone could help me out..
- I've designed and written a MIB of my own (ARROW-MIB.txt)
- Put it and exported it on a Debian computer (named "Server")
- Written an agent to support this MIB
On the "Server" computer, all the snmp commands work flawlessly.
The problem begins when I'm trying to read the MIB from another Debian computer (named "Client").
The "Client" computer has snmp and snmpd installed. It is connected to the "Server" computer via a network I've created and the two of them communicate with no problems.
But, the following issue occurs:
If I run (on the "Client") an snmpget command to the "Server" using the numeric OID, it works perfectly. For example:
command : snmpget -v 2c -c remote Server .1.3.6.1.4.1.2022.1.0
result : iso.3.6.1.4.1.2022.1.0 = INTEGER: 0
But, if I try to run the snmpget command using the name of the object I want to get, then a big fat failure occurs:
command : snmpget -v 2c -c remote Server ARROW-MIB::arrowDaemonRunning.0
result : MIB search path: /home/queen/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (SNMPv2-SMI): At line 5 in /usr/share/mibs/netsnmp/ARROW-MIB.txt
Did not find 'enterprises' in module #-1 (/usr/share/mibs/netsnmp/ARROW-MIB.txt)
Unlinked OID in ARROW-MIB: arrowMIB ::= { enterprises 2022 }
Undefined identifier: enterprises near line 14 of /usr/share/mibs/netsnmp/ARROW-MIB.txt
ARROW-MIB::arrowDaemonRunning.0: Unknown Object Identifier
It should be noted that the "Client" Debian computer does not have the ARROW-MIB.txt, nor the Agent I have written for it. The ARROW-MIB and Agent are solely on the "Server" pc.
And it is really important that the "Client" pc will be able to execute snmp commands using the human readable names. I don't want to be obliged to pass the numeric OIDs all the time, for they can change all the time whereas the names will always be the same.
Is there a way that I can read OID values from a Remote (Client) computer using the human readable names of the OIDs? If yes, what is it??
Thank you very much in advance
I'm facing a frustrating problem and I really hope that someone could help me out..
- I've designed and written a MIB of my own (ARROW-MIB.txt)
- Put it and exported it on a Debian computer (named "Server")
- Written an agent to support this MIB
On the "Server" computer, all the snmp commands work flawlessly.
The problem begins when I'm trying to read the MIB from another Debian computer (named "Client").
The "Client" computer has snmp and snmpd installed. It is connected to the "Server" computer via a network I've created and the two of them communicate with no problems.
But, the following issue occurs:
If I run (on the "Client") an snmpget command to the "Server" using the numeric OID, it works perfectly. For example:
command : snmpget -v 2c -c remote Server .1.3.6.1.4.1.2022.1.0
result : iso.3.6.1.4.1.2022.1.0 = INTEGER: 0
But, if I try to run the snmpget command using the name of the object I want to get, then a big fat failure occurs:
command : snmpget -v 2c -c remote Server ARROW-MIB::arrowDaemonRunning.0
result : MIB search path: /home/queen/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (SNMPv2-SMI): At line 5 in /usr/share/mibs/netsnmp/ARROW-MIB.txt
Did not find 'enterprises' in module #-1 (/usr/share/mibs/netsnmp/ARROW-MIB.txt)
Unlinked OID in ARROW-MIB: arrowMIB ::= { enterprises 2022 }
Undefined identifier: enterprises near line 14 of /usr/share/mibs/netsnmp/ARROW-MIB.txt
ARROW-MIB::arrowDaemonRunning.0: Unknown Object Identifier
It should be noted that the "Client" Debian computer does not have the ARROW-MIB.txt, nor the Agent I have written for it. The ARROW-MIB and Agent are solely on the "Server" pc.
And it is really important that the "Client" pc will be able to execute snmp commands using the human readable names. I don't want to be obliged to pass the numeric OIDs all the time, for they can change all the time whereas the names will always be the same.
Is there a way that I can read OID values from a Remote (Client) computer using the human readable names of the OIDs? If yes, what is it??
Thank you very much in advance