Disable PIN code with AT commands

If you want to disable pin code, and you only have a GSM modem that responds AT commands: OK AT+CPIN? +CPIN: SIM PIN OK AT+CPIN="5543" OK AT+CLCK="SC",0,"5543" OK…

Read this article

Zimbra scripts

Reindex mailboxes This script will list zimbra account, and then reindex all mailboxes, with a 2 seconds sleep. #!/bin/bash [ “$USER” == “zimbra” ] || { echo “Run me as zimbra” ; exit 1; } SERVER=zimbra.somedomain.com echo # Get list of mail accounts and reindex each one for i in `zmprov -l gaa -s…

Read this article

Send mails with perl and sendmail

Here is how to send emails with perl, through sendmail: #!/usr/bin/perl use strict; my $sendmail = “/usr/sbin/sendmail -t”; my $reply_to = “Reply-to: spam\@gmail.com\n”; my $subject = “Subject: Confirmation of your submission\n”; my $content = “Thanks for your submission.”; my $send_to = “To: olivier\@test.com\…

Read this article

IPMI examples

IPMI is great for managing DRAC, or getting informations on the hardware. IPMI Installation on CentOS 5.7 wget -q -O - http://linux.dell.com/repo/hardware/OMSA_6.1/bootstrap.cgi | bash yum install OpenIPMI OpenIPMI-tools chkconfig ipmi on service ipmi start Use it ! # ipmitool lan print 1…

Read this article

Grow disk, lvm, partitions

If you increase the disk size (block copy to a biggest disk, or size increase when virtual disk), you’ll need to notice the change to the OS, so it can use the extra space. In this scenario, we increased the virtual disk /dev/sda from 5 To 20Gb. The…

Read this article