Command-line Options

You can use command-line options to pass input files or directory, processing options and output directory to IAS Log Viewer. There are four types of options:

  • Input options specifies an input files or directory for IAS Log Viewer.
  • Report options specifies parameters for report generating.
  • Export options specifies parameters for export records or connects.
  • Additional options.

You can group command-line options using following rules:

  • “iasviewer.exe [input options]" Start IAS Log Viewer in user interface mode and open specified input files or directory.
  • “iasviewer.exe [input options] [report options]" Generate reports from input files or directory and exit automatically after generating output files. No user interface is presented.
  • “iasviewer.exe [input options] [export options]" Export data from input files or directory and exit automatically after generating output files. No user interface is presented.

The following table lists the command-line options available in IAS Log Viewer

Option Default Description
Option Default Description
-i Uses log file(s) specified in the current visual settings
-ia Uses Microsoft IAS or NPS server active log file
-iad Uses Microsoft IAS or NPS server active log files directory
-iFileName Specifies the name of a input file. This can be a .log file.
If you specify a path or file name that contains spaces after a switch, enclose the path in quotation marks
-iDir Specifies the name of a input directory.
All *.log files from specified directory will be loaded.
If you specify a path or file name that contains spaces after a switch, enclose the path in quotation marks.
-ia-(Digital value) Uses previous log files from IAS/NPS server rotation.
“-ia-1” open log from previous day (for dayly rotation)
-iaf"Directory” Open latest log file from specified directory.
-r Uses reports options from the current visual settings.
-rdDirName Specifies output directory for the reports.
If you specify a path or file name that contains spaces after a switch,
enclose the path in quotation marks.
-rt(html|xml|csv) -rthtml Specifies reports output files format.
-rp(FromDate;ToDate|Setting) -rpalldata Specifies reports period. You can use predefined settings:
today, yesterday, currentweek, previosweek, currentmonth, previousmonth, alldata, currentyear, lasthours=(digit value), lastdays=(digit value)
or specify FromDate and ToDate in mm/dd/yyyy [H:mm:ss] format.
-rr(u;ud;p;pd;rj;cc) -rru Specifies types of generated reports:
u-Usage; ud-Usage Details; p-Ports; pd-Ports details; rj-Rejects; cc-Concurrent Connects.
If reports divided by ‘;’ selected types reports can be generated simultaneously.
You may define report columns with -rr(u:“FieldNames”;ud:“FieldNames”…)
where FieldNames is report columns divided ‘,’ list
-rod(+|-) -rod- Enable/Disable Reports Domain Sensitive in User Name option.
-roc(+|-) -roc- Enable/Disable Reports Case Sensitive in User Name option.
-rf"Filter” -rf”" Specifies additional filter for the reports.
-roxsl"PathToXSL" Set path to xsl stylesheet files. Link to xsl stylesheet can be
placed automatically in result xml files during xml report generation. This link
is <?xml-stylesheet type=“text/xsl” href=“PathToXSL”?> where instead of PathToXSL
must be parameter.
-rc"ConfigurationName" Use configuration “ConfigurationName” for report generation.
Reports configuration allows saving the most frequently used reports parameters and
use them in future. Configuration setting, creation and modification performed in
visual mode using “Report wizard” dialog.
-rrcci"interval" Set interval for Concurrent report generation. Interval format is “[days] H:mm:ss”.
-es(r|c) -esc Specifies types of exported data. You can export records (-esr options) or connects (-esc option) data.
-et(xml|csv) -etxml Specifies export output files format.
-edFileName Specifies output file name. If you specify a path or file name
that contains spaces after a switch, enclose the path in quotation marks.
-ef"Field[,Field]"|v Specifies output fields. You can use “v” char for specify fields from visual mode.
-eodChar -eod; Specifies output delimiter char for CSV file format.
-eoh(+|-) -eoh+ Enable/Disable header line with field names for CSV file.
-ep(FromDate;ToDate|Setting) -epalldata Specifies export period. You can use predefined settings:
today, yesterday, currentweek, previosweek, currentmonth, previousmonth, alldata, currentyear, lasthours=(digit value), lastdays=(digit value)
or specify FromDate and ToDate in mm/dd/yyyy [H:mm:ss] format.
-er"Filter" -er"" Specifies additional filter for the connects exporting.
-settings:(clear|export:“FileName”|import:“FileName”|getpath) Working with IAS Log Viewer settings.
-cfg"FileName" Set own file with IAS Log Viewer settings.
-indexes:(clear|on|off|getpath) Working with IAS Log Viewer indexes.
-task=(digital task id) Execute IAS Log Viewer scheduled task with specified id.
-? or -h Displays the available command-line options.
-fFileName Uses filename as the options data file instead of command line options.
-nosplash Disable splash screen that shows during IAS Log Viewer startup.
-hidereginfo Hide information with registration info. Some sysadmins not like to show registration info for other persons.
-nointernet Paranoic mode. Disable all internet access in the IAS Log Viewer.
-checkhealth Check health of IAS Log Viewer and place information in to the file checkhealth.txt near iasviewer.exe.

The following examples shows the syntax for using IAS Log Viewer command-line options:

  • “iasviewer.exe -ia” Start IAS Log Viewer in user interface mode and automatically open MS IAS server active log file.
  • “iasviewer.exe -ic:\IASLogFiles\iaslog.log” Start IAS Log Viewer in user interface mode and automatically open c:\IASLogFiles\iaslog.log file.
  • “iasviewer.exe -i” Start IAS Log Viewer in user interface mode and automatically open log file(s) from last used visual mode.
  • “iasviewer.exe -ia -r” Generate reports from the MS IAS server active log file. All reports options are used from last visual mode.
  • “iasviewer.exe -ia -rru;ud;p;pd -rd"c:\HTML Logs"" Generate usage,usage details,ports,ports details reports from the MS IAS server active log file. Directory “c:\HTML Logs" is used for output .html files.
  • “iasviewer.exe -ia -rp11/01/2003;11/03/2003 -rru;ud -rtxml -rdc:\XMLLogs” Generate usage,usage details reports from the active log file for period from 1-nov-2003 to 03-nov-2003. Directory “c:\XMLLogs" is used for output .xml files.
  • “iasviewer.exe -ic:\IASLogFiles -edc:\connects.xml” Export connects data in xml format to the c:\connects.xml file. Directory c:\IASLogFiles is used for input log files.
  • “iasviewer.exe -ic:\IASLogFiles -esc -etcsv -edc:\connects.csv” Export connects data in csv format to the c:\connects.csv file. Directory c:\IASLogFiles is used for input log files.