<?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: Script to creat a System List based on a file with system names. in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911311#M61703</link>
    <description>Bumped to be above moved questions...</description>
    <pubDate>Thu, 02 Feb 2006 15:29:49 GMT</pubDate>
    <dc:creator>David Claypool</dc:creator>
    <dc:date>2006-02-02T15:29:49Z</dc:date>
    <item>
      <title>Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911299#M61691</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Does anyone ever created or have a script to creat a System List on SIM based on a file with system names.&lt;BR /&gt;I would like to have this, t help me create a list of 200 server in 1000 that are in SIM, instead of picking one by one servers in the list os all servers.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Alfredo Soares</description>
      <pubDate>Fri, 08 Jul 2005 06:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911299#M61691</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-08T06:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911300#M61692</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;No one have created such a script/tool??&lt;BR /&gt;I really need it, and i'm not so good on that area...&lt;BR /&gt;&lt;BR /&gt;Thanks one more time&lt;BR /&gt;&lt;BR /&gt;Alfredo</description>
      <pubDate>Thu, 14 Jul 2005 09:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911300#M61692</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-14T09:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911301#M61693</link>
      <description>Alfredo,&lt;BR /&gt;Give this script a try it will create a new group list of servers for you to create an authorization for.  Sounds like what you are looking for.</description>
      <pubDate>Thu, 14 Jul 2005 14:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911301#M61693</guid>
      <dc:creator>Todd Schelin</dc:creator>
      <dc:date>2005-07-14T14:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911302#M61694</link>
      <description>By the way you run this script from the CMS Server.  It does not run from within the SIM interface.  Copy the file to the server and then run it from the server.</description>
      <pubDate>Thu, 14 Jul 2005 14:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911302#M61694</guid>
      <dc:creator>Todd Schelin</dc:creator>
      <dc:date>2005-07-14T14:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911303#M61695</link>
      <description>Thanks Tood,&lt;BR /&gt;&lt;BR /&gt;But I think I didnâ  t, explain myself very well.&lt;BR /&gt;For the purpose of your script David Claypool posted one here ( see: &lt;A href="http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=587749" target="_blank"&gt;http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=587749&lt;/A&gt; ).Thought I could not make it work so far.&lt;BR /&gt;What I really wanted, was a script or xml tool, that created a "System List" (left pane on SIM console...), based on a list of system names inside a file (txt file for example), using mxquery CLI command for example.&lt;BR /&gt;Because I have 1000 systems, on three different domains, and I want to create 3 system list, one for each domain, without having to select each system one by one.&lt;BR /&gt;&lt;BR /&gt;Thanks all&lt;BR /&gt;&lt;BR /&gt;Alfredo</description>
      <pubDate>Fri, 15 Jul 2005 02:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911303#M61695</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-15T02:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911304#M61696</link>
      <description>Alfredo:&lt;BR /&gt;&lt;BR /&gt;If you have a list of servers that you want to turn into a query, put them in a text file with the system name on a line by itself.  Then, with a text editor or other programmatic means, at the beginning of each line you want the tag &lt;VALUE&gt; and at the end of each line you want &lt;/VALUE&gt;.  As such:&lt;BR /&gt;&lt;BR /&gt;&lt;VALUE&gt;Mickey&lt;/VALUE&gt;&lt;BR /&gt;&lt;VALUE&gt;Daisy&lt;/VALUE&gt;&lt;BR /&gt;&lt;VALUE&gt;Pluto&lt;/VALUE&gt;&lt;BR /&gt;&lt;VALUE&gt;Donald&lt;/VALUE&gt;&lt;BR /&gt;&lt;VALUE&gt;Minnie&lt;/VALUE&gt;&lt;BR /&gt;&lt;BR /&gt;...and so on.&lt;BR /&gt;&lt;BR /&gt;Once your file is formatted like that, open it up and at the beginning of the file put:&lt;BR /&gt;&lt;BR /&gt;&lt;QUERY-LIST&gt;&lt;BR /&gt;    &lt;QUERY name="NAME-IT-WHAT-YOU-WANT" type="DeviceViews" category-name="EXISTING-CATEGORY-NAME"&gt;&lt;BR /&gt;        &lt;CRITERIA name="CriteriaByName" sense="INCLUDE"&gt;&lt;BR /&gt;&lt;BR /&gt;...and then at the end of the file, append&lt;BR /&gt;&lt;BR /&gt;&lt;/CRITERIA&gt;&lt;BR /&gt;&lt;/QUERY&gt;&lt;BR /&gt;&lt;/QUERY-LIST&gt;&lt;BR /&gt;&lt;BR /&gt;When you have done that, you use the mxquery command to add it to HP SIM, as in&lt;BR /&gt;&lt;BR /&gt;mxquery -a -f FILNAME&lt;BR /&gt;&lt;BR /&gt;On Windows, change to the c:\Program Files\HP\Systems Insight Manager\bin directory or on UX/Linux find it in /opt/mx/bin.&lt;BR /&gt;&lt;BR /&gt;If you are logged into HP SIM via a web browser when you run the command, you will have to log out and log in again to have it appear.</description>
      <pubDate>Fri, 15 Jul 2005 14:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911304#M61696</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2005-07-15T14:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911305#M61697</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for you reply.I didn't answer earlier because I of the weekend.&lt;BR /&gt;Let see if I can explain myself well, whats happening now.&lt;BR /&gt;&lt;BR /&gt;I tried to creat the file as you said here (can see attached file): &lt;BR /&gt;&lt;BR /&gt;On line &lt;BR /&gt;query name="NAME-IT-WHAT-YOU-WANT" &lt;BR /&gt;in NAME-IT-WHAT-YOU-WANT, i put my a name, "TestList", for example.&lt;BR /&gt;&lt;BR /&gt;On line&lt;BR /&gt;type="DeviceViews" category-name="EXISTING-CATEGORY-NAME"&amp;gt;&lt;BR /&gt;in EXISTING-CATEGORY-NAME I put Public (Public is a Folder in System Lists that anyone can see).&lt;BR /&gt;&lt;BR /&gt;If I run mxquery -l cat, I get a list and Public is there.&lt;BR /&gt;&lt;BR /&gt;When I run the command mxquery -a -f test.xml, I get the error "C:\Program Files\HP\Systems Insight Manager\bin&amp;gt;mxquery -a -f test.xml&lt;BR /&gt;The name "Public" does not represent a query category in this system."&lt;BR /&gt;&lt;BR /&gt;David, can you help me sort out what my be wrong??&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Alfredo</description>
      <pubDate>Mon, 18 Jul 2005 04:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911305#M61697</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-18T04:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911306#M61698</link>
      <description>Most likely you don't already have a folder named Public.  Use the [Customize] blue button located to the right of the [++][--} at the top of the lists box.  Use the [New Folder] button to create the one you call "Public."</description>
      <pubDate>Mon, 18 Jul 2005 08:23:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911306#M61698</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2005-07-18T08:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911307#M61699</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Thank you for your patience, but:&lt;BR /&gt;&lt;BR /&gt;Yes..."Public" is a public folder I have created before.&lt;BR /&gt;Anyway, I created another folder (with public access), and tried with that one, but the same result: &lt;BR /&gt;&lt;BR /&gt;The name "Dominios" does not represent a query category in this system.&lt;BR /&gt;&lt;BR /&gt;Has I have told on the previous reply, if I run "mxquery -lcat", both "Public" and "Dominos" ( the new folder I have created ), are there:&lt;BR /&gt;&lt;BR /&gt;NAME                     TYPE        ACCESS OWNER&lt;BR /&gt;ClustersByStatus         DeviceViews public simserver\mxadmin&lt;BR /&gt;ClustersByType           DeviceViews public simserver\mxadmin&lt;BR /&gt;DevicesByOperatingSystem DeviceViews public simserver\mxadmin&lt;BR /&gt;DevicesByStatus          DeviceViews public simserver\mxadmin&lt;BR /&gt;DevicesByType            DeviceViews public simserver\mxadmin&lt;BR /&gt;Dominios                 DeviceViews public simserver\mxadmin&lt;BR /&gt;Public                   DeviceViews public simserver\mxadmin&lt;BR /&gt;SystemFunctions          DeviceViews public simserver\mxadmin&lt;BR /&gt;EventSystemFunctions     EventViews  public simserver\mxadmin&lt;BR /&gt;Eventos Varios           EventViews  public simserver\mxadmin&lt;BR /&gt;EventsBySeverity         EventViews  public simserver\mxadmin&lt;BR /&gt;Hidden Queries           ToolsViews  public simserver\mxadmin&lt;BR /&gt;&lt;BR /&gt;What am I missing????&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Alfredo</description>
      <pubDate>Mon, 18 Jul 2005 09:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911307#M61699</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-18T09:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911308#M61700</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;David?Anyone??Can spare a bite more time, try seeing what, am I doing wrong?&lt;BR /&gt;I really need this CLI to work...&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Alfredo</description>
      <pubDate>Thu, 21 Jul 2005 03:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911308#M61700</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-21T03:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911309#M61701</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I MADE IT!!&lt;BR /&gt;I guess the problem, was I wanted to add the System List to a Folder called 'Public', that was of Public access.&lt;BR /&gt;So, on the line &lt;QUERY name="NAME-IT-WHAT-YOU-WANT" type="DeviceViews" category-name="EXISTING-CATEGORY-NAME"&gt;, I added owner="simserver\mxadmin"&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;QUERY name="Test" type="DeviceViews" category-name="Public" access="public" owner="simserver\mxadmin"&gt;&lt;BR /&gt;&lt;BR /&gt;This did the trick!&lt;BR /&gt;&lt;BR /&gt;Thank you David.And 10 point to ME.LOL&lt;BR /&gt;&lt;BR /&gt;Alfredo&lt;/QUERY&gt;&lt;/QUERY&gt;</description>
      <pubDate>Thu, 21 Jul 2005 09:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911309#M61701</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-21T09:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911310#M61702</link>
      <description>See above...</description>
      <pubDate>Thu, 21 Jul 2005 09:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911310#M61702</guid>
      <dc:creator>Alfredo Soares</dc:creator>
      <dc:date>2005-07-21T09:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script to creat a System List based on a file with system names.</title>
      <link>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911311#M61703</link>
      <description>Bumped to be above moved questions...</description>
      <pubDate>Thu, 02 Feb 2006 15:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/script-to-creat-a-system-list-based-on-a-file-with-system-names/m-p/4911311#M61703</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2006-02-02T15:29:49Z</dc:date>
    </item>
  </channel>
</rss>

