Akamit Blog

Enterprise sysadmin's blog

  • You are here: 
  • Home

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 | No Comments »

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 »

How to keep job history longer in NetBackup

Posted on November 17th, 2011

That is simple.

# echo KEEP_JOBS_HOURS = 192 | bpsetconfig
# echo KEEP_JOBS_SUCCESSFUL_HOURS = 192 | bpsetconfig

Filed under Uncategorized | No Comments »

How to reset iLOM root password on Sun/Oracle X server

Posted on November 17th, 2011

if you’ve lost root password on Sun/Oracle X server, you can recovery it using ipmitool. This was tested on Sun X4600 M2, Solaris 10 installed.

# ipmitool user list 1
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    false   false      true       NO ACCESS
2   root             false   false      true       ADMINISTRATOR
12  radproxy         true    true       true       OPERATOR
13  ilomint          true    true       true       ADMINISTRATOR
14  ldapproxy        true    true       true       OPERATOR
15  pamproxy-admin   true    true       true       ADMINISTRATOR
16  pamproxy-oper    true    true       true       OPERATOR
# ipmitool user set password 2 new-password

Now you can login using new-password.

$ ssh root@ilom
Password: <new-password>
 
Sun(TM) Integrated Lights Out Manager
 
Version 2.0.2.5
 
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
 
->

Filed under Solaris, Sun Hardware | 1 Comment »