• No results found

Explains how to use resmgr to configure timezones,

Timezones are Tivoli Netcool Performance Manager object types that belong to the Design category.

Before using the commands in this chapter, review the information in Chapter 4,

“Managing Tivoli Netcool Performance Manager objects,” on page 15. Additional resmgr commands for managing thresholds can be found in “Working with timezones” of Chapter 7, “Managing design objects,” on page 111.

Working with timezones

This section explains how to use resmgr to create, modify, or delete time zone definitions.

Tivoli Netcool Performance Manager displays times in customer-specific time zones because service providers often have customer bases that span multiple time zones.

Summary statistics are maintained in periods greater than the span of a time zone (typically one hour); therefore, the CME maintains summary statistics relative to different time zones.

You can attach a timezone to a group and it is associated with all groups and resources below it. Because resources can exist in multiple groups, you can create different time zone views of the same sets of resources by defining multiple groups with different time zone settings. This approach minimizes the amount of duplicate timezone processing that CME performs and the amount of redundant data that is loaded and retained in the database.

Exporting timezones

This section explains how to export time zones.

Example

Output appears. For example:

# type = tzc

# col = tzdbIndex tzname tzoffset tzcomment tzstatus tzdate

# filter =

# order =

# sep = |_|

# sepRec =

~NOC Reporting~|_|My Calendar|_|GMT|_|

Deleting timezones

This section explains how to delete time zones.

Example

resmgr -delete tz -colNames "dbIndex nop nop nop nop date" -file /tmp/temporary

Output appears. For example:

Info : === delete : DELETE ON Time Zones ( 1 ) (exists) Info : === delete : DELETE ON Time Zones ( 2 ) (exists) Info : === delete : DELETE ON Time Zones ( 3 ) (exists) Info : === delete : DELETE ON Time Zones ( 4 ) (exists) Info : === delete : DELETE ON Time Zones ( 5 ) (exists) Info : === delete : DELETE ON Time Zones ( 6 ) (exists) Info : === delete : DELETE ON Time Zones ( 1 ) (exists) Info : === delete : DELETE ON Time Zones ( 2 ) (exists)

Verifying the deletion

resmgr -export tz -colNames "dbIndex name offset comment status date" -file /tmp/temporary

Output appears. For example:

# type = tz

# col = dbIndex name offset comment status date

# filter =

# order =

# sep = |_|

# sepRec =

Note: To delete a timezone associated with a calendar or group of subelements, remove all the links between the timezone and the groups. When you remove the links, no statistics are produced for the groups.

Importing, modifying, and creating timezones

This section explains how to import, modify, and create time zones.

Example

resmgr -import tz -colNames "dbIndex name offset comment status date" -file /tmp/temporary

Output appears. For example:

Info : === insert : INSERT ON Time Zones ( 1 ) (does not exist) Info : === insert : INSERT ON Time Zones ( 2 ) (does not exist) Info : === insert : INSERT ON Time Zones ( 3 ) (does not exist) Info : === insert : INSERT ON Time Zones ( 4 ) (does not exist) Info : === insert : INSERT ON Time Zones ( 5 ) (does not exist) Info : === insert : INSERT ON Time Zones ( 6 ) (does not exist) Info : === insert : INSERT ON Time Zones ( 1 ) (does not exist) Info : === insert : INSERT ON Time Zones ( 2 ) (does not exist)

Verifying the import

resmgr -export tz -colNames "dbIndex name offset comment status date" -file /tmp/temporary

Output appears. For example:

# type = tz

# col = dbIndex name offset comment status date

# filter =

# order =

# sep = |_|

# sepRec =

1|_|AggSet 1|_|10800|_|AggSet 1 (+3)|_|0|_|983464852|_|

2|_|AggSet 2|_|10800|_|AggSet 2 (+3)|_|0|_|983464853|_|

3|_|AggSet 3|_|36000|_|AggSet 3 (+10)|_|0|_|983464851|_|

4|_|AggSet 4|_|18000|_|AggSet 4 (+5)|_|0|_|983464851|_|

5|_|AggSet 5|_|-25200|_|AggSet 5 (-7)|_|0|_|983464851|_|

6|_|AggSet 6|_|14400|_|AggSet 6 (+4)|_|0|_|983464851|_|

1|_|AggSet 1|_|3600|_|AggSet 1 (+1)|_|0|_|983464851|_|

2|_|AggSet 2|_|10800|_|AggSet 2 (+3)|_|0|_|983464851|_|

Grouping links of subelements, calendars, and timezones

This section explains how to create, modify, or delete links between groups of subelements, calendars, and timezones.

Exporting links

Example

Output appears. For example:

Deleting links

Example

When you execute the following command, you delete all the links between a group and a timezone. Ensure you want to do so, before entering the command.

Output appears. For example:

