Posts Tagged ‘e-mail’

Automated inventory care of SIW

April 2, 2009 1 comment

Due to a recent change in software, I needed to upgrade RAM in all of the older machines in the organization.  To aid me in upgrading 300+ PCs I thought it prudent to make a list of what hardware each PC had.  I have used many inventory tools in the past (the most prominent being SpiceWorks) but by far the best inventory tool I have used is SIW.  This software comes in both free and paid versions, the paid having more features.  The feature that caught my eye for the paid version was the ability to use command line to control SIW.  After reading through the documentation, I made this small script that will e-mail the results of the scan to a inventory e-mail address.remote-inventory-siw

set INPUT=
set /P INPUT=The owner of this PC is: %=%
echo Creating and sending %INPUT%’s System Report.  Please Wait
siw /log=”%INPUT%” /email=INVENTORY EMAIL ADDRESS/subject=”%INPUT%’s report” /smtp=EMAIL SERVER /silent /nologo
ECHO %INPUT%’s Report is sent

This script allows the user to input their name, which in turn becomes the name of HTML file containing system specs along with the subject of the e-mail.  This batch file also requires the SIW.exe and SIW.lic file along with it to work.  So I threw it all togeather using freeextractor and created an install file.  Keep an eye out on making install files with freeextractor soon!

References: – SIW – FreeExtractor

Hylafax as a manual fax to E-mail gateway

March 26, 2008 1 comment

Hylafax LogoOne of the tasks that was mentioned to me when I first started this job was to find a way to convert our received faxes to e-mail. This of course has many advantages, from saving trees to people getting their faxes quicker. Keeping with my open source theme, I decided to use a little application I found called Hylafax. Hylafax itself has the ability to receive faxes and e-mail them directly to a user. I decided to tweak this to a samba share that everyone would have access too (this way if the person that received faxes was off sick we could still check our incoming faxes). This article is a guide on How-To install a Hylafax server in VMware. This has its advantages as it doesn’t really require the full resources of a server to run, and by using a VM, you can use any modem windows can support compared to hunting down drivers for Linux. Here we go!

Hylafax… Trees rejoice!

Create a VM from the RedHat 4 Template

  1. To add a modem to the VM
    1. Click on “Edit Virtual Machine Settings” and then “Add…
    2. Choose “Serial Port” and Next
    3. Choose “Use physical serial port on the host
    4. Choose the port on the host that the modem is using (in my case COM2)
  2. Download the latest Hylafax build for RedHat from and save it on a network share
  3. Install CentOS4 with the following packages
    1. Editors
    2. Windows file server
    3. Printing Support
  4. log in as Root
  5. type yum install sharutils
  6. type yum install ghostscript
  7. Now copy the Hylafax install that was previously downloaded from the website by typing smbclient \\fileserver\share -U username
  8. Once connected to the correct share, copy the file by typing get hylafax-4.4.4-1rhel4.i386.rpm then disconnect by typing exit
  9. Now to install Hylafax by typing rpm -Uvh hylafax*.rpm
  10. Once Hylafax is finished installing run /usr/sbin/faxsetup to configure Hylafax and your modem
  11. Use most of the defaults and input the pertinent data (area code, etc.). When you get top the point where it asks what serial port your modem is on, use ttyS0 . The rest is pretty self explanatory. after a while it will get into probing the modem for a host speed. this will take up to 5 minutes, so just be patient.
  12. Hylafax should now be set up to receive faxes. Next we want to edit the samba config file to create a share for our faxes. Do this by typing vi /etc/samba/smb.conf . Once in vi, you will want to edit the following lines (by first pressing i)
    1. server string = name of server
    2. guest account = nobody
    3. security = share
  13. Under the “Share Definitions” create a share similar to the following
    path = /var/spool/hylafax/recvq
    force group = uucp
    force user = uucp
    browseable = yes
    read only = now
    guset ok = yes
  14. Save the smb.conf file by pressing ESC and then typing : x and pressing enter
  15. Again using vi edit the /etc/inittab file, adding the line: mo:2345:respawn:/usr/sbin/faxgetty ttyS0
  16. Restart the server and you can browse to the IP address of the server and to the faxes share (//ip_address/faxes)
  17. To be alerted when a fax is received, we need to first mount the fax share in windows (I used t:\) and download/install File Alert Monitor. FAM will display a popup whenever a file is created (AKA a fax being received). To configure FAM:
    1. Click on Folder -> Add and select your mapped drive letter
    2. Click on View -> Options and check the following
      1. Monitoring – creation of new files
      2. Run on system startup
      3. Minimimize when the program Starts
    3. Click on the “File Types” tab and click on the “Customize…” button. remove .WAV and add .TIF then click OK
  18. Click on OK and minimize the program to finish configuration

Using this method, as a fax is received it can be e-mailed right away without the user constantly having to check the share.

Have fun!