Re: SNMPv2C/SNMPv2U

Peter Polkinghorne (Peter.Polkinghorne@brunel.ac.uk)
Wed, 21 May 1997 13:35:31 +0100

>
> I work on a Unix plateform, I 've installed the scotty agent on the port 1701
> and the ucd-agent on the port 161.
> Look at the example of the execution of the ucd-agent and the scotty-agent.
>
> First the ucd-agent
> % snmp0 configure -port 161 -version SNMPv1
> -address 127.0.0.1 -port 161 -version SNMPv1 -community public -timeout 5 -retries 3 -window 10 -delay 0
>
> % snmp0 getnext sysUpTime
> {1.3.6.1.2.1.1.3.0 TimeTicks {0d 14:30:16.48}}
>
> % snmp0 getnext sysDescr
> {1.3.6.1.2.1.1.1.0 {OCTET STRING} {SunOS Sioban 4.1.3 3 sun4c}}
>
> Now the scotty-agent:
>
> % snmp0 configure -port 1701 -version SNMPv2C
> -address 127.0.0.1 -port 1701 -version SNMPv2c -community public -timeout 5 -retries 3 -window 10 -delay 0
>
> % snmp0 getnext sysDescr
> genErr 0 {1.3.6.1.2.1.1.1 NULL {}}
>
> % snmp0 getnext sysUpTime
> {1.3.6.1.2.1.1.3.0 TimeTicks {0d 0:03:24.00}}
>
> The problem is that the response of the scotty-agent are wrong...
> I don't know what I'm doing wrong or what I did forget to do.
> Thanks for your help,
> Nadine.

Firstly check rfc1213 .mib and see that sysUpTime is defined as:
"The time (in hundredths of a second) since the
network management portion of the system was last
re-initialized."

So it quite alright for differnt agents started at different times to have different values on the same system. Also UCD (and I imagine CMU) uses time system last booted, which is not strictly correct.

I had no problem with sysDescr - (tcl 7.5, Solaris 2.5.1 and scotty 2.1.4)

% snmp0 getnext sysDescr
{1.3.6.1.2.1.1.1.0 {OCTET STRING} {scotty agent version 2.1.4 (sun4m-SunOS-5.5.1)}}

-- 
-----------------------------------------------------------------------------
| Peter Polkinghorne, Computer Centre, Brunel University, Uxbridge, UB8 3PH,|
| Peter.Polkinghorne@brunel.ac.uk   +44 1895 274000 x2561       UK          |
-----------------------------------------------------------------------------

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.