Sponsored Content
Top Forums Shell Programming and Scripting Unable to get full message text from Windows Event Logs Post 302769375 by kar_333 on Tuesday 12th of February 2013 04:41:03 AM
Old 02-12-2013
Unable to get full message text from Windows Event Logs

Hi all,

. I am developing a log monitoring solution in perl for Windows I am using the CPAN module Win32 ::EventLog (0.076) version for getting the events from windows. The problem which I am facing now is all the Windows 2008 machines are upgraded with Service pack2 from then I couldn’t able to get the message text even if I set the value 1 to $Win32::EventLog::GetMessageText = 1; for both Windows 2008 sp2 and Windows 2012. I agree this not a bug in the module instead Windows 2008 Sp2 and 2012 event log design might have changed in such a way kindly let me know is there any possibility to modify anything in the .pm file to get the Windows 2008 sp2 message moreover the module cannot pull only the message from the service control manager which has an event ID 7036.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Message Logs Error

I'm about 5 months new on an 5 year old unix system. If anyone can help me identify what causing the below errors i'd really appreciate it! unix: WARNING: /pci@1f,0/pci@1,1/ide@3/dad@1,0 (dad1): Uncorrectable data Error: Block 57e10 Unix: WARNING: /pci@1f,0/pci@1,1/ide@3/dad@1,0 (dad1):... (1 Reply)
Discussion started by: ByasB
1 Replies

2. UNIX for Advanced & Expert Users

ppp errror message in logs

I am getting this message in the log file. Apr 29 15:32:02 router ppp: Warning: Label COPYRIGHT rejected -direct connection: Configuration label not found This repeats every so often, the link is up however...Any ideas why i am getting this. Its freebsd 6.1 and pppoE. Frank (1 Reply)
Discussion started by: frankkahle
1 Replies

3. Shell Programming and Scripting

memory full warning message

Hi I wrote a script #!/usr/bin/ksh #set -x for fs in `df -k|awk '{print $1}'|sed -n "3,14 p"` do x=`df -kl | grep $fs | awk '{ print $5 }'` y=50% if then message="File System `df -k |grep $fs |awk '{print $6\", \"$5}'`... (1 Reply)
Discussion started by: namishtiwari
1 Replies

4. UNIX for Dummies Questions & Answers

Send Text message from unix to windows

Hi Buddies, I have a unix client and want to send a message (containg some data) to a windows Database server to query from it and return the result. I shall be so thankfull if you help me out.:b::) Warm Regards, Jessi (1 Reply)
Discussion started by: jessica-adams
1 Replies

5. Shell Programming and Scripting

Rotating logs in Perl without message loss

(I'm aware log rotation is a common subject, but I tried searching and couldn't find an answer) For some time now, I've been using the Logfile::Rotate module to rotate logs in a log-monitoring script. So far, I haven't experienced any problems, and it works great because I can use it in Linux... (1 Reply)
Discussion started by: w1r3d
1 Replies

6. Solaris

ILOM event logs

Hello I have a server Sun Fire X4250. Few days ago I take a look to ILOM -> System Monitoring -> log events. I saw some lines that I don't understand, for example: 5800 Chassis Action major Oct 30 23:58:35 2009 Hot insertion of /SYS/DBP/HDD12 5799 Chassis ... (3 Replies)
Discussion started by: marimontes
3 Replies

7. Shell Programming and Scripting

script to grep outofmemory message in logs

I have prepare script to grep for outofmemory messages in the logs. I need help in modifying script. I have implemented small logic. The outofmemory messages form six logs will store in variables. var1=`grep -i outofmemory $tomcat1logs | sed -n '$p'| sed -n -e "s/.*\(outofmemory\).*/\1/p"`... (6 Replies)
Discussion started by: coolguyamy
6 Replies

8. Shell Programming and Scripting

Perl script to parse multiple windows event logs.

Hi all, I am developing a log parsing agent in perl to send windows Event logs to Zenoss Monitoring tool. Using Win32::EventLog i can able to get the Event messages but only one Eventype eg Application or System could able to parse at a time. Can you please help to how to open mutiple eventlogs... (3 Replies)
Discussion started by: kar_333
3 Replies

9. AIX

PowerHA(HACMP) full vg loss - cluster hangs on release_vg_fs event

Hello, AIX 6.1 TL7 SP6 POwerHA 6.1 SP10 I was experimenting with new hacmp build. It's 3-node cluster build on AIX 6.1 lpars. It contains Ethernet and diskhb networks. Shared vg disk is SAN disk. Two nodes see disk using vscsi, third node sees disk using npiv. Application is db2 server. ... (4 Replies)
Discussion started by: vilius
4 Replies
GAMMU-SMSD(1)							       Gammu							     GAMMU-SMSD(1)

