Addon Autoupdate-0.2 for HInventory Linux/Freebsd Script

by Julien SAFAR <julien.safar@iscio.com>

 

 

I] Requirements

 

 

- You must install:    

       - perl with modules:

          * LWP::Simple

          * version

 

- You can do this simply with theses 3 commands:

  $  perl -MCPAN -e shell

  $  install LWP::Simple

  $  install version

 

For Freebsd:

It works only with FreeBSD script => 1.2.2

 

II] How to use it

 

- Just copy the autoupdate.pl in hinventoryLinux or hinventoryFreeBSD directory

- Execute ./autoupdate.pl

- If you want help:

./autoupdate -h

AUTOUPDATE LINUX/FREEBSD SCRIPT

V.0.2 H-INVENTORY PROJECT        

          Options :

 

         -f : Force update (important update in hinventory.conf)

         -v : Show autoupdate version

         -h : Help

 

III] What the script do?

 

- By default with no argument, the script :

* Download automatically the .tar.gz, extract the archive, keep your hinventory.conf

 

If there is an important update in the conf file (hinventory.conf), you must use -f option.

Then the script rename your old hinventory.conf in hinventory.conf.bak and replace the new hinventory.conf.

So you must edit and reconfigure it if you use -f option!

 

IV] Why use it:

 

Your Linux/FreeBSD boxes script will be automatically updated.

You can can add two lines in your contab:

The first one which launch the autoupdate.pl to check updates.

The second one which launch the sh script to inventory your box.

 

V] CHANGELOG

 

[0.2] [+] Remove force_conf variable

      [+} Add -f option to force update, -h for help.

[0.1] Initial Release