@@ -33,6 +33,8 @@ GetOptions(
33
33
' debug+' ,
34
34
' delaytime=s' ,
35
35
' force|f' ,
36
+ ' full' ,
37
+ ' full-inventory-postpone=i' ,
36
38
' help|h' ,
37
39
' html' ,
38
40
' json' ,
@@ -118,6 +120,11 @@ if ($options->{daemon}) {
118
120
}
119
121
}
120
122
123
+ if ($options -> {full }) {
124
+ # Disable full inventory postpone if requested
125
+ $options -> {' full-inventory-postpone' } = 0;
126
+ }
127
+
121
128
die " given '$options ->{vardir}' vardir folder doesn't exist\n "
122
129
if $options -> {vardir } && ! -d $options -> {vardir };
123
130
@@ -265,6 +272,8 @@ glpi-agent [options] [--server server|--local path]
265
272
--partial=CATEGORY make a partial inventory of given category
266
273
items, this option implies --json
267
274
--credentials set credentials to support database inventory
275
+ --full-inventory-postpone=NUM set number of possible full inventory postpone (14)
276
+ --full force inventory task to generate a full inventory
268
277
269
278
RemoteInventory task specific options:
270
279
--remote=REMOTE[,REMOTE]... specify a list of remotes to process in place
@@ -551,6 +560,16 @@ Setup credentials for database inventory
551
560
CREDENTIALS should be a list of "key:value" separated by commas like in:
552
561
For example: --credentials="type:login_password,login:root,password:********,use:postgresql,params_id:0"
553
562
563
+ =item B<--full-inventory-postpone > =I<NUM >
564
+
565
+ Set the number of time the agent can decide to generate a partial inventory with only
566
+ changed category before generating a full inventory.
567
+
568
+ =item B<--full >
569
+
570
+ Force inventory task to generate a full inventory even if B<full-inventory-postpone > option
571
+ is set. Indeed this is equivalent to set B<--full-inventory-postpone=0 > .
572
+
554
573
=item B<--scan-homedirs >
555
574
556
575
Allow the agent to scan home directories for virtual machines.
0 commit comments