DX NetOps

 View Only
  • 1.  edit watch

    Posted Jan 03, 2018 10:44 AM

    I'm getting an internal failure when trying to evaluate the following expression on a Juniper MX960:

     

    ((ATTR(0x3b10c62).# != 0) & (ifAdminStatus.# == 1))

     

    The data type is Boolean.

     

     

    Any ideas as to why this would fail?  It's a pretty simple expression and when I run the operands as separate expressions, they return the expected results.  It only fails when trying to & the operands with each other.



  • 2.  Re: edit watch
    Best Answer

    Broadcom Employee
    Posted Jan 03, 2018 03:11 PM
      |   view attached

    I think you need to break this out into multiple watches since you’re casting to Boolean.  Take a look at the examples here (search for Boolean):

     

    https://docops.ca.com/ca-spectrum/10-2-2/en/managing-network/watches/alarm-script-and-watch-type-examples/watch-type-examples

     

    Hth

    Jay



  • 3.  Re: edit watch

    Posted Jan 04, 2018 11:28 AM

    How can i monitor a Text String using watch whenever it changes.



  • 4.  Re: edit watch

    Posted Jan 05, 2018 11:09 AM

    Pls help on this