Showing results for 
Search instead for 
Did you mean: 

IMC server + DB server Backup

Occasional Contributor

IMC server + DB server Backup

 Hi IMC community,


I am struggling with a backup of IMC server and its database (external mysql). I would like to follow some guide that makes sense but unfortunately I was not able to find any info that could help me.

Can anyone point me to the right direction when:

1) I want to backup local IMC filesystem and copy it to a cifs share .. (once a week via cron)  .. kind of cli based "backup.bat"

2) I want to backup IMC's db's from MySQL server (I hope mysqldump is possible) (once a week via cron)


Both servers (IMC and db) are physical ones. Thank you for hints.


Br p.

Honored Contributor

Re: IMC server + DB server Backup

Check the install guide for a Centralised Install with Remote DB


In chapter 10, it covers how to do a backup. This will backup everything that you need - customised config files + DB contents.


Does that help?


PS Why still using physical servers?

Occasional Contributor

Re: IMC server + DB server Backup

Hi Lindsay,


I really appreciate your feedback. I have read that document several times (in various modifications). The problem is that people who have written it don't seem to have any linux knowledge - yet, they are trying to write about it. In chapter 10 (page 82,83) they suggest copying of dbman files to database server, set some envir.variable (linux case) and start it. The guide shows how to start it on Windows server but dbman.exe is win-exe file and it won't work in linux.

They suggest to do the same (start dbman.exe (there is no other bin file one could use in linux)) in the tab that pops up when clicking on "configure" (backup) in IDMAgent.


From readme_EN.txt (placed in dbman dir):


3. When the database is deployed in distributed mode and uses a separate server,
    to back up the databases, perform the following configurations:
    a) On the intelligent deployment monitoring agent of each IMC server,
        select the Environment tab, and click Configure to configure backup parameters.
        After completing the configuration, click OK to generate configuration files.
    b) Copy the dbman folder in the IMC installation directory of the primary server to the same position of the database server.
    c) Copy all the files in the iMC/dbman/etc directory of each secondary server to the same position of the database server.
        However, before copying these files, you must rename each dbman.conf file as dbman.partn.conf,
        where n is a random number and must be different from that of any other secondary server.
    d) Run dbman through the CLI.


BTW: I began to work in a company and I got those 2 physical servers as resources I can work with. Moreover HP recommends using of physical HW when running heavier db (like IMC), please check the document you've send me - chapter 2 (page 6-8), on page 9 one can read "HP recommends installing IMC on a physical server."


Best regards p.

Honored Contributor

Re: IMC server + DB server Backup

Ach, sorry, you're right - that doc is too Windows-focused. I'll see if I can dig up something that covers the Linux side better.


PS That stuff in the doc about installing on physical servers is the sort of thing people wrote 5-10 years ago...I think they just haven't caught up with the times. Even going to a single VM on a server gives you so many more benefits - e.g. easy migration/upgrade, etc.

Occasional Contributor

Re: IMC server + DB server Backup

Well, I don't really think that document should be more "pro-linux". The problem is that IMC documents are full of nonsenses, as also Lindsay pointing out ...

Respected Contributor

Re: IMC server + DB server Backup

I agree about the documentation - its only a starting point for experimentation to determine how it really works.


I'm running on windows, but my current understanding of the backup feature in the IMC deployment agent is that its primarily for backing up to a standby IMC server for stateless failover. 


I tried gettting it do automatic backups locally. But for automatic it wants to send the backup by default to an FTP server on the standby machine.


I guess you could setup an FTP account and just not have a standby server. IMC does somehow tell the standby server to restore the files sent by FTP onto the second machine. I saw somehwere a mod to make it work with a shared CIFS directory.


I'm also running fine on VMware and agree its the way to go - for one thing you can snapshot the enitre VM and roll back if some update did not run properly. 


My suggestion - apologies as it doesn't really address your original issue and don't know size of your environment - is to take your two pieces of hardware, run vmware on each, and create a local IMC/DB primary on one system and a stateless backup on the 2nd one.


The backup uses the primary license so no extra IMC license needed.


The vmware layer won't add too much overhead and you'll get some extra managability out of it.


The secondary can function if the primary is out, as it can authenticate users, recieve alarms etc, just can't change anything. If you have questions about setup let me know.