Solaris lucreate ERROR: Unable to mount boot environment
# /usr/sbin/luupgrade -u -n NEWBE -s /mnt -k /tmp/sysidcfg 64459 blocks miniroot filesystem is Mounting miniroot at ERROR: Unable to mount boot environment . Live Upgrade uses /a as a temporary mount point and directory for some of its actions. Check /a to make sure it is empty in the current BE and the new […]
Solaris : The file just loaded does not appear to be executable.
After ufs to zfs conversion. Rebooting with command: boot Boot device: disk File and args: detached mirror Can’t mount root Evaluating: The file just loaded does not appear to be executable. To boot the system from the ok prompt this worked for me: {3} ok boot /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0 -Z rpool/ROOT/Solaris10ZFS Check the bootfs setting on the […]
HPUX : Lun ID
Method 1 : scsimgr # ioscan -m dsf Persistent DSF Legacy DSF(s) ======================================== /dev/pt/pt2 /dev/rscsi/c4t10d0 /dev/pt/pt3 /dev/rscsi/c6t9d0 /dev/pt/pt5 /dev/rscsi/c8t0d0 /dev/rdisk/disk10 /dev/rdsk/c5t0d0 /dev/rdsk/c7t0d0 # scsimgr get_attr -D /dev/rdisk/disk10 -a serial_number SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk10 name = serial_number current = “1111150H0000”
Windows : Remove Text Formatting When Pasting To Outlook
This was just annoying me. I am working with a php webpage and when I copy paste into Outlook it was also copying the font and highlighting. The fix: Select the text Ctrl + Spacebar This is a nice link to other Outlook Shortcuts: http://office.microsoft.com/en-us/outlook-help/keyboard-shortcuts-for-outlook-HP001230396.aspx
Unix Cron Crontab
#* * * * * command to be executed #- – – – – #| | | | | #| | | | +—– day of week (0 – 6) (Sunday=0) #| | | +———- month (1 – 12) #| | +————— day of month (1 – 31) #| +——————– hour (0 – 23) #+————————- […]
awk : print column if it contains certain text
The following awk statement will print any user id that has a group id of 3. In other words if the number in column 4 is a 3 , print column 1. # awk -F: ‘{if ($4 ==”3″) print $1}’ /etc/passwd root sys uucp $0 will print the entire line if the group id is […]
Solaris ssh in single usermode
Ever wish you could use ssh in single user mode? This may work some of the time. From the console execute: # /usr/lib/ssh/sshd Then ssh to the server. If you are running regular ssh this may work.
infinite ksh shell loop with count
So .. no thrills no frills. If you are searching for this .. you know what you are looking at and can modify this as needed. #!/usr/bin/ksh export PATH=$PATH:/sbin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/local/bin DATE=`date ‘+%Y.%m.%d_%H.%M.%S’` count=1 while true do echo ${count} (( count++ )) if [[ ${count} -eq 11 ]]; then count=1 fi sleep 1 done This script will […]
Solaris Automatic Booting auto-boot
true – (Default) The host automatically attempts to boot from the devices specified in boot-device. false – The host does not automatically boot. You can boot manually. Verify current setting: # eeprom | grep auto-boot Change: # eeprom auto-boot?=false Verify updated setting: # eeprom | grep auto-boot Reset the host: # init 6 From the […]
Solaris RSC Console Management From OS
Need to reset your rsc password from the OS? Don’t know what the user name is? # /usr/platform/`uname -i`/rsc/rscadm usershow username permissions password ——– ———– ——– admin cuar Assigned To reset the password: # /usr/platform/`uname -i`/rsc/rscadm userpassword root Need help: # /usr/platform/`uname -i`/rsc/rscadm help USAGE: rscadm [options] For a list of commands, type “rscadm help” […]