Info : === delete : DELETE ON Sub_Element Groups ( abak static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( abak static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( abak static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( abak static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( abak static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( abak static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( 192.168.3.191 static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( 192.168.3.252 static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( 192.168.3.252 static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( 192.168.3.62 static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Info : === delete : DELETE ON Sub_Element Groups ( 192.168.3.62 static ) (exists) Info : === delete : nothing ON Link SEGP/TZ (does not exist)

Verifying the deletion

If a calendar or timezone is already defined at an upper branch for a given group, Tivoli Netcool Performance Manager returns an error indicating a calendar or timezone cannot be created for this group.

resmgr -noX -export tz -colNames "cliParent sename setype

cliChild_Tz name tzcliChild_Cal calName cliState cliType cliOrigin cliUser cliDate" -file /tmp/verifLinks.dat

Output appears. For example:

# type = tz

# col = cliParent sename setype cliChild_Tz name cliChild_Cal calName cliState tzcliType cliOrigin cliUser cliDate

# filter =

# order =

# sep = |_|

# sepRec =

Importing, modifying or creating links

Example

esmgr -noX -import tz -colNames "cliParent sename setype

cliChild_Tz name cliChild_Cal calName cliState cliType cliOrigin cliUser cliDate" -file /tmp/linkSeGrp_Calendars_Timezones.dat Output appears. For example:

Info : === insert : nothing ON Calendars ( Day Calendar ) (exists)

Info : === insert : INSERT ON Sub_Element Groups ( abak static ) (does not exist) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Night Calendar ) (exists) Info : === insert : nothing ON Sub_Element Groups ( abak static ) (exists) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Permanent, each hour ) (exists)

Info : === insert : INSERT ON Sub_Element Groups ( 192.168.3.191 static ) (does not exist) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Working days, each quarter ) (exists)

Info : === insert : INSERT ON Sub_Element Groups ( 192.168.3.252 static ) (does not exist) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Working days, each quarter ) (exists) Info : === insert : nothing ON Sub_Element Groups ( 192.168.3.252 static ) (exists) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Permanent, each quarter ) (exists)

Info : === insert : INSERT ON Sub_Element Groups ( 192.168.3.62 static ) (does not exist) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Permanent, each hour ) (exists) Info : === insert : nothing ON Sub_Element Groups ( abak static ) (exists) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Permanent, each hour ) (exists) Info : === insert : nothing ON Sub_Element Groups ( abak static ) (exists) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Info : === insert : nothing ON Calendars ( Permanent, each quarter ) (exists) Info : === insert : nothing ON Sub_Element Groups ( 192.168.3.62 static ) (exists) Info : === insert : INSERT ON Link SEGP/TZ (does not exist)

Note: When the calendar or the sub-elements group, or the time zone associated with a link does not exist in the database, the import of this link fails.

Verifying the import

resmgr -noX -export tz -colNames "cliParent sename setype cliChild_Tz name cliChild_Cal calName cliState cliType cliOrigin tzcliUser cliDate" -file /tmp/verifLinks.dat

Output appears. For example:

# type = tz

# col = cliParent tzsename setype cliChild_Tz tzname cliChild_Cal calName cliState cliType cliOrigin cliUser cliDate

# filter =

# order =

# sep = |_|

# sepRec =

1000321|_|abak|_|static|_|2|_|AggSet 2|_|1000101|_|Day Calendar|_|on|_|static|_|

impexp|_|abak|_|983902406|_|

1000321|_|abak|_|static|_|2|_|AggSet 2|_|1000101|_|Day Calendar|_|on|_|static|_|

impexp|_|abak|_|983902406|_|

1000321|_|abak|_|static|_|2|_|AggSet 2|_|1000102|_|Night Calendar|_|of|_|static|_|

impexp|_|abak|_|983902406|_|

1000321|_|abak|_|static|_|2|_|AggSet 2|_|1000102|_|Night Calendar|_|of|_|static|_|

impexp|_|abak|_|983902406|_|

1000321|_|abak|_|static|_|3|_|AggSet 3|_|1000103|_|Permanent, each hour|_|on|_|static|_|

impexp|_|abak|_|983902406|_|

1000321|_|abak|_|static|_|5|_|AggSet 5|_|1000103|_|Permanent, each hour|_|on|_|static|_|

impexp|_|abak|_|983902406|_|

1000322|_|192.168.3.191|_|static|_|3|_|AggSet 3|_|1000103|_|Permanent, each hour|_|on|_|

static|_|impexp|_|abak|_|983902406|_|

1000323|_|192.168.3.252|_|static|_|4|_|AggSet 4|_|1000108|_|Working days, each quarter|_|

on|_|static|_|impexp|_|abak|_|983902406|_|

1000323|_|192.168.3.252|_|static|_|5|_|AggSet 5|_|1000108|_|Working days, each quarter|_|

on|_|static|_|impexp|_|abak|_|983902406|_|

1000324|_|192.168.3.62|_|static|_|5|_|AggSet 5|_|1000104|_|Permanent, each quarter|_|

on|_|static|_|impexp|_|abak|_|983902406|_|

1000324|_|192.168.3.62|_|static|_|6|_|AggSet 6|_|1000104|_|Permanent, each quarter|_|

on|_|static|_|impexp|_|abak|_|983902406|_|

Related documents