HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- Re: Modifying a Custom List based on Domain Member...
Server Management - Systems Insight Manager
1825801
Members
2304
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-08-2006 01:45 AM
03-08-2006 01:45 AM
Modifying a Custom List based on Domain Membership
Hi all...I'm trying to create a script that will run from the CMS to do the following.
Based on a selected group of servers, determine their domain, then using that information, create or modify a list for that domain.
What I am trying to achieve is a main list under systems for each domain in our environment.
I have a portion of vbs for getting the domain info, now I just need to figure out how to use that in SIM to edit the lists.
Heres the script I have so far:
strComputer = "computernamehere"
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colDom = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
For Each i in colDom
WScript.Echo i.Domain
Next
Based on a selected group of servers, determine their domain, then using that information, create or modify a list for that domain.
What I am trying to achieve is a main list under systems for each domain in our environment.
I have a portion of vbs for getting the domain info, now I just need to figure out how to use that in SIM to edit the lists.
Heres the script I have so far:
strComputer = "computernamehere"
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colDom = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
For Each i in colDom
WScript.Echo i.Domain
Next
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 12:45 AM
03-09-2006 12:45 AM
Re: Modifying a Custom List based on Domain Membership
Rob,
I've accomplished what I think you're trying for in our environment without using scripts. You just create a custom list in SIM based off of the 'common attributes' using the fully qualified domain name that you want to base the list on.
For example if you want all servers in the local.xyz.com domain, then create a list where:
'common attributes' CONTAINS local.xyz.com
AND
'system type' IS Server.
You can do this for each domain in your environment. The one caveat here is that DNS is working and configured in your environment and was at the time your systems were discovered by SIM.
Hope this is what you are looking for. Good luck.
Derek
I've accomplished what I think you're trying for in our environment without using scripts. You just create a custom list in SIM based off of the 'common attributes' using the fully qualified domain name that you want to base the list on.
For example if you want all servers in the local.xyz.com domain, then create a list where:
'common attributes' CONTAINS local.xyz.com
AND
'system type' IS Server.
You can do this for each domain in your environment. The one caveat here is that DNS is working and configured in your environment and was at the time your systems were discovered by SIM.
Hope this is what you are looking for. Good luck.
Derek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 01:41 AM
03-09-2006 01:41 AM
Re: Modifying a Custom List based on Domain Membership
That would work, but unfortunately, most of the systems were added via a dump from ad, by hostname only, and not fqdn. Thanks anyways for the reply!
Anyone else have an idea?
Anyone else have an idea?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP