Extended registry variable

all,

I never really used the extended registry values. Normally I encode my alarms. But I decied I should give it a try.

As you can see I have this scope for a name of the agent with a value. But the alarm if the shot in any case always using stock rather than my extended version value.

No idea what I could do wrong?

Instead of using the Agent, you must use the DBSS_Cluster as your scope instance (the object root in the SQLServer data model)

You can do this by using the registry editor or you can use the Agent for management database do (which can be a little easier to choose the right instance from)

I personally prefer the OOTB Reg Editor

Stefan

Tags: Dell Tech

Similar Questions

  • Prior import registry variable

    Is it possible to get a record that includes registry variables as they were a few months back? Our registry variables became corrupted somehow and I want to import an old configuration.

    For those interested - I have set up a small script that can set up a rule driven by the time that would throw the MonitoringPolicy on an hourly basis...

    import com.quest.nitro.service.util.MBeanRef;

    Import javax.management.ObjectName;

    REF = new MBeanRef();

    ref.setObjectName (new ObjectName("com.quest.nitro:service=ImportExport"));)

    RC = ref.ref ();

    FMS = server. HaMembershipService.getHostName ();

    Date = new Date();

    DTS = date.format("yyyyMMdd-HHmm");

    file = "logs\\Monitoring_policy_" + "_" + dts + fms, ".xml".

    RC.invoke ('exportToFile', file.split (), 'java.lang.String'.split ())

  • Create the registry variable

    Hello

    I'm looking to create the registry variable, the script console and came across this post http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/f/4788/t/19557561.aspx to create the simple registry variable.

    However, I need to add registry values to objects of topology (FxMApplicationResult to be precise). Is there a way to do this in the script. Can you please indicate.

    Thank you

    Vincent

    To add that John has already provided.

    This will allow you to query the outside object and assign the value.

    She could use additional checks of types etc. but a quick way to reach of many objects to a specific value that are not part of the global default value

    // Name of the Registry Variable we are going to updatedef regVarName = 'SampleRegistryVariableName'  
    
    //Value we want to set on the returned objects.//This is based on the registry Variable Type (Double, Long, Integer, String, Boolean, Timestamp, Password)def newRegValue = 99 as Double
    
    // Query to return the objects we want the registry value scoped toodef topologyQuery = #!Host where name like 'host%'#
    
    // Get the Registry Service to execute the registry updatedef regSrv = server["RegistryService"]
    
    // Get the registry variable for updatedef regVar = regSrv.editRegistryVariable(regVarName)
    
    // Get all existing values for this registrydef values = regVar.getRegistryValues()
    
    // Loop through the objects returned from the queryfor( obj in topologyQuery.getTopologyObjects() ) {
    
    // create the registry value object associated to the current object in loop   newTop = regVar.createTopologyObjectRegistryValue(obj.uniqueId)
    
    //set the value defined within newRegValue   newTop.setDefaultValue(newRegValue)
    
    //add the topologyObjectRegistryValue to the Array of existing values   values.add(newTop)}
    
    // Store the values within the Registry VariableregSrv.saveRegistryVariable(regVar)
    

    Hope this helps your use and any other case.

  • Looking for a method to search for rules that use a particular registry variable

    Hello

    I have a series of registry variables that hold email lists effectively different specific alarms.  Is there a way to query to use what are the rules that save variables?  His most difficult when several people create rules and lists.

    THX

    "mark".

    Mark,

    One method would be to export the foglight configuration to a file using the fglcmd program. You can find the file in the registry variable that interests you. You will see references to registry variables in the section rules.

    Example of export of the foglight management server bin directory:

    C:\Quest_Software\Foglight\bin>fglcmd.bat - usr - pwd foglight cmd - foglight util:configexport f filexxx

    David Mendoza

    Foglight Consultant

  • Distribution rules and registry variables between vFoglight facilities

    Hello!

    We are responsible for a number of clients vFoglight facilities. I wonder if there is a more automated way to manage rules vFoglight & variables of register (RV) (alarms). Many of the default rulesettings are questionable. I am looking for a solution where you can pack all your custom rules and RV and then deploy these settings on other facilities at vFoglight.

    I looked through the vFoglight 6.7 guide http://us-downloads.quest.com/Repository/support.quest.com/vFoglight/6.7/Documentation/Management%20Server/vFoglight_CommandLineReference.pdf command-line Reference

    There, on page 119, I found the command of the utility configexport (export or import of a monitoring policy). I already said that if you only keep the changes you made in for example in the rules, you could distribute these through differrent vFoglight facilities, is this correct? Is there someone who has created a script for this in the community?

    I learned that the best practices for managing individual and variable registry rules must copy each rule and RV in the user interface and then configure the new rule with the new RV in the rule editor.

    To do this is a very repetitive task. Is it possible to automate this supported/not supported? Also is it possible to distribute these customized rules & RV between vFoglight facilities, it automate still further?

    Thanks in advance!

    Erik Alm

    Repetitive procedure #1

    Repetitive procedure #2

    Repetitive procedure #3

    Edit

    I had implemented a policy of control of the commandlline with the command:

    fglcmd.bat - usr foglight - pwd - srv - port 443 ssl - cmd - util:configexport f strategy. XML

    When I imported a strategy later. XML where I had deleted all the content with the exception of I reign with the command

    fglcmd.bat - usr foglight - pwd - srv - port 443 ssl - cmd - f policynew.xml util:configimport

    The rule has been changed!

    If (@event.isSet("report/errorMessage")) {}
    Return @event.get("report/errorMessage");
    } else {}
    Return 'Report' + @event.get("report/reportName") + ' run on ' + @event.get("report/dateRun") + 'is fixed. This IS a TEST 20121114 Erik Alm«;»
    }

    The only question is

    1. If I delete all content instead of 1 rule as above nothing has changed

    2. If a problem arises due to an import of strategy 'bad', it can be solved with an import of the backup strategy?

    3. is it possible/safe to distribute the policy like this setting, change the multiple rules/RVs in vFoglight different facilities? With other words, you I configfile change rulesetting in several facilities? (If they are of course the version of fms even)

    4. If the rule/RV is not created/copied before that, these rules/RVs are created?

    5. anyone done this before and created a script that they would like to share?

    Thanks again!

    Erik Alm

    Edit 2

    It seems that it is possible to import new rules and have them appear in the management dashboard with the possibility of enableling rule the. A bug is interesting that they disappear from the new data management dashboard, but are visible in the dashboard management legacy rule.

    1 - does anyone know if the existing rule management dashboard will be removed anytime soon?

    I learned that there is a specific effect is called fglIDE cartridge. I have installed and tested in our product environment. It certainly has a great feature, and we could really use it.

    My respects to Stefan Marx to develop it!

    But I wonder that will be included in the Foglight APM Solution?

    Of http://fglide.apmcentral.org/downloads/

    Disclaimer

    This software is provided as Freeware tools and is not part of the APM Foglight Solution or shipping. It it is not officially supported but if you have any concerns or Questions please use the Foglight community to post these or fill a Github issue

    Or Quest Software has a similar solution that is supported?

    Thanks in advance

  • weird registry variables values

    I was wondering if someone can explain what is happening with these types of values. It seems to be set in the same way on all our BOD-* _NotificationSettings & DBSS-* _NotificationSettings (just under 300). Here is an example:

    BOD-BlocksCorrupt_NotificationSettings

    Value extended

    false@@PS@@warning@@PS@@lowSeverity@@SS @ [email protected],[email protected], [email protected], [email protected]@ES@@@ES@@@Severity @ @DBType @ instance @ on @InstanceName alarm @Hostname @ host was generated: @ AlarmMessage@@@ES@@@PS@@mediumSeverity@@SS@@@SS@@@ES@@@ES@@@ES@@@PS@@highSeverity@@SS@@@SS@@@ES@@@ES@@@ES@@@PS @.

    There is a rule named DBO - blocks corrupt, but I see no reference to the variable above. I'm guessing that it's used internally but you wonder how he gets generated... and what is the problem with all the @ signs?

    The intensive use of @ must mean the separation in the chain

    Using a method of sharing on the chain it will create in a table with

    The data cartridge use this variable for routing and notifications continued within the administration of database dashboards

  • RCK + RCKD in a context (ECC) extended call variable

    Hi all

    Any know if it is possible to get the key to call router (RCK) and router called key day (RCKD) in two separate variables ECC? How can it be done in the ICM scripting?

    Thank you & best regards

    Nick

    Here you go, good luck.

    David

  • not possible to bind a variable shared via Ethernet network

    Hello!

    I have computer A and B with windows xp, sp3 and labview 8.6, professional edition. The two computers are in the ethernet network. I'd like to Exchange data between two applications of LV using shared variables. I create a shared variable (published network) on both computers.
    The problem is in the properties of shared variables not possible to bind the variable of the remote computer to the local computer. In the first step, there is even no possible to see any computer on the network. After the registration of the computer (Tools-> shared-> computer registry variable)
    I see the computer remote, but without any variable sharing.

    Do you have any idea how to solve this problem?

    Thank you for the answers.

    Hi ,

    Visit this link, maybe it can help you.

  • Variable Rgistry

    Hello

    Registry variables come with installed cartridge?

    In the documentation

    I saw the Auto_Clear_Integration_Alarms_with_EndTime registry variable.

    But in Foglight interface in

    Administration > rules and Notifications > manage the registry Variables

    Can not see.

    Should I install a special cartridge (ClearAndDeleteAlarms - 1_0_3.car for example) to have?

    Thank you.

    This is provided as is and free :-)

    If you are having probs I would help you on best effort basis.

    FYI, this cartrdige has been used for some time by various colleagues & clients

    Best regards, Bart

  • Save get Variable set

    Hello

    I created a group of DB that contains two or three databases (in the Control Panel on database).

    I need to create the registry variable that contains this group.

    How can I do this?

    Best regards

    Victor

    Hi Victor.

    A registry Variable is just a value or a reference to a value. Can you be specific about what you want to do with this group? You want to create a service? Process of the group using a rule? A register Variable can

    contain registry values that refer to specific topology objects - what do you have in mind?

    Thank you

    Robert Statsinger

  • using the App: variable scrollbar help and problems

    It is a large amount of code, but please bare with me please.  I would really appreciate the help!

    If I write a financial application where the user enters the initial investment, the compound interest rate period and duration of investment and it calculates the value.  Here is my code: each "screen" that appears on the emulator is its own class:

    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.UiApplication;
    
    public class FinanceApplication extends UiApplication
    {
        //VARIABLES FOR THE INVESTMENT GROWTH
        public double initialInvestment;
        public double interest;
        public int compoundPeriod;
        public int investmentLength;
    
        public static void main(String[] args)
        {
            FinanceApplication firstApplication  = new FinanceApplication();
            firstApplication.enterEventDispatcher();
        }
    
        public FinanceApplication()
        {
            //OPENING SCREEN FOR INVESTMENT GROWTH
            pushScreen(new Screen1());
        }
    
    }
    
    //SCREEN 1 INPUTS *INITIAL INVESTMENT*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen1 extends MainScreen implements FieldChangeListener
    {
    
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 1 METHOD
        Screen1()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Homepage ~ Initial Investment", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nThis application acts as a an investment or growth calculator.  The user inputs the amount of money he or she would like to invest originally, input the interest, the compound period, the regular monthly deposit into the investment, and the time her or she will have the investment and this application will calculate how much the investment will be worth.\n\n Please enter initial amount of money you are depositing into the investment.\n$XX.xx", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELDS TESTING!!!!
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
    
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            // PROBLEM IS HERE, I WANT WHATEVER IS TYPED INTO _input TO BE SET AS THE VARIABLE initialInvestmentFinanceApplication.initialInvestment=_input;
    
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen2());
    
        }
    
    }
    
    //SCREEN 2 INPUTS *INTEREST*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen2 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 2 METHOD
        Screen2()
        {
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Two ~ Interest", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nNow please enter the interest that will be put on this investment", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen3());
        }
    }
    
    //SCREEN 3 INPUTS *COMPOUND PERIOD*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.ObjectChoiceField;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen3 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 3 METHOD
        Screen3()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Three ~ Compound Period", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);;
            LabelField _info = new LabelField("\nNow please enter the compound period.\npress spacebar to go through the choices:", LabelField.USE_ALL_WIDTH);;
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //OBJECT CHOICE FIELD
            String choicestrs[] = {"Weekly", "Bi-Weekly", "Monthly", "Quarterly", "Annually"};
            ObjectChoiceField choice = new ObjectChoiceField("Compound Period: ", choicestrs, 0);
    
            //ADD PAGE, INFO, OBJECT CHOIE TO FIELD
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(choice);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField press2Button = new ButtonField("NEXT");
            press2Button.setChangeListener(this);
            _fieldManagerButton.add(press2Button);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen4());
        }
    }
    
    //SCREEN 4 INPUTS *LENGTH OF INVESTMENT*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen4 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 4 METHOD
        Screen4()
        {
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Four ~ Investment Length", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nNow please enter how long you will have this investment for?\nPlease enter the amount in months:", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new InvestmentWorth());
        }
    }
    
    //INVESTMENT WORTH
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class InvestmentWorth extends MainScreen
    {
    
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 1 METHOD
        InvestmentWorth()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Homepage ~ Initial Investment", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nHere is the worth of your investment:\n", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            LabelField _worth = new LabelField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.BLACK;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _worth.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_worth);
    
        }
    
    }
    

    So when I run on the emulator, on Blackbery 8520 SDK emulator, it doesn't let me scroll upwards on the first screen to see the rest of the text, it's like the cursor on the button sticks or editing field base so it wont allow to exceed upwards the button or basic edit field , but I can scroll between them.

    Second problem is trying to address (as defined in the first class) variables to different edit fields so when something is typed in (double), it is placed in the variable to use in the rest of the program.  I want to make sure the basic edit fields only allow "double" number entered, otherwise it displays a message 'incorrect type '.   Please help me with this, or give me some advice.

    I would REALLY appreciate it.

    LabelFields will display several lines later the OS, so maybe this isn't a problem.  However, LabelFields are by default not active, so you can't scroll on them.  RichTextFields are active by default.  So either change your LabelFields for et focusable (style LabelField.FOCUSABLE) pr change to RichTextField, as the previous poster suggested.

    I do not understand your second question, what are the numbers 'double '?

    However, I was watching the styles FILTER_ that you can use to BasicEditField or watch extending TextFilter to check the characters that they are entered.  I suspect TextFilter is the right way to go, but I've never done anything like this.  But having a good overview in this field and classes that extends.

  • Export the registry to a text file

    Hello community

    We have created different variables in registry for various rules, for example, we have our own rule of "Ability to fileblah system" which refers to our own registry '_FileSystemCapcacityWarningblah'variable and it contains "custom" for different drives settings, for example, rather than using the default of 90%, drive C:\ fred.company.com has a value of 95% and D:\ has a value of 97% and so on.

    A customer suspects that he will need this custom information to a compliance report so that he can prove that we monitor X-system but Y-system from 90% to 95% etc.

    I found different ways to export the whole registry as an XML file so that it can be imported into another FMS, but not what I'm looking for.

    Is it possible that I can export a variable (or group of variables) in a text or CSV file?  I know that you can export the table of registry values, i.e. my customizations, by clicking on the box at the top of angle (first photo), but it does not show the name of registry variable nor any of the default settings, the customization procedure (second photo):

    In addition, it would be tedious to do each set individually and then explain what each is for

    Is there an easy way to export complete registry settings to a text/CSV file for some variables?  Ideally, for any variable registry that begins with "Blah_".  In this way, we can give our customer a file containing the following information:

    • Name of registry variable
    • Description
    • Global default
    • Type of topology (perhaps not necessary, but can be useful to have)
    • Topology object name
    • Value

    Thank you

    Brian

    Hello

    dumping the whole registry creates something... rather difficult to analyze. If you only for your controlled series of gloom, do not schedule performance (values according to the window) so this should be a good start:

    prefix = "blah"result = ""
    
    rs = server.RegistryService
    
    rs.getAllRegistryVariables().each() { var ->
    
      if (var.getName().startsWith(prefix)) {    global = var.getGlobalDefault()?.getDefaultValue()    if (!global ) global = ""    result += var.getName() + "(" + var.getComment() + ")" + "\n"    result += " + global default = " + global  + "\n"
    
        var.getRegistryValues().each() { val ->      if (val instanceof com.quest.nitro.service.sl.interfaces.registry.TopologyObjectRegistryValueInterface) {        result += " + " + val.getDisplayableName() + "(" + val.getTopologyType() + ")" + " = " + val.getDefaultValue() + "\n"      }    }  }
    
    }
    
    result
    

    It runs in the editor script or through fglcmd, export what you are looking for I think. See also your info api SL of the local server.

    Hope that helps
    Nils

  • Do not mix variables of substitution for the title area and JQuery Tabs

    Hello

    I've implemented Jquery tabs to the Apex 4 using this great piece of Patrick Wolf:

    Re: New themes in APEX 4 does not not with JQuery tabs

    However, there is a problem and I don't know if it's a bug or it is me who is missing something... If I put substitution variables, as in the title of the subregion (e.g. customer and P10_CUSTOMER_NAME.), the substitution variable do not get overridden and the text is displayed as in the tab.

    The variable is properly developed in the region title itself (which appears inside the tab). Simple example:
    +----------------------------+
    | Customer &P_CUSTOMER_NAME. |  <--- TAB
    |                            +------------
    |
    | +----------------------------------
    | | Customer Luis                     <-- SUB-REGION TITLE
    | +----------------------------------
    | |
    | |
    The header entry is defined as:
    <li><a href="##REGION_STATIC_ID#-tab-#SUB_REGION_ID#">#SUB_REGION_TITLE#</a></li>
    Shouldn't the chain of substitution #SUB_REGION_TITLE # be converted to the title of region with the extended substitution variables?

    No work around?

    Thank you
    Luis

    Luis

    However, there is a problem and I don't know if it's a bug or it is me who is missing something... If I put substitution variables, as in the title of the subregion (e.g., client & P10_CUSTOMER_NAME) the substitution variable does not get overridden and the text is displayed as in the tab.

    Confirmed. Looks like a bug. Probably substitute on the title (sub-) region is not performed until the region is rendered, but the subregion headers list is generated before that.

    No work around?

    All I can think so far uses a dynamic/JavaScript Action to change the label of the tab when the page is rendered.

  • Redirect causes loss of range of process variable

    With the help of jsf/adf bc 10.1.3.4. I have a need to programmatically run a redirect with the following code:

    FacesContext facesContext = FacesContext.getCurrentInstance ();
    ExternalContext externalContext = facesContext.getExternalContext ();
    String requestContextPath = externalContext.getRequestContextPath ();
    HttpServletResponse response = (HttpServletResponse) externalContext.getResponse ();

    try {}
    response.sendRedirect (requestContextPath + "/ faces /" + pageName);
    }
    catch (IOException ex) {}
    throw new RuntimeException ("Impossible to redirect to" + pageName + ", e.g. =" + ex, ex);
    }

    facesContext.responseComplete ();

    It seems that all the variables that have a scope of process before running the above code are being lost/allowed out. I guess this is normal? Is it that I can do to redirect with the above code and not lose the extended process variable? Or I have to use session scope instead? Thank you.

    Hello

    'Re missing you the ViewHandler of coding.

    FacesContext context = FacesContext.getCurrentInstance();
    ViewHandler handler = context.getApplication().getViewHandler();
    
    // Get the URL for the specified view id with the required view parameter to maintain the pageFlowScope
    String viewUrl = handler.getActionURL(context, viewId);
    
    ExternalContext eContext = context.getExternalContext();
    
    // Encode the URL to maintain the user session in URL rewriting mode
    String encodedUrl = eContext.encodeActionURL(viewUrl);
    
    try
    {
        eContext.redirect(encodedUrl);
    }
    catch (IOException ex)
    {
        throw new FacesException("unable to redirect to " + pageName + ", ex = " + ex, ex);
    }
    

    Please note that the redirect code itself was also changed to not be dependent on HttpServletResponse.

    Kind regards

    ~ Simon

  • vFoglight alert rule do not behave properly

    Hello

    I would like to create what I would think that should be a relatively simple rule, here are the details, if anyone can help that would be great.

    1. The rule must include only the virtual machines VMware than that name meet a specific criterion, i.e. 'maintenance -' (see screenshot 'definition of the rule')
    2. The rule should warn if the CPU reaches of varying levels, either warning 60, 70 for criticism etc. (see the attached screenshot "rule conditions").

    Here is what I expected to happen...

    The first must restrict the scope of the rule only the virtual machines that meet this criterion. If I check the box 'validate the scope of the rule' green in this section, it shows me a list of these virtual machines with this name. Large.

    The second point should then take these extended virtual machines and watch the CPU usage and compare that to the threshold defined in the registry variable.

    Regarding the screenshot 3 (alerts rule) - the first problem is that I get alerts for virtually all of the virtual machines, so it is ignoring the scope.

    The second issue is that it does not notice the severity level, so it's just alert for regardless of whether it reaches the threshold. All strangely I actually disabled the alarm 'WARNING' so it should be for this type of event be alert.

    Any advice would be very welcome. Or is there a better way to do what im aiming to do that would be fantastic.

    Thank you

    Additional accessories:

    If you reboot the host and disable the alarms should fire on the virtual machines in the scope.  There is a bug that basically the rule sticks in memory and is not updated correctly.  Last I looked there is a fix on that provided for 6.6.2 (Core 5.6.4)

Maybe you are looking for