Server Management - Systems Insight Manager
1833904 Members
1869 Online
110063 Solutions
New Discussion

Server Roles in SQL database - help needed

 
Mikael Rönnbäck
Super Advisor

Server Roles in SQL database - help needed

Hello

I'd like some help or advice on what to do here, if anyone have any ideas.

I'm looking for a way to import the status of a server into the "server role" field, i.e. I have a separate database that tells me whether the server is in production, in test, or any other status. Now I've tried importing the status into the database and it works fine, the problem however is that it won't keep, most likely the status is overwritten with the status from the snmp setting on the actual server, which is blank.

Is there any way to prevents this happening and perform a direct SQL import into the database, instead of exporting the status of 1100 devices out to each machines and then have SIM re-import it again, that would prove quite hard to realize, whereas a simple name/status import directly into the database table is comparatively easy.

Ideas anyone ?

3 REPLIES 3
Mikael Rönnbäck
Super Advisor

Re: Server Roles in SQL database - help needed

No ideas anyone ?

At least I've found a temporary workaround, if you import the data at approx. every 3rd hour it will stay mostly accurate, but I'd be interested in finding out exactly which task it is that collects the server role info from the nodes to see if I can time the sql import to happen after that to make sure data always is accurate.

Joel Rubenstein
Honored Contributor

Re: Server Roles in SQL database - help needed

The Server Role is configured on the System Management Homepage for each system. It is extracted from the servers SNMP configuration during the daily device identification task which typically runs once a day.

The Server Role is stored in the local systems registry in HKLM\Software\Compaq Insight Agent\ServerRole. Maybe you could create a script to update each systems registry as necessary.
Mikael Rönnbäck
Super Advisor

Re: Server Roles in SQL database - help needed

Yes I know it is stored in registry, thanks anyway, and as I tried to describe to me it seems like very much unnecessary work to have all the status in database A, then extract that onto 1100 servers, of which at least 200 requires manual installation even if only for running a registry file, some 500 can be handled via SMS and the rest "depends", to have SIM then detect this status and import it into its database B.

When I instead could just create a database export from A onto a textfile which I then import into database B, a 3 minute job for all devices, with the possibility of quick status changes when a new server for example goes from testing into production, or is taken down and out of production.

I.e. I'm rather looking for a way to import data from a central datasource than from the devices themselves.