Difference between revisions of "Template:FAQ:Applications 06"

From Net-SNMP Wiki
Jump to: navigation, search
 
(5.4 release synchronisation)
Line 1: Line 1:
 +
<!-- NB:
 +
  There is a mismatch between the template numbering
 +
  for this entry, and the FAQ entries that refer to it.
 +
  This follows a re-ordering of the entries in the
 +
  Applications section.
 +
-->
 +
 
This is almost definitely due to the access configuration of the agent.
 
This is almost definitely due to the access configuration of the agent.
 
Many pre-configured systems (such as most Linux distributions) will only
 
Many pre-configured systems (such as most Linux distributions) will only
Line 7: Line 14:
 
to return the entry of interest.
 
to return the entry of interest.
 
e.g.
 
e.g.
         snmpgetnext -v1 -c public localhost ucdavis.version.versionTag
+
         snmpgetnext -v1 -c public localhost UCD-SNMP-MIB::versionTag
 
instead of
 
instead of
         snmpget    -v1 -c public localhost ucdavis.version.versionTag.0
+
         snmpget    -v1 -c public localhost UCD-SNMP-MIB::versionTag.0
  
 
If the agent responds with "end of MIB" or a different object, then
 
If the agent responds with "end of MIB" or a different object, then
Line 15: Line 22:
 
the access control won't allow you access to it.
 
the access control won't allow you access to it.
  
See the entries on access control in the AGENT section for how to
+
See the entries on access control in the [[FAQ:AGENT|AGENT section]] for how to configure the Net-SNMP agent, or consult the agent's own documentation.
configure the Net-SNMP agent, or consult the agent's own documentation.
+

Revision as of 15:13, 28 December 2006


This is almost definitely due to the access configuration of the agent. Many pre-configured systems (such as most Linux distributions) will only allow access to the system group by default, and need to be configured to enable more general access.

The easiest way to test this is to try a GETNEXT request that ought to return the entry of interest. e.g.

       snmpgetnext -v1 -c public localhost UCD-SNMP-MIB::versionTag

instead of

       snmpget     -v1 -c public localhost UCD-SNMP-MIB::versionTag.0

If the agent responds with "end of MIB" or a different object, then either the agent doesn't implement that particular object at all, or the access control won't allow you access to it.

See the entries on access control in the AGENT section for how to configure the Net-SNMP agent, or consult the agent's own documentation.