Idea Details

Netmaster - add user attribute field to user class resource definitions

Last activity 12 days ago
Jeremy_Hoffman's profile image
08-04-2016 04:35 PM

We have a lot of automation in place, using user class resources to implement health checks for everything in the environment that our team is responsible for.  The automation NCL procs we have written sometimes need to read the RAMDB to discover the resources that need to be checked.  It would be helpful to be able to associate metadata with our user class resources.  We do this now by embedding information in the resource name.  For example, the resource LOSA00A0-OSPF-2 indicates a resource representing the correct OSPF neighbor count over the OSA card LOSA00A0.  Rather than having to include the strings 'OSPF' and '2' with the delimiter '-' in the resource name, we would prefer to have a user attribute field available.  This could be as simple as a single (large) field in which anything could be entered.  (I would put my metadata in name-value pairs.)  Perhaps you could implement a comment screen, something like what you have for EventView rules.  As long as the field can be read by $RMCALL it would work for me.


Comments

05-16-2019 11:59 AM

Not planned. As a Comment substitute... 

 

Could use the Owner Details panel... which we doc in https://docops.ca.com/ca-netmaster-shared-content-library/12-1/en/reference/ramdb-variables 

 

Or Extended Function screen that allows twelve lines of parms.

 

XF panel is related to XF command and need to define a function name to have the parm lines saved.  

 

They are stored in $RM02MEXFNC1/2/3 and can be parsed out as follows:

 

&PARSE SEGMENT VARS=(+                             

                   $RM02FUNCNAM(12),+             

                   $RM02PARM1(58),+               

                   $RM02PARM2(58),+               

                   $RM02PARM3(58),+               

                   $RM02PARM4(58)) +              

               DATA=&$RM02MEXFNC1                 

 

&PARSE SEGMENT VARS=(+                            

                   $RM02PARM5(58),+               

                   $RM02PARM6(58),+               

                   $RM02PARM7(58),+               

                   $RM02PARM8(58)) +               

               DATA=&$RM02MEXFNC2                 

 

&PARSE SEGMENT VARS=(+                             

                   $RM02PARM9(58),+               

                   $RM02PARM10(58),+              

                   $RM02PARM11(58),+              

                   $RM02PARM12(58)) +             

               DATA=&$RM02MEXFNC3