If you need to know the if a release of an Unix operating system is still supported by the vendor, check these links for information
End of life information about HP-UX (PDF)
Posted by Emerson Takahashi on July 30, 2010
If you need to know the if a release of an Unix operating system is still supported by the vendor, check these links for information
End of life information about HP-UX (PDF)
Posted in Sysadmin | Tagged: solaris, aix, hp-ux, eol | Leave a Comment »
Posted by Emerson Takahashi on July 30, 2010
root@solaris:/ # passwd emerson
New Password:
Re-enter new Password:
passwd: System error: no files password for emerson.
Permission denied
In this case there was a problem in the /etc/passwd file. There was a blank line between two users.
Posted in Sysadmin | Tagged: solaris, passwd | Leave a Comment »
Posted by Emerson Takahashi on July 30, 2010
To check which satellite the HP Server Automation (formely known as Opsware) is pointing to, check the file /etc/opt/opsware/agent/opswgw.args
root@solaris:/ # cat /etc/opt/opsware/agent/opswgw.args
opswgw.gw_list: 164.56.164.222:3001,164.56.164.221:3001
This server is pointing to two satellites
Posted in Sysadmin | Tagged: hp server automation, opsware, satellite | Leave a Comment »
Posted by Emerson Takahashi on July 29, 2010
hscroot@localhost:~> vtmenu
Retrieving name of managed system(s) . . . 10D400C
———————————————————-
Partitions On Managed System: 10D400C
———————————————————-
1) LPAR1 Not Available:
2) LPAR2 Not Available:Enter Number of Running Partition (q to quit): q
Bye.
The server with the two LPAR partions were shut down due to a electric maintenance. I tried to start the partitions but I was having this problem:
hscroot@localhost:~> chsysstate -r lpar -m 10D400C -o on -n LPAR1
Unable to lock the Service Processor. Perform one of the following steps: (1) Check serial cable connection; (2) Check if another Console is communicating with the Service Processor; (3) Perform the Release Lock task; (4) Perform Rebuild task to re-establish the connection.
I tried again and I got a different error.
hscroot@localhost:~> chsysstate -r lpar -m 10D400C -o on -n LPAR1
Command sent to Service Processor failed. Error Response 4.
To reboot the IBM HMC, type the command below
hscroot@localhost:~> hmcshutdown -t now -r
Broadcast message from root (Sun Jun 6 08:35:38 2010):
The system is going down for reboot NOW!
I had problems with the reboot and asked to power off and power on the HMC. After that I had no more problems.
Posted in Sysadmin | Tagged: ibm, hmc | Leave a Comment »
Posted by Emerson Takahashi on July 29, 2010
root@solaris:/ # luxadm probe
No Network Array enclosures found in /dev/esFound Fibre Channel device(s):
(Removed to show only the tape devices)
Node WWN:500104f0009429c3 Device Type:Tape device
Logical Path:/dev/rmt/0n
Node WWN:500104f0009429c6 Device Type:Tape device
Logical Path:/dev/rmt/7n
Node WWN:500104f0009429c9 Device Type:Tape device
Logical Path:/dev/rmt/9n
Node WWN:500104f0009429cc Device Type:Tape device
Logical Path:/dev/rmt/11n
This drive showed the status of the tape drive
root@solaris:/ # mt -f /dev/rmt/7n status
HP Ultrium LTO 3 tape drive:
sense key(0×0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
This drive shows that no tape is loaded or the drive is offline.
root@solaris:/ # mt -f /dev/rmt/9n status
/dev/rmt/9n: no tape loaded or drive offline
Posted in Sysadmin | Tagged: solaris, tape | Leave a Comment »
Posted by Emerson Takahashi on July 23, 2010
I was having some I/O errors in filesystems below /var
root@solaris:~ # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 7.7G 4.9G 2.7G 64% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 39G 1.2M 39G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
7.7G 4.9G 2.7G 64% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
7.7G 4.9G 2.7G 64% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
/dev/md/dsk/d50 15G 2.2G 13G 15% /var
swap 2.0G 2.2M 2.0G 1% /tmp
df: cannot statvfs /var/run: I/O error
/dev/md/dsk/d140 11G 8.9G 2.0G 82% /sites
/dev/md/dsk/d60 7.7G 2.7G 4.9G 37% /opt
/dev/md/dsk/d90 963M 1.0M 904M 1% /logs
/dev/md/dsk/d85 963M 3.3M 902M 1% /home
/dev/md/dsk/d110 963M 730M 175M 81% /u01
df: cannot statvfs /var/mqm: I/O error
df: cannot statvfs /var/crash: I/O error
I was able to enter the directory /var but I was not able to list anything.
root@solaris:~ # cd /var
cd: error retrieving current directory: getcwd: cannot access parent directories: I/O errorroot@solaris:/var # ls -al
.: I/O error
On the console I was seeing the error from makeutx
Jul 22 21:53:41 svc.startd[9669]: makeutx failed, retrying: I/O error
Jul 22 21:53:42 svc.startd[9669]: makeutx failed, retrying: No such file or directory
I decided to umount the filesystem and mount it again and my error disappeared
root@solaris:/root # umount /var
root@solaris:/root # df -h /var
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 7.7G 4.9G 2.7G 64% /
root@solaris:/root # mount /var
root@solaris:/root # df -h /var
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d50 15G 2.2G 13G 15% /var
Posted in Sysadmin | Tagged: solaris, ioerror, statvfs, getcwd, makeutx | Leave a Comment »
Posted by Emerson Takahashi on July 23, 2010
First you need to check some information for your system on the HMC. Issue the command vtmenu to get the managed system ID and the names of the partitions
hscroot@localhost:~> vtmenu
Retrieving name of managed system(s) . . . 108F19C
———————————————————-
Partitions On Managed System: 108F19C
———————————————————-
1) MANUFACTURING Running:
2) RETAIL Running:Enter Number of Running Partition (q to quit): q
Bye.
On this example I tried to soft reset the partition called MANUFACTURING
hscroot@localhost:~> chsysstate -m 108F19C -r lpar -n MANUFACTURING -o reset
Since it didn’t work out as expected, I decided to power off the LPAR
hscroot@localhost:~> chsysstate -m 108F19C -r lpar -n MANUFACTURING -o off
hscroot@localhost:~> vtmenu
Retrieving name of managed system(s) . . . 108F19C
———————————————————-
Partitions On Managed System: 108F19C
———————————————————-
1) MANUFACTURING Ready:
2) RETAIL Running:Enter Number of Running Partition (q to quit): q
Bye.
I turned the partition on and after that it worked flawlessly
hscroot@localhost:~> chsysstate -r lpar -m 108F19C -o on -n MANUFACTURING
hscroot@localhost:~> vtmenu
Retrieving name of managed system(s) . . . 108F19C
———————————————————-
Partitions On Managed System: 108F19C
———————————————————-
1) MANUFACTURING Starting:
2) RETAIL Running:Enter Number of Running Partition (q to quit): q
Bye.
Posted in Sysadmin | Tagged: aix, hmc, power4 | Leave a Comment »
Posted by Emerson Takahashi on July 22, 2010
To stop eTrust Access Control, use secons -s
root@solaris:/ # /usr/seos/bin/secons -s
eTrust secons v5.30 (5.30) – Console Utility
Copyright 2003 Computer Associates International, Inc.
eTrust is now DOWN !!!
To start it, use seload
root@solaris:/ # /usr/seos/bin/seload
eTrust seload v5.30 (5.30) – Loader Utility
Copyright 2003 Computer Associates International, Inc.
eTrust kernel extension is already loaded.
Starting eTrust daemon. (/usr/seos/bin/seosd)
18 Jul 2010 11:59:48> WAKE_UP : Server going up
18 Jul 2010 11:59:48> INFO : Filter Mask: ‘WATCHDOG*’ is registered
18 Jul 2010 11:59:48> INFO : Filter Mask: ‘INFO : Setting PV*’ is registered
18 Jul 2010 11:59:48> INFO : Filter Mask: ‘INFO : DB*’ is registered
18 Jul 2010 11:59:48> INFO : Filter Mask: ‘*seosd.trace*’ is registered
18 Jul 2010 11:59:48> INFO : Filter Mask: ‘*FILE*secons*(*/log/*)*’ is registered
Starting seosd. PID = 8115.
Starting seagent. PID = 8117
Starting seoswd. PID = 8137
seagent: Loading database image…
Executing [daemons] command: /usr/seos/bin/serevu
seagent: Initialization phase completed
Starting serevu. PID = 8141
serevu: Multiple instances of serevu are not allowed.
Posted in Sysadmin | Tagged: solaris, etrust | Leave a Comment »
Posted by Emerson Takahashi on July 17, 2010
Just ssh to the IP that you configured the iLO
emerson@shellcore:~ $ ssh emerson@192.168.50.118
emerson@192.168.50.118′s password:
User:Emerson Takahashi logged-in to ILO_TESTLABHP.(192.168.50.118)
iLO 2 Advanced Evaluation 1.81 at 11:05:47 Jan 15 2010
Server Name: proliant_g5
Server Power: On</>hpiLO->
Since I will access through a text terminal, Linux is configured to use the serial port (configured through the file /boot/grub/grub.conf)
</>hpiLO-> help
status=0
status_tag=COMMAND COMPLETEDDMTF SMASH CLP Commands:
help : Used to get context sensitive help.
show : Used to show values of a property or contents of a collection target.
create : Used to create new user account in the name space of the MAP.
Example: create /map1/accounts1 username= password=
name=
group=delete : Used to delete user account in the name space of the MAP.
Example: delete /map1/accounts1/load : Used to move a binary image from an URL to the MAP. The URL is
limited to 80 characters
Example : load -source http://192.168.1.1/images/fw/iLO2_130.binreset : Used to cause a target to cycle from enabled to disabled and back to
enabled.set : Used to set a property or set of properties to a specific value.
start : Used to cause a target to change state to a higher run level.
stop : Used to cause a target to change state to a lower run level.
cd : Used to set the current default target.
Example: cd targetnameexit : Used to terminate the CLP session.
version : Used to query the version of the CLP implementation or other CLP
elements.oemhp_ping : Used to determine if an IP address is reachable from this iLO 2.
Example : oemhp_ping 192.168.1.1 , where 192.168.1.1 is the IP address that you wish
to pingoemhp_loadSSHKey : Used to authorize a SSH Key File from an URL The URL is
limited to 80 characters
Example : oemhp_loadSSHKey -source http://UserName:password@192.168.1.1/images/SSHkey1.ppkHP CLI Commands:
POWER : Control server power.
UID : Control Unit-ID light.
NMI : Generate an NMI.
VM : Virtual media commands.
VSP : Invoke virtual serial port.
Type VSP and you’re in. To login as root you need to include the serial port (in this case ttyS1) on your /etc/securetty file or you will be given the error message that your user or password is wrong.
</>hpiLO-> VSP
Starting virtual serial port.
Press ‘ESC (‘ to return to the CLI Session.</>hpiLO-> Virtual Serial Port active: IO=0x02F8 INT=3
login as:
To exit, press Esc and then ( – left parenthesis
Posted in Sysadmin | Tagged: hp, ilo | Leave a Comment »
Posted by Emerson Takahashi on July 13, 2010
To check account properties you use the command lsuser and specify what property you want to see.
Checking if an account is locked
root@aix:/ # lsuser -a account_locked emerson
emerson account_locked=false
To calculate when was the last time an user logged in to the server, you will need to convert the time displayed. Use the command below to convert.
root@aix:/ # lsuser -a time_last_login emerson
emerson time_last_login=1279036180root@aix:/ # perl -we ‘print(my $time = localtime 1279036180, “\n”)’
Tue Jul 13 10:49:40 2010
Posted in Sysadmin | Tagged: aix, lsuser | Leave a Comment »