Installation guide
128
Appendix A Command Line Tools
Security Management Center Commands
Security Management Center commands include commands for the Management Server, Log
Server, Web Portal Server, and Authentication Server. Most of the commands are found in the
<installation directory>/bin/ directory. In Windows, the command line tools are *.bat
script files. In Linux, the files are
*.sh scripts.
Commands that require parameters must be run through the command line (cmd.exe in
Windows). Commands that do not require parameters can alternatively be run through a
graphical user interface, and may be added as shortcuts during installation.
Note – If you installed the Management Server in the
C:\Program
Files\McAfee\Security Management Center
directory in Windows, some of the
program data is stored in the
C:\ProgramData\McAfee\Security Management Center
directory. Command line tools may be found in the
C:\Program Files\McAfee\Security
Management Center\bin
and/or the C:\ProgramData\McAfee\Security Management
Center\bin
directory.
Caution –
login and password parameters are optional. Giving them as Command Line
parameters may pose a security vulnerability. Do not enter login and password information
unless explicitly prompted to do so by a Command Line tool.
Table A.1 Security Management Center Command Line Tools
Command Description
sgArchiveExport
[host=<Management Server Address
[\Domain]>]
[login=<login name>]
[pass=<password>]
[format=<exporter format: CSV or
XML>]
i=<input files and/or directories>
[o=<output file name>]
[f=<filter file name>]
[e=<filter expression>]
[-h | -help | -?]
[-v]
Displays or exports logs from archive. This command is only
available on the Log Server. The operation checks privileges for
the supplied administrator account from the Management Server
to prevent unauthorized access to the logs.
Enclose details in double quotes if they contain spaces.