Script Parameter options in different modes

./runBigFixDiscovery.sh (or.bat) is the- TADDM tool to run a BigFix enhanced discovery or to query an existing discovery Action.

Mode: DISCOVER

usage: bin/runBigFixDiscovery.sh -d/--discover [-c <arg>] [-freq <arg>] [-h] [-intr <arg>] -o <arg> -p <arg> -s <arg>

where,

Table 1.
-ac,--actionConstraint <arg>
File specified with different action constraint related parameter. File should contain below parameter, with sample values given as example:
com.collation.bigfix.action.constraint.starttime=T10M 
com.collation.bigfix.action.constraint.endtime=3DT5H20M 
com.collation.bigfix.action.constraint.timerange.starttime=01:15:00 
com.collation.bigfix.action.constraint.timerange.endtime=05:30:00 
com.collation.bigfix.action.constraint.days=sat,sun 

This means a script can run on target only when these constraints are met which is starting from 10 minutes from now (T10M) till 3 days 5 hours and 20 minutes (3DT5H20M), discovery can run only on Saturday and Sunday and between time 01:15:00 to 05:30:00(24 hours format). This option will be helpful in both single discovery and in discovery started with interval option.

-c,--compressMethod <arg> [Default : ZIP] Possible Values : [ZIP, TAR].
-freq,--frequency <arg> [Default : 1] Number of times discovery needs to be run.
-h,--help show help.
-intr,--interval <arg> [Default : P1D] Time interval between rerun of discovery. Supported values : [PT15M, PT30M, PT1H, PT2H, PT4H, PT6H, PT8H, PT12H, P1D, P2D, P3D, P5D, P7D, P15D, P30D].
-o,--output <arg> REQUIRED: Output Directory where the Bigfix Discovery Package will be generated.
-p,--profile <arg> REQUIRED: Profile name will be used for Discovery Package creation to include sensors.
-s,--scope REQUIRED: Scope/ScopeGroup name/s (Comma seperated. Wrap names in quotes that contain spaces).

Mode: POLL

usage: bin/runBigFixDiscovery.sh -p/--poll [-h] -i <arg> [-r <arg>] [-t <arg>]

where,

Table 2.
-d,--detail <arg> [Default : true] Polling result for each Endpoint
-h,--help show help.
-r,--repeat <arg> [Default : 1] Number of times to poll for Action Status
-i,--id <arg> REQUIRED: Action ID to POLL
-t,--timeout <arg> [Default : 1] Interval between consecutive POLL in seconds.

Mode: CLEANUP

usage: bin/runBigFixDiscovery.sh -c/--cleanup [-d <arg>] [-h]

where,

Table 3.
-h,--help show help.
-d,--days <arg> [Default : 5] Clean Result Files older than specified number of Days

Mode: REDISCOVER

usage: bin/runBigFixDiscovery.sh -r/--rediscover [-freq <arg>] [-h] [-intr <arg>]

where,

Table 4.
-freq,--frequency <arg> [Default : 1] Number of times discovery needs to be run
-h,--help show help.
-intr,--interval <arg> [Default : P1D] Time interval between rerun of discovery. Supported values : [PT15M, PT30M, PT1H, PT2H, PT4H, PT6H, PT8H, PT12H, P1D, P2D, P3D, P5D, P7D, P15D, P30D].