19-111
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
Software Management CLI Utility
cwcli swim subcommands common_arguments command_arguments
In the CLI version, you can provide the arguments in the (operating system shell) command line or in
aninput file.
The input file gives you flexibility and control over commands and command sets. You can specify the
images on which you want to run the command sets.
In the input file, you can include subcommands and command arguments.
Items in square brackets ([]) are optional; items in curly brackets ({}) are required.
The arguments are described in the following sections.

Subcommands

Subcommands specify the actions that you perform. Valid values for subcommands are described in the
following table.
Common Arguments
Common arguments specify parameters that apply to all subcommands. Valid values
forcommon_arguments are described in the following table.
Sub command Description Example
listimages Displays a list of images available in the
Software Repository.
cwcli swim listimages -u Userid -p Password
exportimages Exports specified images in a
non-compressed format from the Software
Repository to any directory. The default
target directory is the current directory.
For exportimages command either one of
these arguments must be mandatorily
specified:
-imagenames|-all|-input
cwcli swim exportimages -u Username -p
Password [-imagenames imagename1,
imagename2...] [-all] [-dirname directoryname]
[-input argumentFile] [-m email][-l logfile]
help Displays command usage information. cwcli swim -help
Common Arguments Description/Action Usage Notes
-u user Enter a valid CiscoWorks
username.
None
-p password Enter the password for the
username.
You can also specify the password
in a file. See Setting CWCLIFILE
Environment Variable for
moredetails.
None