Hi all,
I am trying something along these lines:
I have an item that queries a DB2 database and retrieves the instance name. I know this item is associated with every DB2 host through a template.
I'd like to put the result of this item in a user macro (say {$DB2INSTANCE}) so that, later on, in an other item, I can use {$DB2INSTANCE} to query said instance.
Is that possible ?
For the time being, this is done by using a configuration file in a external script, but this means every time a new DB2 host comes up, I have to update this file manually.
And, yes, there is an awful lot of DB2 server/instances around here, so updating this is a hassle... And, of course, source for multiple failures, so I'd like to have this process automated.
Any help is appreciated.
Jean-Bernard
I am trying something along these lines:
I have an item that queries a DB2 database and retrieves the instance name. I know this item is associated with every DB2 host through a template.
I'd like to put the result of this item in a user macro (say {$DB2INSTANCE}) so that, later on, in an other item, I can use {$DB2INSTANCE} to query said instance.
Is that possible ?
For the time being, this is done by using a configuration file in a external script, but this means every time a new DB2 host comes up, I have to update this file manually.
And, yes, there is an awful lot of DB2 server/instances around here, so updating this is a hassle... And, of course, source for multiple failures, so I'd like to have this process automated.
Any help is appreciated.
Jean-Bernard
Comment