lstasks

Use the lstasks command to display a list of scheduled tasks.

Syntax

Read syntax diagramSkip visual syntax diagramlstasks-help-h-?-s-l-fmtdefaultxmldelim-delimcharstanza-ponoff-hdronoff-voffon

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-s
Displays default information, including: ID, Name, and Status.
-l
Displays detailed information, including:
Column label Details
ID Identification for the scheduled task
Name User defined name for the scheduled
Status Status for the scheduled task
Schedule How often the task is scheduled to run
Next Run Time Time the task is scheduled to run next
Last Run Time Last time the task ran
Last Message Last message for the task
-fmt { default | xml | delim | stanza }
Specifies the format of the output. You can specify one of these values:
default
Specifies that the output is displayed in tabular format using spaces as delimiters between columns. This is the default value.
xml
Specifies that the output is displayed in XML format.
delim
Specifies that output is displayed in a tabular format using commas as delimiters between columns.
To use a character other than a comma as the delimiter, specify -fmt delim -delim char , where char represents the character that you want to use as the delimiter. For example, if you want to use a colon (:) as the delimiter, use the following -fmt parameter:
-fmt delim -delim :
If you use a shell metacharacter as the delimiting character, enclose the character in quotation marks or single quotation marks. A blank space is not a valid character.
stanza
Specifies that the output is displayed as one keyword-value pair per line.
-p { on | off }
Specifies whether to display one page of text at a time or all text at once.
on
Displays one page of text at a time. Pressing any key displays the next page. This is the default value when the command is run in interactive mode.
off
Displays all text at once. This is the default value when the command is run in single-shot mode.
-hdr { on | off }
Specifies whether to display the table header. You can specify one of these values:
on
Displays the table header. This is the default value.
off
Hides the table header.
-v { on | off }
Specifies whether to enable verbose mode. You can specify one of these values:
on
Enables verbose mode.
off
Disables verbose mode. This is the default value.

Example: Listing tasks for a given session

csmcli> lstasks

The following output is returned:

ID   Name                    Status    
=======================================
1    Backup SGC              disabled
2    Flash GM sessions       running        
3    Suspend MM sessions     enabled      
4    Suspend GM sessions     enabled
csmcli> lstasks -l

The following output is returned:

ID  Name                 Status    Schedule                 Next Run Time                
========================================================================================
1   Backup SGC           disabled  No Schedule              -                            
2   Flash GM sessions    running   Every 2 hours            2018-07-23 12:20:00.008-0500     
3   Suspend MM sessions  enabled   09:40AM [CST] [SUN,TUE]  2018-07-23 10:00:00.008-0500 
4   Suspend GM sessions  enabled   No Schedule              -                            

Last Run Time                 Last Result
=========================================
-                             IWNR2205I 
2018-07-23 10:20:00.008-0500  IWNR2205I
-                             IWNR2205I
-                             IWNR2205I