Help please all you clever people out there!

 

I have had some success in getting my net-snmp 4.2.1 snmpd to work with an snmpd.conf file (copied from the EXAMPLE.conf) but get the following warnings when I start it:

 

> /usr/local/sbin/snmpd -d
>/usr/local/share/snmp/snmpd.conf: line 134: Warning: Unknown token: proc.
/usr/local/share/snmp/snmpd.conf: line 137: Warning: Unknown token: proc.
/usr/local/share/snmp/snmpd.conf: line 140: Warning: Unknown token: proc.
/usr/local/share/snmp/snmpd.conf: line 198: Warning: Unknown token: exec.
/usr/local/share/snmp/snmpd.conf: line 249: Warning: Unknown token: disk.
/usr/local/share/snmp/snmpd.conf: line 278: Warning: Unknown token: load.

Wanting to get on and get something to work i tried an snmpset, snmpwalk etc. I have success with the mib that 'system' is in but i cant do an snmpget on a different mib (although the snmptranslate works) and the error I get is

    "No Such Object available on this agent" (see  below).

 

>snmpset -v 2c localhost password system.sysLocation.0 s "the Tea room"
system.sysLocation.0 = the Tea room

>snmptranslate  -Td UDP-MIB:udpLocalPort
.1.3.6.1.2.1.7.5.1.2
udpLocalPort OBJECT-TYPE
  -- FROM       UDP-MIB, RFC1213-MIB
  SYNTAX        INTEGER (0..65535)
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION   "The local port number for this UDP listener."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) udp(7) udpTable(5) udpEntry(1) 2 }

> snmpget -v 2c localhost password UDP-MIB:udpLocalPort
udp.udpTable.udpEntry.udpLocalPort = No Such Object available on this agent

Help please - any idea how to progress from here? I am sticking to C functions as i hope to write a noddy C program to communicate with another host (and the perl stuff doesnt 'make' anyway!). I am currently running on the same localhost as I am querying as I have yet to install net-SNMP on another machine. I am working on a workstation using IRIX 6.5 which is not connected to the internet.

Charlotte

Reply via email to