NAME
gammu-smsd - SMS daemon for Gammu SYNOPSIS
gammu-smsd [OPTION]... DESCRIPTION
This manual page documents briefly the gammu-smsd command. gammu-smsd is a program that periodically scans GSM modem for received messages, stores them in defined storage and also sends messages enqueued in this storage. The daemon can reload configuration file after sending hangup signal (SIGHUP) and properly terminates itself on SIGINT and SIGTERM. Program accepts following options (please note that long options might be not accepted on some platforms): -h, --help Shows help. -v, --version Shows version information and compiled in features. -c, --config=file Configuration file to use, default is /etc/gammu-smsdrc, on Windows there is no default and configuration file path has to be always specified. If you run SMSD as a system daemon (or service), it is recommended to use absolute path to configuration file as startup directory might be different than you expect. See gammu-smsdrc for configuration file documentation. -p, --pid=file Lock file for storing pid, empty for no locking. Not supported on Windows. -U, --user=user Drop daemon privileges to chosed user after starting. -G, --group=group Drop daemon privileges to chosen group after starting. -d, --daemon Daemonize program on startup. Not supported on Windows. -i, --install-service Installs SMSD as a Windows service. -u, --uninstall-service Uninstalls SMSD as a Windows service. -s, --start-service Starts SMSD Windows service. -k, --stop-service Stops SMSD Windows service. -f, --max-failures=count Terminate after defined number of failures. Use 0 to not terminate (this is default). -X, --suicide=seconds Kills itself after number of seconds. -S, --run-service Runs pogram as SMSD Windows service. This should not be used manually, but only Windows Service manager should use this command. -n, --service-name=name Defines name of a Windows service. Each service requires an unique name, so if you want to run several SMSD instances, you have to name each service differently. Default is "GammuSMSD". -l, --use-log Use logging as configured in config file (default). -L, --no-use-log Do not use logging as configured in config file. -e, --install-event-log Installs Windows EventLog description to registry. New in version 1.31.90. -E, --uninstall-event-log Uninstalls Windows EventLog description to registry. New in version 1.31.90. SIGNALS
SMSD can be controlled using following POSIX signals (if your platform supports this): SIGHUP Reload configuration and reconnect to phone. SIGINT, SIGTERM Gracefully shutdown the daemon. SIGALRM Used internally for gammu-smsd -X SIGUSR1 Suspends SMSD operartion, closing connection to phone and database. SIGUSR2 Resumes SMSD operattion (after previous suspend). Changed in version 1.22.91: Added support for SIGHUP. Changed in version 1.22.95: Added support for SIGALRM. Changed in version 1.31.90: Added support for SIGUSR1 and SIGUSR2. EXAMPLES
Linux/Unix Examples Start SMSD as a daemon on Linux: gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon Start SMSD as a daemon on Linux with reduced privileges: gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon --user gammu --group gammu SMSD as a system wide daemon To use SMSD as a daemon, you might want to use init script which is shipped with Gammu in contrib/init directory. It is not installed by default, either install it manually or check INSTALL file for instructions. Under Windows 7 you might need to disable UAC (user account control) before you will be able to install SMSD service. Windows Service Examples Install Gammu SMSD Windows service: gammu-smsd.exe -c c:Gammusmsdrc -i Install two instances of SMSD Windows service: gammu-smsd.exe -c c:Gammusmsdrc-1 -n Gammu-first-phone -i gammu-smsd.exe -c c:Gammusmsdrc-2 -n Gammu-second-phone -i To uninstall a Windows service: gammu-smsd.exe -u Troubleshooting Windows Service If Gammu fails to start as a Windows service (you will usually get "Error 1053: The service did not respond to the start or control request in a timely fashion"), first check your SMSD logs. If they do not contain any useful hint, try starting SMSD manually with exactly same parameters as you installed the service (without -i). For example the command line can look like: gammu-smsd.exe -c smsdrc You now should be able to get errors from SMSD even if it fails to start as a service. KNOWN LIMITATIONS
You can not use same phone by more programs in same time. However in case you did not enable locking in [gammu] section, it might be able to start the communication with phone from more programs. In this case neither of the programs will probably work. There is no way to detect that SMS message is reply to another by looking at message headers. The only way to achieve this is to add some token to the message and let the user include it in the message on reply. AUTHOR
Michal iha <michal@cihar.com> COPYRIGHT
2009-2012, Michal iha <michal@cihar.com> 1.31.90 February 24, 2012 GAMMU-SMSD(1)
All times are GMT -4. The time now is 05:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy