<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mxquery and list creation in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445410#M61913</link>
    <description>All,&lt;BR /&gt;  FYI, on a related topic, I recently attempted to insert a new query by 1) extracting all querries, and 2) modifying a query slightly (rename it and modify the list of selected servers/criteria).  I have done this several times successfully, so I was suprised when I encountered problems this time.  It seems the "index" value you use should NOT duplicate any previous entry.  I had not messed with this value before but evidently it should be unique/new for new queries.  The problem became apparent when I tried to perform subsequent extracts (mxquery -l t Querydef.txt).  The result was "An internal error occurred. Index 0".  I was still able to perform extracts of all query names, but the xml output containing the query details were no longer available.  I'm not going to try to troubleshoot this further...we are in the process of restoring the database from backup right now.  I'll probably take the precaution of getting a snapshot of the database before performing another insert, just in case the problem recurs.</description>
    <pubDate>Mon, 16 Oct 2006 10:07:27 GMT</pubDate>
    <dc:creator>Tom McGuigan</dc:creator>
    <dc:date>2006-10-16T10:07:27Z</dc:date>
    <item>
      <title>mxquery and list creation</title>
      <link>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445406#M61909</link>
      <description>I've just completed my migration from CIM 7 SP2.3 to SIM 4.2 using the migration tool HP provides.  Unfortunately the tool did not migrate my queries, which were based on server name, properly.  Now I need to recreate those and using the GUI would be a painful process.  Could someone please provide me with an example syntax for the file I would feed mxquery?&lt;BR /&gt;What I'm specifically looking for is the ability to create a device list based on multiple server names (up to 400 per list).  I'd also like to create an event list based on multiple server names (again up to 400) and a severity of Critical, Major, or Minor.  Any help in the syntax for the xml would be greatly appreciated.</description>
      <pubDate>Thu, 16 Dec 2004 16:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445406#M61909</guid>
      <dc:creator>Matt Duncan_1</dc:creator>
      <dc:date>2004-12-16T16:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: mxquery and list creation</title>
      <link>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445407#M61910</link>
      <description>Check out &lt;A href="http://www.hp.com/go/hpsim" target="_blank"&gt;http://www.hp.com/go/hpsim&lt;/A&gt; --&amp;gt; Information Library and see the Man pages section at the bottom.  You'll want to look at mxquery.4.html.  Towards the end of the page are some examples of XML files.&lt;BR /&gt;&lt;BR /&gt;You also could build one in the GUI as an example -- maybe not with all 400 names -- and then examine the resulting XML and modify it and replace the one in the system.  To spit out the XML of a query&lt;BR /&gt;&lt;BR /&gt;mxquery -l t "queryname"</description>
      <pubDate>Thu, 16 Dec 2004 17:23:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445407#M61910</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2004-12-16T17:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: mxquery and list creation</title>
      <link>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445408#M61911</link>
      <description>Hi Matt,&lt;BR /&gt;&lt;BR /&gt;Where you able to create a query that add systems on a file, to System Lists on SIM??&lt;BR /&gt;If yes, can tou provide me with that?&lt;BR /&gt;&lt;BR /&gt;As you can see on ( &lt;A href="http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938258" target="_blank"&gt;http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938258&lt;/A&gt; ), David helped me out, but i cannot put to work the query.&lt;BR /&gt;&lt;BR /&gt;Thank you very much&lt;BR /&gt;&lt;BR /&gt;Alfredo</description>
      <pubDate>Mon, 18 Jul 2005 04:49:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445408#M61911</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-18T04:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: mxquery and list creation</title>
      <link>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445409#M61912</link>
      <description>Bumped to be above moved questions...</description>
      <pubDate>Thu, 02 Feb 2006 15:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445409#M61912</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2006-02-02T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: mxquery and list creation</title>
      <link>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445410#M61913</link>
      <description>All,&lt;BR /&gt;  FYI, on a related topic, I recently attempted to insert a new query by 1) extracting all querries, and 2) modifying a query slightly (rename it and modify the list of selected servers/criteria).  I have done this several times successfully, so I was suprised when I encountered problems this time.  It seems the "index" value you use should NOT duplicate any previous entry.  I had not messed with this value before but evidently it should be unique/new for new queries.  The problem became apparent when I tried to perform subsequent extracts (mxquery -l t Querydef.txt).  The result was "An internal error occurred. Index 0".  I was still able to perform extracts of all query names, but the xml output containing the query details were no longer available.  I'm not going to try to troubleshoot this further...we are in the process of restoring the database from backup right now.  I'll probably take the precaution of getting a snapshot of the database before performing another insert, just in case the problem recurs.</description>
      <pubDate>Mon, 16 Oct 2006 10:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/mxquery-and-list-creation/m-p/3445410#M61913</guid>
      <dc:creator>Tom McGuigan</dc:creator>
      <dc:date>2006-10-16T10:07:27Z</dc:date>
    </item>
  </channel>
</rss>

