DX Unified Infrastructure Management

 View Only
Expand all | Collapse all

Perl UIM framework

Philip Cashion

Philip CashionJan 19, 2017 03:08 PM

  • 1.  Perl UIM framework

    Posted Nov 21, 2016 11:35 AM

    Hi,

     

    I'm working on CA UIM since junuary 2016. I created a perl framework for my perl probes and i want to share my work with the community. 

     

    It's not a very big framework, but i think it's a good base for all people who want to code perl probes. I'm going to work on the documentation, and review all methods (clean up of return code, etc..).

     

    Feel free to pull-request correction or class idea (maybe you already code something on your side ?).

     

    GitHub - fraxken/perluim: CA UIM perl object-oriented framework 

     

    Main features : 

    - log class (my own log edition, the sdk log is broken -_-...). 

    - hubs / robots / probes callback ( a lot of work on this side ).

    - some class for pds (packages,alarms,adejob)..

    - nimdate (Parser for nimsoft date) => Use time piece to find difference in seconds.

    - ump (minor class to manage a pool of ump).

     

    Best Regards,

    Thomas



  • 2.  Re: Perl UIM framework

    Posted Nov 24, 2016 10:45 AM

    Hi,

     

    Updates : 

     

    - Wiki section with all API available.

    - Global update on return code (all the same everywhere now).

    - Logsize and logwrite on log.pm (to create the same behavior as perl SDK log)

    - Add cleanDirectory to log.pm

    - New class Queue.pm and Tunnels.pm 

    - Archive method are now in a proper class ( hub->archive() to retrieve archive object). 

    - New class file.pm (to load and save file).

    - Add utils.pm with some usefull method. 

    - A lot of new methods in hub.pm / robot.pm and probe.pm 

     

    Roadmap : 

    - Continue to implement more and more callbacks in each API. 

    - Rework main class to support daemon probes. 

    - Better UMP Class (Switch HTTP method from main to UMP.pm and make better call for REST API).

     

    Best Regards,

    Thomas



  • 3.  Re: Perl UIM framework

    Posted Dec 02, 2016 05:23 AM

    Hi,

     

    New probe developped with the framework

    - selfmonitoring : GitHub - fraxken/selfmonitoring: CA UIM Self monitoring probe 

     

    First release for perluim (stable)

    Release ERLY - Release 1.0 · fraxken/perluim · GitHub 

     

    R1 bring a new feature

    - Alarmsmanager : Alarmsmanager · fraxken/perluim Wiki · GitHub 

     

    Roadmap R2

    - Daemon probe support.

    - full support for nimRequest  (R1 support 100% nimNamedRequest and ~ 20% nimRequest ).

     

     

    Best Regards,

    Thomas



  • 4.  Re: Perl UIM framework

    Posted Dec 06, 2016 09:51 AM

    Hi,

     

    New probe with perluim framework : 

     

    GitHub - fraxken/archive_cleaner: CA UIM Archives cleaner 

    This probe only work with automated_deployment_engine (but i work on a enhancement of archive.pm for the next release).

     

    A new roadmap has been added on perluim framework (following the need for selfmonitoring probe) : 

    • Archive class to support distsrv callback.
    • Implement direct alarms creation with spooler hubpost callback (Better way and more efficient way than ciAlarm and nimAlarm).

     

    New probes are comming soon.

     

    Selfmonitoring has been updated and bring a new complete generic check_keys feature to check callback return. It's still an alpha probe but Release 1 is comming soon !

     

    Best Regards,

    Thomas



  • 5.  Re: Perl UIM framework

    Posted Dec 08, 2016 06:39 AM

    Hi,

     

    New release of perluim framework has been created to support new probes releases : 

     

    Release SYNO R2.0 · fraxken/perluim · GitHub 

     

    The next release if for Junuary (bringing some important features for selfmonitoring R2.0 and a new probe that is comming soon). 

     

    Note : Last commits for Selfmonitoring include full support for UMP Servers monitoring and Hubtime monitoring too. Official support comming for R2.0.  

     

    Archive cleaner R1.0 is out

    Release Lozir R1.0 · fraxken/archive_cleaner · GitHub 

     

    No plan for any updates (it's a final and stable version). With R2.0 of perluim framework you have distsrv callback support.

     

    Alarms_management is now available here (need R2.0 of perluim framework) : 

    Release Sandari R1.0 · fraxken/Alarms_management · GitHub 

     

    Comming up next : 

     

    - ump_management (Wasp reconfiguration when HA occur).

    - A new selfmonitoring probe named robots_cheker (but to monitore each probes of each robots).

     

    Best Regards,

    Thomas



  • 6.  Re: Perl UIM framework

    Posted Jan 17, 2017 09:40 AM

    Hi,

     

    I work on a newest release (R4.0) here : 

    GitHub - fraxken/perluim at R4 

     

    Supposed to bring

    - Better way to generate alarm (with Spooler post_raw callback).

    - Server.pm class to manage a probe server instance (still facing some issues).

    - Threadspool.pm ( Working on a class to manage multiple threads, maybe delayed for a another release due to the complexity of threads and async function on Perl). 

    - Some minors features fix / enhancement. 

     

    Best Regards,

    Thomas



  • 7.  Re: Perl UIM framework

    Posted Jan 19, 2017 01:16 PM

    Hi Thomas,

     

    Appreciate your work, seems to be very useful. Is their any "how to do" Document available so that we can know how to run this framework and use all the functionalities. May be i missed to find it in the uploaded files at Github.

     

    Regards

    Hitesh Sehgal



  • 8.  Re: Perl UIM framework

    Posted Jan 22, 2017 10:32 AM

    Hi,

     

    Thanks ! I have to work a starter guide for the end of the week. But basically it's just installing the Perl SDK on the hub / robot and update all libs path in each .pm files ( i dont know if i can bring a better way to require Nimsoft librairies).

     

    Anyway... This is just a framework so you use it when you want. All stable API are documented here : 

    Home · fraxken/perluim Wiki · GitHub 



  • 9.  Re: Perl UIM framework

    Posted Jan 23, 2017 06:08 AM

    Starter guide : 

    Starter guide · fraxken/perluim Wiki · GitHub 

     

    I have to build my own Nimsoft and check step by step if my installation tab is right. In my project the installation was done before i was here. 

     

    I'm open to any pull-request to improve the starter guide for Unix system etc..

     

    Best Regards,

    Thomas



  • 10.  Re: Perl UIM framework

    Posted Jan 23, 2017 09:31 AM

    Thanks Thomas for the quick replies. Documentation is good and understandable. 

     

    Thanks

    Hitesh Sehgal



  • 11.  Re: Perl UIM framework

    Broadcom Employee
    Posted Jan 19, 2017 03:08 PM

    Great work!



  • 12.  Re: Perl UIM framework

    Posted Jan 31, 2017 06:02 AM

    Hi,

     

    New release published : Release Light R4.0 · fraxken/perluim · GitHub 

     

    • A lot of improvment for API documentation.
    • +One starter guide.
    • File.pm become Filereader.pm
    • New class Filemap to manage alarms clear (and others similar needs)
    • New methods in utils to generate alarms with spooler post_raw.
    • New methods in utils to generate nimId.
    • New methods in utils to find a string in a subset.
    • New customCall method in alarmsmanager subclass to work with utils generateAlarm (That work with robot class directly to automatically enrich the alarm).

    Hi have no more major breaking change in head, so i'm going to apply semver to the project. Next changes are only minor or patch.

     

    Best Regards,

    Thomas



  • 13.  Re: Perl UIM framework

    Posted Feb 19, 2017 02:14 PM

    Hi,

     

    A minor patch is out recently : 

    Release R4.1 · fraxken/perluim · GitHub 

     

    I created a roadmap page if you want to check on what i'm working for the next release : 

    Roadmap · fraxken/perluim Wiki · GitHub 

     

    I'm aiming for a stable version ( AKA Long term support ) which will be version 4.

     

    And i'm working on some drafts for the next releases. So if you want to contribute some ideas or somes codes it's the time  

     

    Best Regards,

    Thomas



  • 14.  Re: Perl UIM framework

    Posted Mar 07, 2017 06:37 AM

    Hi,

     

    New release of perluim with new enhancement.

     

    Release R4.2 · fraxken/perluim · GitHub 

     

    Best Regards,

    Thomas



  • 15.  Re: Perl UIM framework

    Posted Mar 08, 2017 08:39 AM

    Hi,

     

    Roadmap has been updated : 

     

    Roadmap · fraxken/perluim Wiki · GitHub 

     

    What's my focus for R4.3 and R4.4 ? : 

     

    - Stabilization of logger class ( I think there are still few issues around truncate etc.. )

    - New class to manage cfg files.

     

    I just started to build up a better cfg class interface than Nimbus::CFG. The goal it's to provide a better way to read and write a .cfg files. There are questions about managing difference between two .cfg too (can be useful in many cases). For example to simplify netconnect_ha probe (where i manage a  cfg merge with cfg C Way). 

     

    Another topics : The release 5 

     

    I'm still working on my side on little codes / architecture plan before publishing a first code draft. Nothing definitive but a little preview of major features here : 

     

    Perluim 5 Preview · fraxken/perluim Wiki · GitHub 

     

    Updates are going to take more time than before because i work much more on the C SDK and on my own high performance FFI Binding.

     

    Best Regards,

    Thomas



  • 16.  Re: Perl UIM framework

    Posted Apr 24, 2017 06:07 AM

    Hi,

     

    Release 4.3 Published : 

    Release R4.3 · fraxken/perluim · GitHub 

     

    V4 release is now pretty stable. No new features planned (only support for hotfix). 

     

    Alpha release of perluim 5 is now on github here : 

    GitHub - fraxken/perluim5: CA UIM (Nimsoft) Perl Object-Oriented framework. Version 5 of perluim series. 

     

    I take my time to publish a complete new version (focus for release 1 for november-december).

     

    Best Regards,

    Thomas



  • 17.  RE: Re: Perl UIM framework

    Posted Oct 26, 2020 06:29 AM
    Hi Thomas,
    dit you update perluim after 2017?
    Thanks, Luc