Posts Tagged ‘AIX’
Tuesday, August 28th, 2018
Sometimes AIX Admin need to be sure that the System is connected to different SAN Switch for more redundancy and stability.
Follow below steps to check SAN Switches from AIX Side:
# lsdev |grep fc
fcs0 Available 24-T1 Virtual Fibre Channel Client Adapter
fcs1 Available 24-T1 Virtual Fibre Channel Client Adapter
# lsattr -El fscsi0 |grep -i scsi_id
scsi_id 0xdf0707 Adapter SCSI ID False
# lsattr -El fscsi1 |grep -i scsi_id
scsi_id 0xde0718 Adapter SCSI ID False
Continue Reading…
Tags: AIX, fcs, fscsi, redundancy, SAN, stablilty, Switch
Posted in AIX | No Comments »
Wednesday, April 11th, 2018
You can use the following command to change Specific string on all files under specific directory:
find /u01/directory -type f | xargs perl -pi~ -e ‘s/oldtext/newtext/g;’
Tested on Linux & AIX
Ref:
https://blogs.oracle.com/rammenon/recursively-replacing-a-string-in-all-files-in-a-directory-linux
Tags: AIX, linux, Recursive, replace, script, string, xargs
Posted in AIX, Linux, Shell Script | No Comments »
Sunday, August 20th, 2017
Hello Everybody …
Sometimes for performance recommendations or redundancy solutions, you will need to change some parameters on fibre card, like fc_err_recov & dyntrk
TEST_SERVER#lsattr -El fscsi0
attach none How this adapter is CONNECTED False
dyntrk yes Dynamic Tracking of FC Devices True+
fc_err_recov delayed FC Fabric Event Error RECOVERY Policy True+
scsi_id Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True
Continue Reading...
Tags: AIX, card, chdef, chdev, class, device, efscsi, fibre, iocb, network, odm, subclass, type
Posted in AIX | No Comments »
Sunday, August 20th, 2017
Hello Everybody,
The following lines are a for loop script to display disks info @ AIX System (Disk Name, Disk Unique ID, Disk Size in MB) and of course you can customize the data by add more columns:
Continue Reading…
Tags: AIX, awk, bootinfo, Disks, lscfg, lspv, script, serial, shell
Posted in AIX, Shell Script | No Comments »
Wednesday, January 13th, 2016
If your work on AIX System (or any other UNIX/Linux Distribution), may be you face the following Message when you try to access SFTP:
Couldn't canonicalise: Permission denied
Need cwd
after many troubleshooting :
– user can access SSH without any problem.
– user can’t access SFTP
– you can switch on this user normally.
Continue Reading…
Tags: AIX, canonicalise, cwd, denied, Permission, sftp
Posted in AIX | No Comments »
Tuesday, November 17th, 2015
Sometimes when you try to mount file system (NFS) you will get the following Error:
#mount -o rw server1:/dir /bk
mount: 1831-008 giving up on:
server1:/dir
vmount: Operation not permitted.
Continue Reading…
Tags: 008, 1831, AIX, mount, nfs, nfso
Posted in AIX | No Comments »
Thursday, November 5th, 2015
IBM AIX has a 3 Edition (Standard, Express, Enterprise) and you can check the installed edition on you server by the following command:
/usr/sbin/chedition -l
and you can check the difference between each edition from the following Link:
http://www-03.ibm.com/systems/power/software/aix/v61/editions.html
Tags: AIX, edition, enterprise, express, standard
Posted in AIX | No Comments »
Thursday, February 19th, 2015
Use the following command to rename a device:
# rendev -l hdisk4 -n hdisk53
where the ‘hdisk4’ is your device and ‘hdisk53’ is the new name.
HINT: The device must be free
Tags: AIX, device, rename, rendev
Posted in AIX | No Comments »
Thursday, February 19th, 2015
Here are the commands related to error demon in AIX
To stop logging run the below command
#/usr/lib/errstop
To get rid of that log.
# rm /var/adm/ras/errlog
To restart the daemon, thus creating a new error log
Continue Reading…
Tags: AIX, demon, errdemon, errpt, log, logging
Posted in AIX | No Comments »