IBM Tivoli Monitoring, Version 6.3

tacmd editCalendarEntry

Description

Use the tacmd editCalendarEntry command to edit an existing calendar entry on the Tivoli® Enterprise Monitoring Server. The data for the calendar entries are to be given in CRON format. This has to be given as a quintuple value separated by space within double quotation marks if specified by using the -c|--cron option. The rules for –c|--cron are the same as those for the tacmd addCalendarEntry command. The previous value of cron is replaced by the new value. There is no merging operation. The rule for the second syntax is that at least one of the -i, -h, -a, -m, or -w options is required, and must be provided. The value of the CRON specification is taken from the server and is replaced by the new value provided for these options, -i, -h, -a, -m, and -w. The values that are not specified are considered as asterisk (*), meaning every min, hour, and so on.

You must log in by using the login command before running the tacmd editCalendarEntry command.

CLI syntax

tacmd  editCalendarEntry
                      {-n|--name} CALENDAR_ENTRY_NAME
                      {-c|--cron} CRON_SPEC
                      [{-d|--description} DESCRIPTION ]
                      [{-f|--force}]

tacmd  editCalendarEntry
                      {-n|--name} CALENDAR_ENTRY_NAME
                      [{-i|--min} MIN ]
                      [{-h|--hour} HOUR ]
                      [{-a|--daym|--dayOfMonth} DAY_OF_MONTH ]
                      [{-m|--month} MONTH ]
                      [{-w|--dayw|--dayOfWeek} DAY_OF_WEEK ]
                      [{-d|--description} DESCRIPTION ]
                      [{-f|--force}]

where:
-n|--name
Specifies the name of the calendar entry.
-c|--cron
Specifies the CRON specification of the calendar entry.
-d|--description
Specifies the description of the calendar entry.
-i|--min
Specifies the minute value of the CRON specification.
-h|--hour
Specifies the hour value of the CRON specification.
-a|--daym|--dayOfMonth
Specifies the day of the month value of the CRON specification.
-m|--month
Specifies the month value of the CRON specification.
-w|--dayw|--dayOfWeek
Specifies the day of the week value of the CRON specification.
-f|--force
Modifies the specified calendar entry on the server without prompting for confirmation.

CLI example

The following example forces a time change to the Run_Bat calendar entry:
tacmd editCalendarEntry -n "Run_Bat" -c "30 17 * * 1-5" -d "Changed the time" -f

Return values

See Table 1.

Related commands

Return to Table 1.



Feedback