Posts

Showing posts from June, 2013

rc.local in Suse ---Start a command at boot time in SuSE

   rc.local in Suse Suse do not have any rc.local script.. Which this script useful is.. In RedHat, after the init start, it will invoke the command in rc.local.. It is very useful which almost same function with startup in windows.. 1. create a new file named rclocal at /etc/init.d/ vi /etc/init.d/rclocal 2. Then add the the following in the beginning script.. #!/bin/sh ### BEGIN INIT INFO # Provides: rclocal # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: whatever ### END INIT INFO # " ADD THE COMMAND WHICH WE WANT TO START AT BOOTING" 3. Change mode for the file chmod 755 /etc/init.d/rclocal 4. add service chkconfig --add rclocal

find location code of fc in VIOS

To get complete Info about hardwar e& location codes lsdev -vpd

Setting the LHEA to promiscuous mode

Setting the LHEA to promiscuous mode To use a Shared Ethernet Adapter with a Host Ethernet Adapter (or Integrated Virtual Ethernet), you must set the Logical Host Ethernet Adapter (LHEA) to promiscuous mode. Before you start, use the Hardware Management Console ( HMC ) to determine the physical port of the Host Ethernet Adapter that is associated with the Logical Host Ethernet port. Determine this information for the Logical Host Ethernet port that is the real adapter of the Shared Ethernet Adapter on the Virtual I/O Server . You can find this information in the partition properties of the Virtual I/O Server , and the managed system properties of the server on which the Virtual I/O Server is located. To set the Logical Host Ethernet port (that is the real adapter of the Shared Ethernet Adapter ) to promiscuous mode, complete the following steps using the HMC : In the navigation area, expand Systems Management and click Servers . In the contents area, select the serve

check disk size in AIX

If you want to get the size of a disk (virtual or physical), you can use the AIX getconf command . getconf DISK_SIZE /dev/hdisk0 140013 The size is reported in MB, so the disk above is a 140 GB disk.

Rescan SAN Disk in VIOS

$ oem_setup_env #cfgmgr OR $cfgdev