FW: [tkined] SNMP set method problem

From: Eyal Raab (Eyalr@corrigent.com)
Date: Thu Nov 08 2001 - 14:03:41 MET


hi,

I'm sending the description of this problem again since I can't seem to
solve it by myself.

  When I issue the following command to compile the mib in the script:
      Tnm::mib load
"L:/Embeded_Releases/Weekly_01_10_04/lviews/pcc/Embedded_Soft/Mibs/Services/
pw.mib"

  There's no warning issued by the Tnm compiler. However, when I issue this
command:

  set varbind [$session set [list \
        [list pwVcID.$pwVcIndex.$pwVcInstance Gauge32 $tunnelIndex]\
        [list pwVcOutboundGroupID.$pwVcIndex.$pwVcInstance Gauge32 0]\
        [list pwVcPeerAddrType.$pwVcIndex.$pwVcInstance Integer32 1]\
        [list pwVcType.$pwVcIndex.$pwVcInstance Integer32 4]\
        [list pwVcAdminStatus.$pwVcIndex.$pwVcInstance Integer32 1]\
        [list pwVcRowStatus.$pwVcIndex.$pwVcInstance Integer32 5]\
        ]]
        
 With valid values for $pwVcIndex and $pwVcInstance, I get the following
error:

                invalid object identifier "pwVcID.5.1"
                    while executing
                "$session set [list \
                        [list pwVcID.$pwVcIndex.$pwVcInstance Gauge32
$tunnelIndex]\
                        [list pwVcOutboundGroupID.$pwVcIndex.$pwVcInstance
Gauge32 0]\
                        [l..."
        
        Therefore, I'm assuming that the mib does not compile successfully.
        I replaced the names with their OID strings and tried again.
        This is what I got. The following command works:

                set varbind [$session set [list \
                        [list pwVcID.$pwVcIndex.$pwVcInstance Gauge32
$tunnelIndex]\
                        [list pwVcOutboundGroupID.$pwVcIndex.$pwVcInstance
Gauge32 0]\
                        [list pwVcPeerAddrType.$pwVcIndex.$pwVcInstance
Integer32 1]\
                        [list pwVcType.$pwVcIndex.$pwVcInstance Integer32
4]\
                        [list pwVcAdminStatus.$pwVcIndex.$pwVcInstance
Integer32 1]\
                        [list pwVcRowStatus.$pwVcIndex.$pwVcInstance
Integer32 5]\
                        ]]

        And this one doesn't (after I increment the pwVcIndex):

                set varbind [$session set [list \
                        [list $pwVcID.$pwVcIndex.$pwVcInstance Gauge32
$tunnelIndex]\
                        [list $pwVcOutboundGroupID.$pwVcIndex.$pwVcInstance
Gauge32 0]\
                        [list $pwVcPeerAddrType.$pwVcIndex.$pwVcInstance
Integer32 1]\
                        [list $pwVcType.$pwVcIndex.$pwVcInstance Integer32
4]\
                        [list $pwVcAdminStatus.$pwVcIndex.$pwVcInstance
Integer32 1]\
                        [list $pwVcRowStatus.$pwVcIndex.$pwVcInstance
Integer32 5]\
                        [list $pwVcPeerIpv4Addr.$pwVcIndex.$pwVcInstance
{OCTET STRING} "0A:0A:64:0A"]\
                        ]]

        Therefore I assume that the pwVcPeerIpv4Addr is the problem.

        Could you help me to find the problem?

        I'm attempting the attach the mibs in zip format in the hope it may
prove useful.

Best regards,

Eyal Raab
QA Test Enginneer
Corrigent Systems
eyalr@corrigent.com

-----Original Message-----
From: Juergen Schoenwaelder [mailto:schoenw@ibr.cs.tu-bs.de]
Sent: Monday, October 15, 2001 1:28 PM
To: Eyalr@corrigent.com
Cc: tkined@ibr.cs.tu-bs.de; Eyalr@corrigent.com
Subject: Re: [tkined] SNMP set method problem

>>>>> Eyal Raab writes:

>> We use Spirent Communication's ScriptCenter which contains in it a
>> compiled version of Scotty. We are trying to write a test script
>> and issue the following command: $handle set [list [list
>> "1.3.6.1.3.9999.1.2.1.7.1.1" {OCTET STRING} "0x0A0A640A"]]
>>
>> As soon as we issue the command, we recieve the following error,
>> and the program terminates:
>>
>> illegal value for object identifier
>>
>> abnormal program termination
>>
>> When we try to issue the same command manually with a mib browser
>> such as MG-Soft, it works. It also works on a tool such as
>> SimpleTester.

The character sequence "0x0A0A640A" does not represent a legal OCTET
STRING value. See the snmp(n) manual page which explains the various
value formats accepted by scotty. The value string "0A:0A:64:0A"
should work better.

(And if the definition of pwVcPeerIpv4Addr uses the IpAddress syntax,
then even "10.10.100.10" should work due to the DISPLAY-HINT clause).

/js



--
!! 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.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:28 MET