Hi AIX learner,
Thanks for visiting my blog... this is my small blog and this may helpful to AIX learners. Most of the posts in this blog are came from my little work experience as AIX administrator.
For sharing better knowledge i wish to say everyone that please send good Documents or your experience in AIX to this e-mail id
praveenk.aix.4world ( at ) blogger.com
The E-mail send by you will be posted in this blog after review.
You can send text and images up to 10MB in size (No attachments).
please do not send any copy righted documents.
This blog is for you...
Now it's by you... be a part of it...
BEST WISHES...
Praveen K
Feel free to inform me about blog content and suggest how can we improve this blog by sending e-mail to
praveenk.aix.4world ( at ) blogger.com
and this information will not be published.
Thanks...
**************
USEFUL TIPS IN AIX
ls -l /home | sort -rn This displays files and directoris inside /home as per their size, larger file on top.
ls -l /home/* sort -rn This displays files and also the subdirectories in the /home/ directories as per their size, larger one on top.
Note: If /home dir. contains more than one dir. then it first shows all the directiory name and then the files inside the directories as per the directory order. The order is symlink, Directory name, file name.
du /home | sort -rn This also displays the subdirectories inside /home as per their size but not files.
du -m /home/test/smit.log This shows the size of the smit.log in MB.
-g=GB, -k=KB, without flag=shows in Block size.
ls -lrt | grep 'Jan 10' | awk '{print$9}' > namefile This is used to get only the file names dated Jan 2010 in a namefile
rm `cat namefile` To delete filenames mentioned in the namefile created by the above command.
To execute a command in a loop, i.e. in a certain intervals, put the small script in the shell
while i=
do
df -g /backup
sleep 3
done
in the above example this will show the size of /backup filesystem in each 3 seconds interval.
stty erase ^? To use backspace button to clear previous letters.
set -o vi To see previous executed commands using vi style
i.e. esc+ j=up, h=down, l=go right, g=go left, /string= search the command from history,
**********
lsnim To list the nim resources
lsnim -l dcmds To list the detailed info about the object dcmds
lsnim -O dcmds To list the operation dcmds object can support
lsnim -c resources dcmds To list the resources allocated to the machine dcmds
nimclient The client version of nim command (User can obtain same results of nim in server )
nimconfig -a pif_name=en0 -a netname=net1 To initialise the NIM master with network name net1
nimconfig -r To rebuild /etc/niminfo file which contains the variables for NIM
nim -o define -t lpp_source -a source=/dev/cd0 -a server=master -a location=/export/lpp_source/lpp_source1 lpp_source1 To define lpp_source1 image in /export/lpp_source/lpp_source directory from source cd0
nim -o define -t mksysb -a server=master -a location=/resources/mksysb.image mksysb1 To define mksysb resource mksysb1, from source /resources/mksysb.image on master
nim -o remove inst_resource To remove the resource inst_resource
nim -o check lpp_source1 To check the status of lpp_source lpp_source1
nim -o allocate -a spot=spot1 -a lpp_source=lpp_source1 node1 To allocate the resources spot1 and lpp_source1 to the client node1
nim -o bos_inst node1 To initialise NIM for the BOS installation on node1 with the allocated resources
nim -o dkls_init dcmds To initialize the machine dcmds as diskless operation
nim -o dtls_init dcmds To initialize the machine dcmds for dataless operation
nim -o cust dcmds To initialize the machine dcmds for customize operation
nim -o diag dcmds To initialize the machine dcmds for diag operation
nim -o maint dcmds To initialize the machine dcmds for maintenance operation
nim -o define -t standalone -a platform=rspc -a if1="net1 dcmds xxxxx" -a cable_type1=bnc dcmds To define the machine dcmds as standalone with platform as rspc and network as net1 with cable type bnc and mac address xxxxx
nim -o unconfig master To unconfigure nim master
nim -o allocate -a spot=spot1 dcmds To allocate the resource spot1 from machine dcmds
nim -o deallocate -a spot=spot1 dcmds To de allocate the resource spot1 from machine dcmds
nim -o remove dcmds To remove machine dcmds after removing all resources associated to it
nim -o reboot dcmds To reboot ther client dcmds
nim -o define -t lpp_source -a location=/software/lpp1 -a server=master -a source=/dev/cd0 lpp1 To define lppsource lpp1 on master at /software/lpp1 directory from source device /dev/cd0
********************