Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - terry

#1
Hello,

I have a question how can I calculate DCI with Multiple OIDs.

ifInOctets  -->  .1.3.6.1.2.1.2.2.1.10
ifSpeed  -->  .1.3.6.1.2.1.2.2.1.5

I wnat to calculate the belows;

((ifInOctets) * 8 / ifSpeed) * 100

Could you le me know how can I make the script code?

Best Regards,
-Terry
#2
General Support / binding error to new mib file
April 17, 2008, 12:40:40 PM
Hello,

I have a question about binding error.

When I binding a new MIB file, I met the bellow error.

..\var\mibs\WS-CC-RF-MIB.txt: ERROR 003: Parser error - syntax error, unexpected
COMMA_SYM, expecting RIGHT_BRACE_SYM in line 1245

The line 1245 of mib file is as the belows;
      -- 1.3.6.1.4.1.388.14.3.2.1.11.5.1.12
      wsCcRfRadioBasicRates OBJECT-TYPE
         SYNTAX TransmitRate
         MAX-ACCESS read-create
         STATUS current
         DESCRIPTION
            "List of basic rates for the radio."
         DEFVAL { {rate1Mb}, {rate2Mb}, {rate5pt5Mb}, {rate11Mb} }  <== Here is the line 1245
         ::= { wsCcRfRadioEntry 12 }

And, TransmotRate is defined as the belows;


      TransmitRate ::= BITS
         {
         rate1Mb(0),
         rate2Mb(1),
         rate5pt5Mb(2),
         rate6Mb(3),
         rate9Mb(4),
         rate11Mb(5),
         rate12Mb(6),
         rate18Mb(7),
         rate22Mb(,
         rate24Mb(9),
         rate36Mb(10),
         rate48Mb(11),
         rate54Mb(12)
         }


In the RFC1902, the value of the DEFVAL clause can define as the belows;

     ObjectSyntax       DEFVAL clause
     ----------------   ------------
     Integer32          DEFVAL { 1 }
                        -- same for Gauge32, TimeTicks, Unsigned32
     INTEGER            DEFVAL { valid } -- enumerated value
     OCTET STRING       DEFVAL { 'ffffffffffff'H }
     OBJECT IDENTIFIER  DEFVAL { sysDescr }
     BITS               DEFVAL { { primary, secondary } }   <=== Here
                        -- enumerated values that are set
     IpAddress          DEFVAL { 'c0210415'H } -- 192.33.4.21


I want to know what's wrong?

Please help me as soon as possible.
I attach the mib file.

Best Regards,
- Terry