Automation

last person joined: 13 hours ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  Log event-script process id

     
    Posted 05-04-2011 08:14

    Hi,

     

    I am having trouble trying to debug some event scripts; therefore I would like to add the event-script instance process id  to the logs, in order to understand more easily which instance of the script is having errors...

     

    Do you know if  I can use a default parameter to accomplish this (like $user, ), or another way to do it? The default parameter $localtime does not fit this purpose cause multiple scripts start at the same time (h:m:s).

     

    Thanks in advance for your help,

     

    Regards,

    Mattia



  • 2.  RE: Log event-script process id
    Best Answer

    Posted 05-04-2011 11:08

    In Junos 11.1 (I think 10.4R2 as well) there is a new default global variable that provides additional information, including the process id:

     

    $junos-context/pid

     

     



  • 3.  RE: Log event-script process id



  • 4.  RE: Log event-script process id

     
    Posted 05-05-2011 06:06

    Well, that's exactly what I was looking for! 🙂

    I am using Junos 10.4R3 and it works fine.

     

    thanks a lot to both of you,

    Mattia