The work TrapSnap performs is defined in the file "TrapSnap.cfg".
TrapSnap.cfg is stored in the same directory as TrapSnap which you chose at installation.
Setting up a Camera with a Sensor Probe/Hub/Array. Each camera has an associated security switch connected to an array. When the switch becomes critical (its door opens), the array needs to be configured to send an SNMP trap to the PC that is running TrapSnap. TrapSnap needs to be configured such that when a trap from the array's IP address is received with the specific trap number for this security switch, then TrapSnap retrieves an image from the camera and stores it on the PC. When a trap arrives, TrapSnap compares the IP address of the source and the trap number to lines in a simple ASCII text file, TrapSnap.cfg, stored in the same directory as TrapSnap.exe. If a match of sending array and trap number are found in the file then other details on the same line tell TrapSnap the user name, password, IP address of the camera and directory location of the image on the camera to FTP an image from also where that image should be stored and named on the PC. Here is a typical line for a sensor probe: 10.1.1.8,*,301,%2=1,ftp,root:firstname.lastname@example.org/tmp/jpg/image.jpg,/inetpub/wwwroot/snapsdir/%6-%Y%m%d%_.jpg The fields between the commas are: 10.1.1.8 = IP of the trap sending sensor probe 301 = Trap Number on this switch %2=1 = The second Trap variable must be a '1' (this indicates the door is opening) ftp = Protocol to use (ftp for Axis, veo for Veo) root:email@example.com/tmp/jpg/images.jpg = User name, password and IP address of the Axis camera and where to find the image on the camera /inetpub/wwwroot/snapsdir/%6-%Y%m%d%_.jpg = Directory on this PC to store the images and a generated name for the image. %6 use the door name supplied in the sensor probe trap. %Y the year 2XXX %m the month XX %d the day of the month XX %_ the time of day HH_MM_SS Here is a typical line for a sensor hub: 10.1.1.9,*,101,*,veo,admin:firstname.lastname@example.org,/inetpub/wwwroot/snapsdir/%2-%Y%m%d%_.jpg The fields between the commas are: 10.1.1.9 = IP of the trap sending sending hub 101 = Trap Number on this switch and the fact that it is opening veo = Protocol to use (ftp for Axis, veo for Veo) admin:email@example.com = User name, password and IP address of the Veo camera /inetpub/wwwroot/snapsdir/%2-%Y%m%d%_.jpg = Directory on this PC to store the images and a generated name for the image. %2 use the door name supplied in the sensor hub trap. %Y the year 2XXX %m the month XX %d the day of the month XX %_ the time of day HH_MM_SS TrapSnap can handle several switch/arrays combinations. The limitations will be the speed of transfer from the camera to the Windows machine and the frequency of traps. When you installed TrapSnap, it will have been configured to run on your machine as a system service. You can start and stop TrapSnap via the services control panel if needed. To change the actions TrapSnap performs, edit its configuration file "TrapSnap.cfg" and save your changes. After receiving the next trap, TrapSnap will notice that you have modified the configuration and will re-read its configuration file. What else can TrapSnap do? TrapSnap can also be used to run an external program when a specific trap is received. TrapSnap can be used to log any or all traps it receives. More % substitutions can be achieved. More details can be found in the documentation for TrapSnap.
Find out about the layout of TrapSnap.cfg in "Editing TrapSnap.cfg".