How to delete SMS messages from SIM card with SHR, freesmartphone.org, GTA02
Posted on November 6th, 2012
Once you get a message that your SMS storage on SIM is full and you can’t receive any messages. So, you have to clear your SIM from old messages.
In this example we are using GTA02 device with SHR as of 20120730233813.
First, we open a freesmartphone docs on SIM API and have some fun.
root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.GetSimInfo
({'slots': <20>, 'imsi': <'XXXXXXXXXXXX'>, 'issuer': <'unknown'>, 'used': <20>, 'phonebooks': <'emergency aux:BD fixed aux:DC dialed received aux:LR aux:MT aux:AD contacts aux:SD missed aux:LM aux:AF own aux:UD'>},)So, we are going to purge 20 messages as we have used 20 of 20 slots.
But if you want to read them first, issue the command
root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessage 1
('read', '1095', 'this is a private sms message', {'pid': <byte 0x00>, 'sri': <false>, 'rp': <false>, 'udhi': <false>, 'mms': <false>, 'dcs': <byte 0x01>, 'udl': <byte 0x46>, 'timestamp': <'12/11/06,16:16:24+16'>})When done, delete it.
root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.DeleteMessage 1 () root@om-gta02:~#
Next call to GetSimInfo wil show ‘used’: <19>.
Filed under Openmoko | No Comments »
Monitoring HP SmartArray 6i in OpenBSD 5.1
Posted on October 8th, 2012
Its done simply by looking at sysctl hw.sensors variables
bash-4.2# sysctl hw.sensors hw.sensors.acpitz0.temp0=8.30 degC (zone temperature) hw.sensors.ciss0.drive0=online (sd0), OK bash-4.2#
Filed under OpenBSD | No Comments »
How to manually turn on/off Xorg screen
Posted on May 2nd, 2012
It can be useful for example if you have a display that you need to be on for a period of time from 9-00 to 18-00 when you on desk.
I use that feature for Nagios management station which is running all the time but turn head display only when I’m on duty and can see what is on it.
nagios@nms-host$ crontab -l 0 18 * * * DISPLAY=:0 xset dpms force off 0 9 * * * DISPLAY=:0 xset dpms force on
Filed under Misc, Nagios | No Comments »
NTP settings on Sun system controllers
Posted on April 5th, 2012
Sun T5120, iLom (SP firmware 2.0.4.28.a)
Sun X4470, iLom (SP firmware 3.0.9.25)
-> set /SP/clients/ntp/server/1 address=10.70.1.2 Set 'address' to '10.70.1.2' -> set /SP/clients/ntp/server/2 address=0.0.0.0 Set 'address' to '0.0.0.0' -> set /SP/clock usentpserver=enabled Set 'usentpserver' to 'enabled' ->
Sun Mx000 XSCF
XSCF> setntp -c add 10.70.1.2 Please reset the XSCF by rebootxscf to apply the ntp settings. XSCF> showntp -a server 10.70.1.2 prefer XSCF> rebootxscf
Filed under Sun Hardware | No Comments »
Rebooting linux remotely when “reboot” command is not working
Posted on March 10th, 2012
If you got the system which cannot be rebooted traditional way for some reason (for example reboot command gives you “bus error”) you can use sysrq.
echo 1 > /proc/sys/kernel/sysrq echo s > /proc/sysrq-trigger echo u > /proc/sysrq-trigger echo b > /proc/sysrq-trigger
First command enables sysrq functionality, 2nd tries to sync filesystems, 3d to umounts them read-only (to avoid fsck during boot) and the last reboots the machine
Read Documentation/sysreq.txt in linux source directory for more options.
Filed under Linux | 1 Comment »
NetBackup: set exclude_list on Windows clients
Posted on November 30th, 2011
You need to set an exclude list for windows client using Unix Netbackup server.
# bpgetconfig -M win_client EXCLUDE EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\*.lock EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bprd.d\*.lock EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bpsched.d\*.lock EXCLUDE = C:\Program Files\Veritas\Volmgr\misc\* EXCLUDE = C:\Program Files\Veritas\NetBackupDB\data\*
Then just append desired path to exclude and save the list back to client:
# bpgetconfig -M win_client EXCLUDE > /tmp/exclude_list.txt echo "H:\oracle\NWO\sapdata*" >> /tmp/exclude_list.txt # bpsetconfig -h win_client /tmp/exclude_list.txt
Filed under Veritas NetBackup | No Comments »