Cisco License Manager 2.1 Perl API Guide
ch13parg.fm

Table Of Contents

Scheduler Management Functions

list_scheduler

register_scheduler

unregister_scheduler


Scheduler Management Functions


This chapter provides information about the following scheduler management functions:

list_scheduler

register_scheduler

unregister_scheduler

list_scheduler

Synopsis

list_scheduler ($token)

Description

This is a simple scheduling function that allows you to list a scheduled task from the scheduler.

Input Parameters

Parameter
Type
Value
Description

token

UserToken, mandatory

A token that represents your authorization pass, which is obtained after you invoke the login function and are authenticated by the back-end server.


Return

This function returns an array of Cisco::CLM::Common::Schedule objects if a schedule has been set. It returns null if a schedule has not been set.

Error and Exception

If a system error prevents the operation from completing, a RemoteException is thrown.

register_scheduler

Synopsis

register_scheduler ($token, $task, $execute_time) 

Description

This is a simple scheduling function that allows you to schedule the time, frequency, and specific Cisco License Manager action to be performed.

Input Parameters

Parameter
Type
Value
Description

token

UserToken, mandatory

A token that represents your authorization pass, which is obtained after you invoke the login function and are authenticated by the back-end server.

task

Schedule.ClmTask, mandatory

Cisco License Manager task object containing a Cisco License Manager-supported task string to be executed through the scheduler.

execute_time

Schedule, mandatory

Schedule object that contains when to execute and frequency of execution.


Return

This function returns a Cisco::CLM::Common::Status object.

Error and Exception

If a system error prevents the operation from completing, a RemoteException is thrown.

When an error occurs, the Status object returns none SUCCESS error code and error message.

unregister_scheduler

Synopsis

unregister_scheduler ($token, $task)

Description

This is a simple scheduling function that allows you to remove a scheduled task from the scheduler.

Input Parameters

Parameter
Type
Value
Description

token

UserToken, mandatory

A token that represents your authorization pass, which is obtained after you invoke the login function and are authenticated by the back-end server.

task

Schedule.ClmTask, mandatory

Cisco License Manager task object containing a Cisco License Manager-supported task string to be executed through the scheduler.


Return

This function returns a Cisco::CLM::Common::Status object.

Error and Exception

If a system error prevents the operation from completing, a RemoteException is thrown.

When an error occurs, the Status object returns none SUCCESS error code and error message.