ProLiant Servers (ML,DL,SL)
1748288 Members
3322 Online
108761 Solutions
New Discussion юеВ

Re: where does the hpsum store his host and group informations in linux?

 
PS-Support T-Systems
Occasional Contributor

where does the hpsum store his host and group informations in linux?

Hi,
we are playing around with hp-SUM to deploy firmware and software (like snmp-agents, hpsmh an so on) so unattended as possible.
(The count for expected installations in productive environment is more than thousand servers ...)
In the hpSUM-GUI we are able to create hosts, groups and so on.
These hosts or groups are usable for scripted deployment via ./hpsum .... ... /group "server". It works.
But, *where* can we found and edit these informations (what file)? The purpose is to create a hostlist automatically und use this for deployment w/o GUI but very scriptable instead.
For windows environments I've heard that these informations may be found in the registry:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1292530466744+28353475&threadId=1156558

but on linux?
4 REPLIES 4
PS-Support T-Systems
Occasional Contributor

Re: where does the hpsum store his host and group informations in linux?

additional information:
my try to find out where hosts are stored using some tricks was not successful.

day x:
-set via GUI some hosts
-find / * -mtime 1 -exec ls -l "{}" ";" > /tmp/hosts_added

day y: (date set some days in future)
- remove via GUI the previously set hosts
- find / * -mtime 1 -exec ls -l "{}" ";" > /tmp/hosts_removed

a diff /tmp/hosts_added /tmp/hosts_removed shows only some changes in /var/hp/log

Andras Ordogh
Valued Contributor

Re: where does the hpsum store his host and group informations in linux?

hello,

first of all, i dont know sum :)

but i think linux store it as a string, so why can you try to find a well now value, like host name? you can use grep -R :)

andras
PS-Support T-Systems
Occasional Contributor

Re: where does the hpsum store his host and group informations in linux?

found solution by myself.
strace -ff -eopen ./hpsum did help me ...

the host and group informations were stored in /etc/xdg/Hewlett-Packard/HPSUM.ini

It looks like that:

[TGTarget]
192.168.1.104\address=192.168.1.104
192.168.1.104\description=testservers
192.168.1.104\dateModified=
192.168.1.104\dateSelected=
192.168.1.104\groups=@Invalid()
192.168.1.105\address=192.168.1.105
192.168.1.105\description=testservers
192.168.1.105\dateModified=
192.168.1.105\dateSelected=
192.168.1.105\groups=@Invalid()
192.168.1.106\address=192.168.1.106
192.168.1.106\description=testservers
192.168.1.106\dateModified=
192.168.1.106\dateSelected=
192.168.1.106\groups=@Invalid()
192.168.1.107\address=192.168.1.107
192.168.1.107\description=testservers
192.168.1.107\dateModified=
192.168.1.107\dateSelected=
192.168.1.107\groups=@Invalid()
192.168.1.108\address=192.168.1.108
192.168.1.108\description=testservers
192.168.1.108\dateModified=
192.168.1.108\dateSelected=
192.168.1.108\groups=@Invalid()

[TGGroup]
testservers\groupName=testservers
testservers\description=in my lab
testservers\dateModified=
testservers\dateSelected=
testservers\targets=192.168.1.104, 192.168.1.105, 192.168.1.106, 192.168.1.107, 192.168.1.108
PS-Support T-Systems
Occasional Contributor

Re: where does the hpsum store his host and group informations in linux?

found solution by myself ...