DX Unified Infrastructure Management

  • 1.  System Time Details with Time Zone

    Posted Mar 12, 2018 12:15 PM

    Hi All,

     

     Is there any way to get the current system time details with time zone for all the robots .



  • 2.  Re: System Time Details with Time Zone

    Broadcom Employee
    Posted Mar 12, 2018 12:23 PM

    You could write a little lua script to loop through all the robots on all your hubs and issue the get_info callback to get this timezone information.

    Output can be to a file for reporting.

    Run it once only or on a schedule.

    Cheers

    RC



  • 3.  Re: System Time Details with Time Zone

    Posted Mar 13, 2018 10:26 AM

    Can you please help in doing basic script for this.



  • 4.  Re: System Time Details with Time Zone

    Posted Mar 13, 2018 09:43 PM

    Check this , there are few available in google 

     

    Re: Getting current date and time of a particular time zone 



  • 5.  Re: System Time Details with Time Zone

    Posted Mar 16, 2018 10:04 AM

    champions helping champions, thank you, this is great.    Praveen, did you get this figured out? 



  • 6.  Re: System Time Details with Time Zone

    Posted Mar 16, 2018 10:07 AM

    Yes Melissa ,I am working on the solution provided.



  • 7.  Re: System Time Details with Time Zone

    Posted Mar 17, 2018 06:06 PM

    Hi,

     

    If you choose the solution of Rowan you can check my checkconfig made with lua (i loop through hubs and robots).

    GitHub - fraxken/checkconfig_lua: CA UIM Checkconfig LUA for NAS 

     

    If you want to build a perl script my Perluim framework has been made to do it like a boss ! (Used for checkconfig4)

    https://github.com/UIM-Community/checkconfig4

     

    Example build with the Perluim WIKI doc :

     

    my ($RC, %Robots) = $UIM->getAllRobots();
    if($RC != NIME_OK) {
        print nimError2Txt($RC);
        exit(0);
    }
    foreach my $robotName (keys %Robots) {
       print "Processing robot => $robotName\n";
       # Make other call here like : $Robots{$robotName}->getInfo();
    }

     

    Hope it will help you to build your script ! 

     

    Best Regards,

    Thomas