Exporting a State View - SCOM 2012R2

Is there a way to export the members of a State View to a csv file?
I have created a State View of servers and have just the columns needed to view the servers, but can the contents of this view be exported?
Thx,
John Bradshaw

Hi,
Copy SCOM View Data to Excel
http://ianblythmanagement.wordpress.com/2013/05/13/copy-scom-view-data-to-excel/
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • Grayed out in State View SCOM 2012 R2

    I want to display only the following items in a state view:
    Critical
    Warning
    Unmonitored
    Grayed out Computers/Servers
    How do I do this?

    Works perfect.... 
    http://www.youtube.com/watch?v=4n9TiXoCCHU

  • Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state in SCOM 2012

    Hello Team,
    We are monitoring 1000 servers in our environment and out of 1000 servers, we have approximately 100 servers showing as critical state on the server state view.
    We can get the critical servers list from SCOM console, but we are not able to get the information about the component responsible for the server to be critical. Using Health explorer to find the root cause for 100 servers is really impossible and time consuming.
    Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state?
    Advance thanks for your help.
    Regards,
    Dinesh
    Thanks & Regards, Dinesh

    Hi,
    As far as I know alerts with severity as criticla may cause windows computer in a critical state, we can try below code to find all critical alerts:
    get-alert -criteria 'ResolutionState=0 AND Severity=2' | select Name,ResolutionState,TimeRaised | export-csv c:\Alerts.txt
    Criteria Syntax http://msdn.microsoft.com/en-us/library/bb437603.aspx
    Values to use.
    Resolution State 
    Severity Values for Alerts
    0       =   New
    0 = INFORMATIONAL
    255   =   Closed
    1 = WARNING
    2 = CRITICAL
    Hope this helps.
    Regards,
    Yan Li
    Regards, Yan Li

  • SCOM 2012R2 - Alerts Not Generating, Must Restart SCOM to Resolve

    Hi TechNet,
    I am having an issue with my SCOM 2012R2 where the system goes into a state where alerts are not generated.  We start to see events like the one below leading up to the point where this happens. This is resolved by restarting our SCOM MS. Is there another
    solution besides having to restart our SCOM MS every day?
    A Bind Data Source in Management Group has posted items to the workflow, but has not received a response in 36720 seconds.  This indicates a performance or functional problem with the workflow.
    Workflow Id : Microsoft.SystemCenter.CollectPerformanceData
    Instance    : SCOM01.xxxxx.LOCAL
    Instance Id : {1189BAF9-AFDC-ADA0-196D-D749A369A350}
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider Name="HealthService" />
    <EventID Qualifiers="32768">2115</EventID>
    <Level>3</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-02-02T11:28:11.000000000Z" />
    <EventRecordID>2683831</EventRecordID>
    <Channel>Operations Manager</Channel>
    <Computer>SCOM01.xxxxx.LOCAL</Computer>
    <Security />
    </System>
    - <EventData>
    <Data>Concerto Systems Management</Data>
    <Data>Microsoft.SystemCenter.CollectAlerts</Data>
    <Data>SCOM01.xxxxx.LOCAL</Data>
    <Data>{1189BAF9-AFDC-ADA0-196D-D749A369A350}</Data>
    <Data>37320</Data>
    </EventData>
    </Event>

    Hi,
    Please refer to the Kevin's reply in the thread below:
    https://social.technet.microsoft.com/forums/systemcenter/en-US/f88bf528-d896-495f-ada2-abfda37e634e/a-bind-data-source-in-management-group-xyx-has-posted-items-to-the-workflow-but-has-not-received-a
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Dashboard View SCOM 2012 R2

    I have 3 views in Monitoring (2 Alert views and 1 State view) that would be nice to combine as one Dashboard view.
    How do I do this in 2012 R2?
    Thx
    John Bradshaw

    Hi Bradje,
    Hope it helps:
    http://www.systemcentercentral.com/creating-opsmgr-2007-r2-style-dashboard-views-in-opsmgr-2012-scom-sysctr/
    Natalya

  • EXPort (without Mat view logs)

    Hi
    Oracle10g, Win2003
    Is there a way to take EXPort without "materialized view logs", as these logs cause error in IMPort and some time even terminate IMPort.
    It will be equally well for me if i got a way to completely exclude "materialized view & materialized view logs" from EXPort.
    Some one please guide me the way to exclude them from IMP or EXP?
    Wishes

    Additionally when ever I IMPort a user some objects appear in non-compiled state, I compile them with my client tool, but I have to drop and recreate materialized view every time.
    Can come one have an improved way to get IMPort with materialized view?
    Wisehs

  • Error exporting reports while viewing the exact same report works fine!

    Greetings,
    We are using Visual Studio 2008 and Crystal Reports 2008 (with the service packs etc. installed). When setting the parameter values of a ReportDocument and then passing docuemtn to the viewer everything works 100%, when calling the ExportToDisk method I keep getting the ParameterFieldCurrentValueException being thrown. We are using a bespoke C# application as a reporting tool. All of the reports run off stored procedures. Please can someone help me?
    I have included teh code for setting the database parameters, the parameter values themselves and the calling of the export function.
    Thanks in advance,
    Robert Lancaster
        private void SetReportLoginInfo(ReportDocument _rdReport)
          try
            // Must set the ConnectionInfo for all the tables in the report
            // Get the ConnectionInfo Object.
            TableLogOnInfo tlTableLogOnInfo = new TableLogOnInfo();
            foreach(Table ReportTable in _rdReport.Database.Tables)
              if(ReportTable.Name == IMAGE_TABLE)  // Do not set login info for this table.
                continue;
              tlTableLogOnInfo = ReportTable.LogOnInfo;
              // Set the Connection parameters.
              tlTableLogOnInfo.ConnectionInfo.ServerName = dmDBManager.ServerName;  // Physical server name
              tlTableLogOnInfo.ConnectionInfo.DatabaseName = dmDBManager.DatabaseName;
              tlTableLogOnInfo.ConnectionInfo.UserID = dmDBManager.UserName;
              tlTableLogOnInfo.ConnectionInfo.Password = dmDBManager.Password;
              ReportTable.ApplyLogOnInfo(tlTableLogOnInfo);
              // Set the location for the report to the correct value.
              string[] sTemp = ReportTable.Location.Split('.');
              int iLength = sTemp.Length;
              if(iLength >= 2)
                // Location will usually be in the form: DBName.Owner.Object
                // E.g. FleetData.dbo.crpt_AlarmsRpt;1
                // Change the name of the database to the correct value
                ReportTable.Location = dmDBManager.DatabaseName + "." + sTemp[iLength - 2] +
                  "." + sTemp[iLength - 1];
              //          // DO NOT delete the following line of code!
              //          // For an explanation see:
              //          // http://support.crystaldecisions.com/forums/message.asp?fid=76&mid=94272
              //          ReportTable.Location = ReportTable.Location;
            }  // End foreach that steps through all the tables in the report
            // Must now check to see if there are any subreports in the report.
            // If there are, must change their login info as well.
            for(int iRptObj = 0; iRptObj <= _rdReport.ReportDefinition.ReportObjects.Count - 1; iRptObj++)
              if(_rdReport.ReportDefinition.ReportObjects[iRptObj].Kind  == ReportObjectKind.SubreportObject)
                string sName = (_rdReport.ReportDefinition.ReportObjects[iRptObj] as SubreportObject).SubreportName;
                // Create a new reportdocument from the subreport
                ReportDocument rdSubReport = _rdReport.OpenSubreport(sName);
                // Call function recursively
                SetReportLoginInfo(rdSubReport);
              }  // End if that checks for subreport object
            }  // End for that steps through all the objects in the report
          catch(Exception ex)
            string cError = "[ReportEngine][SetReportLoginInfo] " + ex.Message;
            Debug.WriteLine(cError);
            EventLogWriter.WriteErrorToEventlog(cError);
        }  // End function SetReportLoginInfo
        private void AssignReportParams(ReportDocument _rdReport)
          ParameterFieldDefinitions pfParameterFieldDefinitions = _rdReport.DataDefinition.ParameterFields;
          ParameterFieldDefinition pfParameterFieldDefinition;
          ParameterDiscreteValue pvParameterDiscreteValue;
          ParameterValues pvParameterValues;
          // Assign the values to all the params
          for (int iParam = 0; iParam < rpParams.Length; iParam++)
            // Get the correct element from the array and clear any existing values
            pfParameterFieldDefinition = pfParameterFieldDefinitions[rpParams[iParam].ParamName]; // ,""];
            pvParameterValues = pfParameterFieldDefinition.CurrentValues;
            pvParameterValues.Clear();
            // Create a new value for the parameter and assign it
            pvParameterDiscreteValue = new ParameterDiscreteValue();
            pvParameterDiscreteValue.Value = rpParams[iParam].ParamValue;
            // Add the new value and apply it
            pvParameterValues.Add(pvParameterDiscreteValue);
            pfParameterFieldDefinition.ApplyCurrentValues(pvParameterValues);
        }  // End function AssignReportParams
        private bool ExportReport(ReportDocument _rdReport,
                                  CrystalDecisions.Shared.ExportFormatType _ftType,
                                  out string _sError)
          try
            string sExpName = rpParameters.ReportExpName;
            DiskFileDestinationOptions diskOpts = ExportOptions.CreateDiskFileDestinationOptions();
            diskOpts.DiskFileName = sExpName;
            ExportOptions exportOpts = new ExportOptions();
            exportOpts.ExportFormatType = _ftType;
            exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
            exportOpts.ExportDestinationOptions = diskOpts;
            _rdReport.Export(exportOpts);
            //_rdReport.ExportToDisk(_ftType, sExpName);
            _sError = "";
            return true;
          catch (ParameterFieldCurrentValueException)
            _sError = ReportRunParam.sERROR_PARAMCURVALUE;  // THIS ALWAYS FIRES ON EXPORT
            return false;

    Hello, Robert;
    The code to logon, set parameters and export appears fine. Can you send me the code that defines the report, calls these functions and passes the report to the viewer? I would like to see the order in which it is happening.
    Does the application have rights to the folder you are exporting to?
    Can you export from the viewer successfully?
    Elaine

  • Export memory statement not working between two methods

    hello all
    i m implementing one BADI MB_MIGO_BADI .this BADI is having 2 methods 1)LINE_MODIFY and 2)PBO_DETAIL.
    the followng is the code in LINE_MODIFY methd
    DATA : c_flag TYPE c .
      TYPES:BEGIN OF tp_ecppa,
            prvsy     TYPE /sapsll/prvsy_spi,
            ecpid     TYPE /sapsll/ecpid_spi,
      END OF tp_ecppa.
      DATA:wl_ecppa TYPE tp_ecppa.
      IF cs_goitem-matnr IS NOT  INITIAL.
       SELECT  prvsy ecpid UP TO 1 ROWS FROM /sapsll/ecppa INTO wl_ecppa WHERE prvsy = cs_goitem-matnr.
       ENDSELECT.
       IF wl_ecppa-ecpid EQ 'DE3203CWIP'.
          c_flag = 'X'.
       ENDIF.
      ENDIF.
    SET PARAMETER ID 'PMEM' FIELD c_flag.
      export c_flag from c_flag  to memory id 'mem1'.
    the following is the code in PBO_DETAIL method
    METHOD IF_EX_MB_MIGO_BADI~PBO_DETAIL.
      IF SY-UNAME = 'E494049' or sy-uname = 'E491754'.
        DATA:C_FLG TYPE C .
        CLEAR C_FLG.
        if gf_class_id eq i_class_id.
    GET PARAMETER ID 'PMEM' FIELD c_FLG.
       Import c_flg to c_flg from memory id 'mem1'.
    IF C_FLG = 'X'.
    E_CPROG = 'ZP1_SCREEN'.
    E_DYNNR = '0001'.
    E_HEADING = 'GTS'.
    ENDIF.
    endif.
    endif.
    free memory id 'PMEM'.
    ENDMETHOD.                    "IF_EX_MB_MIGO_BADI~PBO_DETAIL
    but the new tab is not displayed in MIGO . so i think there is some mistake in  export memory statement .
    so could you please check if i have used export/import statements correctly.

    If problem is rectified, Please mark as answered.
    Sujay

  • Cannot export Vendor Statement to Word

    Hi
    We are not able to export Vendor Statement to Word at all as the Word icon is not visible though this icon is visible for Customer Statement can be exported to Word.
    Kedalene Chong

    Hello,
    your requirement is clear. Currently, the export of Vendor Statement to Word is really not supported. I would like to understand urgency and severity of the requirement.
    I was wondering in which business situation B1 customer woulld utilize editing of Vendor Statement document. Why would he/she need to do it? What is being done with the statement after? Is it sent to the particular vendor? What does customer expect from the vendor then?
    Thank you.
    Peter Dominik
    SAP
    B1 Product Definition

  • State View powershell cmdlets

    I am trying to use powershell cmdlets to pull up the health state of certain groups like "agent" and "Health Service" from a specific custom created state view in Operations manager. Is this possible? If so what is the syntax?
    Thanks!

    Hi
    You can pull information from sate view but you can query group using below code
    import-module operationsmanager
    New-SCOMManagementGroupConnection
    $gp=Get-SCOMGroup -DisplayName "operations Manager Agents"
    Get-SCOMMonitoringObject -Group $gp |select HealthState,Displayname
    Regards
    sridhar v

  • How to export all the views in one schema?

    Hi,
    I have more than 1000 views in one shcema.
    How to export all the views in one schema?
    Amy

    Hi,
    It's not a very easy question, I have develop a script wich create a script to create view from old database to new database :
    /* &1: Oracle SID Source
    /* &2: Oracle Schema Source
    SET HEAD OFF
    SET VERIFY OFF
    SET PAGESIZE 0
    SET LONG 40000000
    SET LONGCHUNKSIZE 2000
    SET LINESIZE 2000
    SET FEEDBACK OFF
    CREATE TABLE RECREATE_VIEW(VIEW_NAME VARCHAR2(30), TEXT LONG);
    /* Selection du texte de la vue */
    DECLARE
    w_text long;
    w_text_debut long;
    w_text_column long;
    w_view varchar2 (30);
    w_schema varchar2 (8):='&2';
    CURSOR w_cursor IS
    SELECT a.view_name, a.text
    FROM dba_views a
    WHERE a.owner = w_schema;
    CURSOR w_column IS
    SELECT DECODE (ROWNUM,
    1, 'CREATE OR REPLACE FORCE VIEW ' || '&' || '1..'
    || a.table_name || chr(10)
    || '('
    || a.column_name
    || DECODE (ROWNUM, nbcolumns, ')' || chr(10) || 'AS' || chr(10), ',' || chr(10))
    FROM (select column_name,table_name
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    order by column_id ) a,
    (SELECT COUNT (1) nbcolumns
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    GROUP BY owner, table_name) b
    order by rownum;
    BEGIN
    OPEN w_cursor;
    LOOP
    FETCH w_cursor INTO w_view, w_text;
    EXIT WHEN w_cursor%NOTFOUND;
    w_text_debut := NULL;
    w_text_column := NULL;
    OPEN w_column;
    LOOP
    FETCH w_column INTO w_text_column;
    EXIT WHEN w_column%NOTFOUND;
    w_text_debut := w_text_debut || w_text_column || ' ';
    w_text_column := NULL;
    END LOOP;
    CLOSE w_column;
    w_text := w_text_debut||w_text||';';
    insert into RECREATE_VIEW(VIEW_NAME, TEXT) VALUES (w_view, w_text);
    COMMIT;
    w_text := NULL;
    w_view := NULL;
    END LOOP;
    CLOSE w_cursor;
    END;
    SPOOL scripts_views_&1..sql
    PROMPT SPOOL scripts_views_&1..log
    PROMPT
    SELECT TEXT
    FROM RECREATE_VIEW;
    PROMPT
    PROMPT SPOOL OFF
    PROMPT
    SPOOL off
    PROMPT /* Formattage du fichier SQL */
    !sed 's/[ ]*$//' scripts_views_&1..sql > aprilia.tmp
    !rm scripts_views_&1..sql
    !mv aprilia.tmp scripts_views_&1..sql
    DROP TABLE RECREATE_VIEW;
    EXIT
    I hope that help you.
    Nicolas.

  • Question on Exporting Table Stats to another database

    I have a question exporting Table Stats from one schema in database A to another schema in another database B.
    Currently running Oracle 9.0.2.6 for unix in both prod and dev.
    Currently table stats are gathered using the ANALYZE TABLE command. We currently don't use the DBMS_STATS package to gather table statistics.
    Question:
    If I execute DBMS_STATS.EXPORT_TABLE_STATS in database A can I import them to database B if I'm only using the ANALYZE TABLE to gather table stats? Do I need to execute the DBMS_STATS.GATHER_TABLE_STATS package in database A prior to excuting DBMS_STATS.EXPORT_TABLE_STATS ?
    The overall goal is to take table stats from Production in its current state and import them into a Development environment to be used for testing data / processes.
    Yes we will be upgrading to Oracle 10 / 11g in near future.
    Yes we will be changing our method of gathering table stats by using the DBMS_STATS package.
    Thanks,
    Russ D

    Hi,
    If I execute DBMS_STATS.EXPORT_TABLE_STATS in database A can I import them to database B if I'm only using the ANALYZE TABLE to gather table stats? You need using the DBMS_STAT package for get and export statistics process if you want migrate the stats to other database.
    Do I need to execute the DBMS_STATS.GATHER_TABLE_STATS package in database A prior to excuting DBMS_STATS.EXPORT_TABLE_STATS ?Yes, you need executing first DBMS_STATS.GATHER_TABLE_STATS.
    Good luck.
    Regards.

  • Will dbms_stats.export_database_stats also export pending stats in 11g?

    Hi all
    In 11g, will the dbms_stats.export_database_stats procedure also export pending stats?
    There is an export_pending_stats procedure but we want to export both published and unpublished stats.
    Thanks,
    Louiza

    Check here:
    [DBMS_STATS|http://www.morganslibrary.org/reference/dbms_stats.html]
    [http://download-uk.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_stats.htm]
    HTH
    -Anantha

  • Looking To Delete|Hide The "Monitoring\UNIX/Linux Computers" State View

    Seeing as we do not manage any UNIX/Linux boxes in our environment, I’d like to be able to remove the
    UNIX/Linux Computers state view from the console.
    I was able to track the view down to Microsoft.Unix.Servers.State.View, hosted by the
    Microsoft.Unix.Views MP, which is unfortunately sealed. 
    This of course is preventing me from simply deleting the view directly from the console.
    Also, it would appear that the Show or Hide Views… option should instead be labeled
    Show or Hide Folders..., as it only allows for showing/hiding folders!!!
    Can anyone suggest an alternative?
    Thanks,
    Larry

    Hi,
    If you don't have any Unix/Linux boxes you could delete the Unix/Linux management pack. After deleting, you will not have Unix/Linux Computers state view
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • TitleWindow and State View

    I have an application with a titleWindow. On the titleWindow,
    I have a "Yes" and a "No" button. If the user click "Yes" then the
    button will take them to the next state view. If no, then the
    titleWindow is canceled or closed and take the user back to the
    application. I don't know how to pass that "event" in the
    titleWindow to take the user to another state view. I hope this
    make sense to somebody.
    Thank you so much!

    This forum is for Flex Builder questions. This question is
    about Flex itself and should go in the General Discussion forum.
    Post there and I will try to help.
    But for now, see:
    http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=558
    Tracy

Maybe you are looking for

  • Mid 2010 Macbook pro I5 getting random crashes.

    In the middle of various things my laptop randomly freezes up for a few seconds then a white screen appears that says "your computer was restarted because of a problem.....". This is incredibly bothersome and I wish I knew what the problem is. It doe

  • Use of Synchronized  in jsp/servlet

    Can any one explain me the use of Synchronized in servlet/jsp which is multithreaded Is this correct synchronized should be used only when we want to pritect Static variable as they have only one copy but in case of instance variable they have sepera

  • Captivate TOC navigate visited slide only problem. Visited topic can not click when exit and open again the training.

    Hi, I have created the TOC and i want the learner just can click at the Topic they have visited. i have no problem at the first time viewing the training. The problem is i read half of the training, for example I have Topic 1 - Topic 5, I just read u

  • Is it possible to create a musical score without measures?

    Is there a way to display the musical score of a particular track without any measures (or bars as they are often called)? For example I'd like to be able to play a melody on my keyboard with no metronome and no time signature but have the notes them

  • [CS4 JS] Find a paragraph style and get text contents

    Hello, I would like to get to contents of text that is applied with a specific paragraph style, so that I can copy it to another text frame app.findTextPreferences = app.changeTextPreferences = null; app.findTextPreferences.appliedParagraphStyle = "h