Skip to content

{ Monthly Archives } July 2011

Implementing ISCSI on AIX with NAS system

first you have to check software  # lslpp -l |grep -i iscsi   devices.common.IBM.iscsi.rte                              5.3.8.0  COMMITTED  Common iSCSI Files   devices.iscsi.disk.rte     5.3.7.0  COMMITTED  iSCSI Disk Software   devices.iscsi.tape.rte    5.3.0.30  COMMITTED  iSCSI Tape Software   devices.iscsi_sw.rte       5.3.8.0  COMMITTED  iSCSI Software Device Driver                             5.3.0.50  COMMITTED  IBM 1 Gigabit-TX iSCSI TOE   devices.pci.14102203.rte   5.3.7.0  COMMITTED  IBM […]

Tagged

display the boot paths from which AIX can boot

# bootlist -m normal -rv ‘ibm,max-boot-devices’ = 0x5 NVRAM variable: (boot-device=/vdevice/v-scsi@30000003/disk@8200000000000000:2 /vdevice/v-scsi@30000004/disk@8200000000000000:2) Path name: (/vdevice/v-scsi@30000003/disk@8200000000000000:2) match_specific_info: ut=disk/vscsi/vdisk hdisk1 blv=hd5 Path name: (/vdevice/v-scsi@30000004/disk@8200000000000000:2) match_specific_info: ut=disk/vscsi/vdisk hdisk1 blv=hd5

Tagged

create user with long login names more than 10 characters

# chdev -l sys0 -a max_logname=13

Tagged

view dump devices on AIX

# sysdumpdev -l primary              /dev/hd7.0 secondary            /dev/sysdumpnull copy directory       /var/adm/ras forced copy flag     TRUE always allow dump    FALSE dump compression     ON

Tagged

delete incorrect default route on AIX

You can look with command “netstat -nr” then you can delete with command: chdev -l inet0 -a delroute=net,-hopcount,0,,0,192.168.45.1 (delete GW 192.168.45.1)

Tagged

remove files older than 7 days

we can use a simple one line for this: #!/bin/sh VERZ=”/home/cobackup/wiki/” ALTER=”7″ cd $VERZ find . -mtime +$ALTER -exec rm {} \; and we can edit crontab  running this script every day 0 22 * * * /bin/sh /root/scripts/delfile.sh > /dev/null 2>&1

Tagged

How to change the Hostname of a Linux system

Change the hostname on a running system On any Linux system you can change its hostname with the command ‘hostname‘ (surprised?)… Here are some quick usages of the command line hostname: hostname without any parameter it will output the current hostname of the system. hostname –fqd it will output the fully qualified domain name (or […]

Tagged

Database Encryption in SQL Server 2008

activate Transparent Data Encryption unter SQL Server 2008 we connect  the database “myselim”.First we need to create  Service Master Key (SMK). Therefor  we use command  ” USE master ” in master database  and then we give these statement : 1.) CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘Passwort’   2.) we need to create certificate for […]

Tagged

label new tapes for library

here is 30 Tapes (between 070-099) labeled. label libv library_name  search=yes volr=024070,024099 checkin=scratch devtype=3590 overwrite=yes

Tagged

find out current firmware level on AIX

To find out the current firmware level, use one of the following two options. Any user can issue these commands. Upgrading the firmware is a task normally done by the AIX administrator. 1. Use the lscfg command # lscfg -vp | grep -p “ROM” Gigabit Ethernet-SX PCI-X Adapter: Part Number……………..00P4499 FRU Number………………00P4499 EC Level………………..H12510 Manufacture […]

Tagged