Query bios model

Hi there,
I'm using SCCM in my organisation(System center configuration manager), and we have several models of ThinkCntre PC's in our organisation.
How can i query the bios type of each ThinkCentre computers.?
I have seen that in dell computers they created a SQL QUERY for every ThinkCentre computer which can help me in creating a report in sccm, and then find out which computers do not have an updated bios version.
Hope you can help me up on this.

select distinct SMS_R_System.Name, SMS_G_System_PC_BIOS.SMBIOSBIOSVersion, SMS_G_System_COMPUTER_SYSTEM.Model from  SMS_R_System inner join SMS_G_System_PC_BIOS on SMS_G_System_PC_BIOS.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model like "%"
With the last entry you can filter for specific models (like "3%" "4%" "5%" and so on).

Similar Messages

  • With clause in SQL query data model

    Hello!
    isn't it possible to use the with clause in sql query data models?
    for example following query:
    WITH
    a_test as (
    select dummy from dual
    select *
    from a_test
    brings up a "XML Parsing Error: no element found"-error...
    BR Paul

    I tried a slightly different query (see below) and the query worked fine and retrieved data.. I did not get any errors.
    WITH
    a_test as (
    select 'dummy' from dual
    select *
    from a_test
    This works as well.. retrieving the value of the parameter
    WITH
    a_test as (
    select :Test_ID from dual
    select *
    from a_test
    thanks,
    BIPuser

  • Different LOV behavior between SQL query data model and data template

    I have noticed different behavior when using parameters linked to list of values (LOV) of type menu with the multiple selection option enabled and a SQL query data model vs a data template. Here's the example because that first sentence was probably really confusing.
    SQL Query:
    select
    plmc.MonthCode, plmc.ModalityDim, plmc.ModalityName,plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(:modalityDim,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (:modalityDim)
    then 1
    else 0
    end
    end
    Putting BI Publisher into debug mode, defining a data model of type SQL Query, defining a parameter called :modalityDim linked to a LOV that allows multiple selections, and selecting a couple of values from the LOV the output of the prepared statement is:
    [081607_122647956][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?,?)
    then 1
    else 0
    end
    end
    [081607_122647956][][STATEMENT] 1:6
    [081607_122647956][][STATEMENT] 2:7
    [081607_122647956][][STATEMENT] 3:6
    [081607_122647956][][STATEMENT] 4:7
    [081607_122654713][][EVENT] Data Generation Completed...
    [081607_122654713][][EVENT] Total Data Generation Time 7.0 seconds
    Note how the bind variable :modalityDim was changed into two parameters in the prepared statement.
    When I use this same SQL Query in a data template the output is:
    [081607_012113018][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?)
    then 1
    else 0
    end
    end
    [081607_012113018][][STATEMENT] 1:'6','7'
    [081607_012113018][][STATEMENT] 2:'6','7'
    [081607_012113574][][EXCEPTION] java.sql.SQLException: Syntax error converting the nvarchar value ''6','7'' to a column of data type int.
    Note the exception because it is trying to convert the multiple parameter values.
    Am I doing something completely wrong here? I really need to use a data template because I will need to link a couple of queries together from different database vendors.
    -mark

    This is for 10.1.3.4 - because in 11g every SQL query is automatially part of a data model.
    In 10g SQL query is for simple unrelated SQL queries.
    If you need to use advance features such as:
    a) multiple SQL queries that are joined in master-detail relation ships
    b) before/after report triggers
    Then you will need to use the data template, which is an XML description
    of the queries, links, and PL/SQL calls.
    hope that helps,
    Klaus

  • How to query UML models with OCL?

    Hello everyone,
    I am working on using OCL to query UML models.
    Besides diverse examples, I don't know how certain UML metamodel elements are accessed via OCL when an instance model is given.
    Where am I supposed to look after this information?

    Hi
    Perhaps you want
    Transition.allInstances().extension_ensureRole->excluding(null).role
    Regards
    Ed Willink
    On 17/07/2015 10:58, Jens Bürger wrote:
    > Thanks,
    >
    > so for now I will use Mars.
    >
    > I managed to get close to what I want in a first test case.
    > I have a state chart and a transition with a stereotype <<ensureRole>>.
    > This stereotype has a tagged value "role" which is represented as a
    > String array. The actual only element is "a=b".
    >
    > I use the following query:
    > Transition.allInstances()->select(t |
    > t.getAppliedStereotypes().name->includes('ensureRole')).getAppliedStereotypes().getAllAttributes()->select(x|x.name='role')
    >
    > The result is:
    > ensureRole::ensureRole::role
    >
    > So how can I access the tagged values?
    > The respective part of the .uml-file looks like this:
    >
    > ..
    > </uml:Model>
    > <ensureRole:ensureRole xmi:id="_e75g0Cu0EeWNw6GF_Fgubg"
    > base_Transition="__AaxQIRzEeSbXcAiNcJFPQ">
    > <role>a=b</role>
    > <role>x=y</role>
    > </ensureRole:ensureRole>
    > </xmi:XMI>
    >
    >

  • How do you query bios for hard disk drives?

    Is there any way to query the bios to find out the interupt address (i.e. 80x) of all the attached hard disks?
    Only I need to manually figure it out for installing grub or lilo.

    If you have a working Linux system installed you can do lspci -v, but it sounds like you are just installing, so you can't do this. Why do you need to know the interrupts for your hard drives for GRUB/LILO? I don't recall ever having to know this information to install either LILO or GRUB or even the FreeBSD boot loader.

  • SQL Query Data Model Question

    Hi All,
    I'm new to XMLPublisher so i'll try to explain the best i can the problem i'm having creating a Data Model for my report.
    I'm using Database XE and have installed XMLPublisher, as XE is extremely flexible in creating apps i'm having huge trouble finding a reporting solution for my applicaiton. I have created an app to track and control time and expense which i want to generate timesheet, expense sheets, invoice etc from.
    Having done some read i think XML is the best approach for me however i'm having huge troubles with my data model.
    EXAMPLE:
    I have 2 tables to start with, first table holds client information and the second table holds project information. One client can have many projects.
    When i create the Data Model using SQL i get the obvious problem that when a client has more then one project my XML structure is incorrect.
    SELECT gc.name AS CLIENT,
    gp.name AS PROJECT
    FROM gte_client gc,
    gte_project gp
    WHERE gc.client_id = gp.client_id(+)
    The above SQL creates the following XML
    - <ROWSET>
    - <ROW>
    <NAME>Symatrix Ltd</NAME>
    <NAME>Symatrix Pre-Sales</NAME>
    </ROW>
    - <ROW>
    <NAME>Aston Carter</NAME>
    <NAME>MOD</NAME>
    </ROW>
    - <ROW>
    <NAME>Symatrix Ltd</NAME>
    <NAME>Fujitsu</NAME>
    </ROW>
    </ROWSET>
    Obvious problem here is the fact that client Symatrix appears twice as there are 2 projects.
    I have tried to write SQL/XML and i think i'm beginning to understand the structure of the XML functions however XMLPublisher doesn't appear to understand the syntax when creating a SQL Query for the data model.
    I hope all this makes sense.
    Kind Regards
    Glen

    Hi All,
    Ok, so with a little searching through documents and articles on the web i found this information.
    http://blogs.oracle.com/xmlpublisher/2006/05/05#a38
    this details the exact thing i'm trying to achieve so anyone else who searches this forum with a similar problem check this out.
    Regards
    Glen

  • X301 post BIOS / Model Number update System Time problems

    Dear community,
      I recently updated my BIOS using the thinkvantage flash BIOS utility for no reason other than it appeared on the update utility. I also updated the model number, once again for no real reason other than update pleasure. Now, everything works perfectly fine on the system, and I have no problems EXCEPT:
    I use New York Times Adobe Air product called "Times Reader". Since the update, when I try to log into the Times Reader I get an error that states "Authentication Error. Check that your system time is set correctly." In the pre-boot set up screen the time seems to be set right, and in the windows utility the time is set correctly. So my questions is,
     after a BIOS flash / Model # update, does the system time function need some re-boot / update? 
    Thanks! 

    Well I still dunno what the problem was.  It seemed as if the system would have to be running for a day or two before it would start to speed up, as if it was actually gaining a few milliseconds cumulatively every second...
    Anyway, through other testing (OC & such) I flashed to 1.5B5 and it is running pretty good, and seems to have fixed the time problem.
    On a side note, 1.5B5 is the first BIOS that actually makes Cool 'N Quiet work (to underclock to 1GHz at idle & dynamically OC when needed).
    If anyone has experienced this time issue, please post findings!  For now, it's fixed for me, so I'm not going to worry about it  

  • Query BIOS Version Before Running Command or Installing Application?

    I have a task sequence that queries the computer model and then runs a BIOS update if the model matches.
    If the BIOS is already up to date, the BIOS update application doesn't update the BIOS and the deployment continues. Everything is OK, but then we get a yellow summery screen at the end saying the BIOS update task had an error code.
    Is there a way to filter the BIOS update task so that it only runs when the model matches AND the BIOS version is below a certain value?

    There's bound to be a lot of ways you could approach this - assuming you would use a TS step, with a WQL condition, like this example:
    http://scriptimus.wordpress.com/2011/06/22/mdt-2010-using-wmi-queries-with-task-sequence-step-conditions/
    In pseudocode; yours might be "if bios version<>theupdateversionIhaveinthispackage, then apply the biosupdate"
    e.g.
    select smbiosbiosversion from win32_bios where smbiosbiosversion <> "K01 v.2.05"
    [if the condition returns NULL, the bios version is at this version, so no bios update needed]
    [if the condition returns a value, the bios version is not at the packaged version, so apply the bios update]
    [note: this very simple condition does not allow for *newer* bios version being found in the machine!]
    I haven't tested this logic, you should do so.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • SQL Concat function seem not to work properly in SQL query data model. BIP 11g

    I try to use this function to show entire name CONCAT(name, ' ', surname) and it doesnt show the surname. it looks like it only tooks 2 arguments. I use it with the option "Add element by expression" within a SQL Query - Data set.
    Lucia

    i don't believe you
    please post more info, may be screen or sql or some more useful statement
    CONCAT(name, ' ', surname) and it doesnt show the surname
    may be because for some case "surname" is empty  or may be you incorrect use concat function
    one way mentioned by BluShadow is " || " operator  - http://docs.oracle.com/cd/B28359_01/server.111/b28286/operators003.htm#SQLRF51156
    and another is concat function http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions026.htm#SQLRF00619
    so for your case it can be like
    CONCAT(CONCAT(name, ' '), surname)

  • Bios Model Name

    We are currentley rolling out Lenovo Desktops And Laptops as part of the rollout we have a script which pulls in manufacture, model description, serial no
    When we get the Model description we get the following model name
     Examples below
     20AWS17D01
    10A8S0830Q
    Is there a Conversion table to say the what the codes are  E.G. M93p desktop ?

    You'll have to build your own conversion table, but the PSREF lists for each product line provide the raw data for what you want.
    PSREF info for Thinkpad laptops.
    PSREF info for ThinkCentre desktops.

  • Can we create a VC model on BI infoset query

    Hi Experts,
    i am trying to create a basic model in VC which will get data from Query in BI which is built on a Infoset. but when i test the query in Model its says object structrued not allowed.
    so i got this doubt that whehter i am permitted or not if not is they any workaround to use this query as a dataservice.
    thanks and regards
    Neel

    Hi Raman,
    Thank you for  your reply.
    Optimization you mean;Light  or  Full?
    If  it  is  light optimization  then ,I am  sure  that  it  will not  change for sure  cubes  technical name,So if  there  is  no  change  in the technical name  we  can  do a query from  query designer:As  we  are only  reading the  data   from the  cube.
    If  you do a full optimize  i believe  you answer works whcih  is  = Changes  to tech name  of the  cube  which  will cause  the inconsistencies for  all the  queries  that have  been  creted using  this BPC cube.
    Can you post  some  more  information related  to tis  will be  help full.
    Cheers,
    Subbaraju

  • Query DAQmx module model

    Hello,
    How do you query the model name of the module plugged in a cDAQ9172? 
    Thanks,
    A

    angelmcdoggie,
    I used the following code snippet to grab the devices in my system and determine their device types.  You will need to add code to manage an array of strings to keep the device list throughout your program.
    NI::CNiStringVector myVector = CNiDAQmxSystem::GetDevices();
    CString deviceType;
    for(int i=0; i<myVector.GetSize(); i++) {
          deviceType = CNiDAQmxSystem::LoadDevice(myVector[i]).ProductType;  //Gets device name for every element in the vector then returns the product type
    Ryan N
    National Instruments
    Application Engineer
    ni.com/support

  • Query on Papyrus UML models with applied profiles

    Hi everyone,
    I'm using IncQuery for detecting changes on Papyrus UML models.
    My UML models are applied with UML profiles created by Papyrus.
    How can I query on models applied profiles that have the same stereotype name. How to distinguish stereotype name and UML model element name in queries?
    For example, there is Connector and in the applied profile, there is also a stereotype named Connector. How can I use prefix name for this kind.
    Thanks.

    Since 1.0.0, you can name imports and use the name as a prefix for types:
    import "umlNsUri" as uml;
    import "myProfileUri" as profile;
    pattern someP ( myParam : uml::Connector, myP2 : profile::Connector) {...}

  • Model Aggregate tables to speed up query processing

    Hi,
    Can anyone help me in the topics
    "Model Aggregate Tables to Speed up Query Processing"
    "Model Partitions and Fragments to improve application performance and usability"
    Am new to this concept, haven't worked on this before.
    Regards,
    Arun

    Arun wrote:
    Thanks. This would definitely help me out. But, i face issue in opening the repository in Online mode. Could you please tell me how to solve this issue?
    Here OBIEE server is lying on Unix Environment.
    I've created a repository in Windows Client.(Have installed OBIEE 11g developers client, BI Admin tool in my local machine).
    I would like to know the way to open a repository file in online mode in Client side.
    Regards,
    ArunCreate a 'BI Server' type ODBC connection in your windows environment pointing to your Unix box, then when you go open -> Online in admin tool you will see the entry as an option.
    Better to start a new thread when your original question is answered.

  • SQL Developer 1.53 - Ability to save a model in Query Builder

    I see no way to save a Query Builder model like one can with TOAD's SQL Modeler. Am I missing something or does a save not exist? Query Builder would be significantly more useful if I could save models in it (versus copy-pasting the SQL generated by the model).
    Hoping it's "user error" on my part.
    Thanks.
    Dana

    From personal experience I can tell you implementing new features often takes a long time.
    Just take a look how many requests there are, impossible to handle them all.
    Additionally, note there's a "Scheduled for 2.0" status, which obviously has even more priority over just Accepted requests. And it's even unlikely all those will make it into 2.0.
    Finally, I can tell release cycles are at most twice a year. We just got 1.5.4, so 2.0 could make it by the end of the year... or not.
    Regards,
    K.

Maybe you are looking for

  • PR to Payment Report

    Hi All, Our client wants us to develop a report for PR to Payment. Input Field are Material PR Doc. No. PR Doc date RFQ Doc No. RFQ Doc Date PO Doc. No PO Doc Date Vendor GR Material Doc GR Doc. Date GR Posting Date GI Material Doc. GI Doc. Date GI P

  • I can't install newest adobe reader version, OS X Yosemite and iTunes cannot be opened.

    First I tried multiple times to install Adobe Reader's new update. It says: Adobe Reader installation error installer: Package name is Adobe Reader XI(11.0.09) installer: Installing at base path / installer: The install failed ( The installer encount

  • How can i disable scrolling on firefox mobile ?

    I want to disable scrolling for my responsive website, when a colorbox (like a lightbox) is layered over the page (as div, not as iframe). Scrolling should only be available for the colorbox-div, but not for body or html. Therefore, I set "html" and/

  • Weblogic 10.3 - Windows 2003 64bit OS

    I cannot find the download .exe for the 64bit version of Weblogic Server 10.3 and Portal. Is there a seperate download or do I install the 32bit version on the server? I called the 800 number but was transferred and then dropped - twice!! Any help is

  • Calculate with decimals

    How to do calculations in Java where I have to ignore decimals for example: a = 101.46456 b = 10000 c = 10000 * 101.464 I want to use only 3 decimals and ignore if there are more than three. Thanks