- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- Re: Script to creat a System List based on a file ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 11:18 PM
тАО07-07-2005 11:18 PM
Script to creat a System List based on a file with system names.
Does anyone ever created or have a script to creat a System List on SIM based on a file with system names.
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.
Thank you
Alfredo Soares
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 02:02 AM
тАО07-14-2005 02:02 AM
Re: Script to creat a System List based on a file with system names.
No one have created such a script/tool??
I really need it, and i'm not so good on that area...
Thanks one more time
Alfredo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 07:53 AM
тАО07-14-2005 07:53 AM
Re: Script to creat a System List based on a file with system names.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 07:55 AM
тАО07-14-2005 07:55 AM
Re: Script to creat a System List based on a file with system names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 07:47 PM
тАО07-14-2005 07:47 PM
Re: Script to creat a System List based on a file with system names.
But I think I didn├в t, explain myself very well.
For the purpose of your script David Claypool posted one here ( see: http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=587749 ).Thought I could not make it work so far.
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.
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.
Thanks all
Alfredo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 07:52 AM
тАО07-15-2005 07:52 AM
Re: Script to creat a System List based on a file with system names.
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
...and so on.
Once your file is formatted like that, open it up and at the beginning of the file put:
...and then at the end of the file, append
When you have done that, you use the mxquery command to add it to HP SIM, as in
mxquery -a -f FILNAME
On Windows, change to the c:\Program Files\HP\Systems Insight Manager\bin directory or on UX/Linux find it in /opt/mx/bin.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2005 09:22 PM
тАО07-17-2005 09:22 PM
Re: Script to creat a System List based on a file with system names.
Thanks a lot for you reply.I didn't answer earlier because I of the weekend.
Let see if I can explain myself well, whats happening now.
I tried to creat the file as you said here (can see attached file):
On line
query name="NAME-IT-WHAT-YOU-WANT"
in NAME-IT-WHAT-YOU-WANT, i put my a name, "TestList", for example.
On line
type="DeviceViews" category-name="EXISTING-CATEGORY-NAME">
in EXISTING-CATEGORY-NAME I put Public (Public is a Folder in System Lists that anyone can see).
If I run mxquery -l cat, I get a list and Public is there.
When I run the command mxquery -a -f test.xml, I get the error "C:\Program Files\HP\Systems Insight Manager\bin>mxquery -a -f test.xml
The name "Public" does not represent a query category in this system."
David, can you help me sort out what my be wrong??
Thank you
Alfredo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 01:23 AM
тАО07-18-2005 01:23 AM
Re: Script to creat a System List based on a file with system names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 02:31 AM
тАО07-18-2005 02:31 AM
Re: Script to creat a System List based on a file with system names.
Thank you for your patience, but:
Yes..."Public" is a public folder I have created before.
Anyway, I created another folder (with public access), and tried with that one, but the same result:
The name "Dominios" does not represent a query category in this system.
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:
NAME TYPE ACCESS OWNER
ClustersByStatus DeviceViews public simserver\mxadmin
ClustersByType DeviceViews public simserver\mxadmin
DevicesByOperatingSystem DeviceViews public simserver\mxadmin
DevicesByStatus DeviceViews public simserver\mxadmin
DevicesByType DeviceViews public simserver\mxadmin
Dominios DeviceViews public simserver\mxadmin
Public DeviceViews public simserver\mxadmin
SystemFunctions DeviceViews public simserver\mxadmin
EventSystemFunctions EventViews public simserver\mxadmin
Eventos Varios EventViews public simserver\mxadmin
EventsBySeverity EventViews public simserver\mxadmin
Hidden Queries ToolsViews public simserver\mxadmin
What am I missing????
Thank you
Alfredo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 08:46 PM
тАО07-20-2005 08:46 PM
Re: Script to creat a System List based on a file with system names.
David?Anyone??Can spare a bite more time, try seeing what, am I doing wrong?
I really need this CLI to work...
Thanks in advance
Alfredo