Monthly Archives: March 2010

Bash Switch statement

If you have some server that need some script that control it (such as scripts found in /etc/init.d), here’s that script: open a text file and put the following in : #! /bin/shcase "$1" instart) echo "START"; ## command to … Continue reading

Tagged , , | Leave a comment

The Log Event responsible for logging user actions in Siebel

To add which user and what he/she was doing exactly to the log files, raise the log level for the event “EventContext”, e.g. “change evtloglvl EventContext=log_level for comp component_name“, remove the “comp” keyword if you want it for all components.

Tagged , | Leave a comment

Increase the log level for some events (based on a wildcard search) for a specific component using the Siebel CLI

Firstly, list them: “list evtloglvl %keyword% for comp component_name“ Finally, change the log level “change evtloglvl %keyword%=log_level for comp component_name“

Tagged , | Leave a comment

How to edit the Grub2 bootloader entries (used for some new linux distros, e.g. Ubuntu Karmic)

I used to edit the “/boot/grub/menu.lst”, that’s not the case in grub2: Firstly, you should edit the “/etc/default/grub” Next, run the “update-grub” command, that’s it 🙂

Tagged | Leave a comment

How to change the default CPU governer (CPU Frequency) in Ubuntu Karmic (might work for other versions as well)

The problem is that no matter what, when I change the CPU governer using the “CPU Frequency Scaling” gnome applet in my Ubuntu Karmic, it always defaults to “ondemand”, I searched in some forums and finally developed a nice and … Continue reading

Tagged , | Leave a comment