235
Chapter 15: Advanced Configuration
To run the CGI script on the Console Server:
• LogintotheB092-016
• Run:mount -o remount,rw /dev/hda1 /
• Copythescriptto/home/httpd/cgi-bin/
• Run: mount -o remount,ro /dev/hda1 /
• Browseto:http://192.168.0.1/cgi-bin/yourscript.cgiwhere192.168.0.1istheIPaddressoftheConsoleServerand
yourscript.cgi is the name of the script
ThereisausefultutorialoncreatingabashscriptCGIathttp://www.yolinux.com/TUTORIALS/LinuxTutorialCgiShellScript.html
Similarly the Master maintains a view of the status of the Slaves:
• SelectStatus:SupportReport
• ScrolldowntoProcesses
• Lookfor:/bin/ssh-MN-oControlPath=/var/run/cascade/%hSlavename.ThesearetheSlavesthatareconnected
Note:TheendoftheSlaves'nameswillbetruncated,sotherst5charactersmustbeunique
Alternatively,youcanwriteacustomCGIscriptasdescribedabove.ThecurrentlyconnectedSlavescanbedeterminedby
running: ls /var/run/cascade and the configured Slaves can be displayed by running: config -g config.cascade.Slaves
15.12 SMS Server Tools
Console Servers include the SMS Server Tools software which provides an SMS Gateway which can send and receive short
messages through GSM modems and mobile phones.
You can send short messages by simply storing text files into a special spool directory. The program monitors this directory
and sends new files automatically. It also stores received short messages into another directory as text files. Binary messages
(includingUnicodetext)arealsosupported,forexampleringtonemessages.It'salsopossibletosendaWAPPushmessage
to the WAP / MMS capable mobile phone.
The program can be run as a SMS daemon which can be started automatically when the operating system starts. High
availabilitycanbeensuredbyusingmultipleGSMdevices(currentlyupto64,thislimitiseasilychangeable).
Theprogramcanrunotherexternalprogramsorscriptsaftereventslikereceptionofanewmessage,successfulsendingand
also when the program detects a problem. These programs can inspect the related text files and perform automatic actions
TheSMSServerToolssoftwareneedsaGSMmodem(ormobilephone)withSMScommandsetaccordingtotheEuropean
specicationsGSM07.05(=ETSITS300585)andGSM03.38(=ETSITS100900).ATcommandsetissupported.Devices
canbeconnectedwithserialport,infraredorUSB.
Formoreinformation,refertohttp://smstools3.kekekasvi.com
15.13 Multicast
Bydefault,ConsoleServershaveMulticastingenabled.Multicastingprovidesproductswiththeabilitytosimultaneously
transmit information from a single device to a select group of hosts.
Multicastingcanbedisabledandre-enabledfromthecommandline.Todisablemulticastingtype:
ifconfig eth0 –multicast
Tore-enablemulticastingfromthecommandlinetype:
ifconfig eth0 multicast
IPv6 may need to be restarted when toggling between multicast states.