Skip to main content

Posts

Showing posts with the label AIX

IPTRACE FOR AIX

1.Run iptrace on AIX interface en2 to capture port 8080 traffic from a single client IP to Server ip. #iptrace -a -i en2 -s clientip -b -d serverip -p 8080 portcapture.out  This trace will capture both directions of the port 8080 to the file portcapture.out. 2.Validate the iptrace running. #ps -ef|grep iptrace 3.-Kill the process #kill <pid> -15  

HOW TO CONFIGURE SENDMAIL IN AIX OS (USING RELAYHOST MAILSERVER)

How to set sendmail in AIX Check if sendmail is running on the AIX Server     Run the following commands: #lssrc -s sendmail #ps -ef |grep sendmail Edit the sendmail.cf and you can add in the line DS #vi /etc/sendmail.cf Change: #DwYourHostName If the sendmail is not running you can start the service with the following command #startsrc -s sendmail -a "-bd -q30m" Validate that sendmail is running with a ps command #ps -ef |grep sendmail This should echo: root  5404     1   0 13:22:42      -  0:00 sendmail: accepting connections on port 25 - Ensure that the ‘sendmail’ daemon is started on reboot, comment in the ‘sendmail’ startup line in ‘/etc/rc.tcpip’ #vi /etc/rc.tcpip Comment in the following line: start /usr/lib/sendmail "$src_running" "-bd -q${qpi}" - Create an ‘/etc/netsvc.conf’ file, this is to tell sendmail to use ‘/etc/hosts’ for DNS #vi /etc/netsvc.conf Add the following: hosts=local,bind4 - Change t

How to manage AIX file system

Create a   file system with 10 Megabytes #crfs -v jfs2 -g testvg -a size=10M -p ro -m /fs2 Increase or resize a file system # lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 0004455666767777777777899990 e VG STATE: active PP SIZE: 128 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 579 (75672 megabytes) MAX LVs: 256 FREE PPs: 282 (36096 megabytes) LVs: 12 USED PPs: 317 (41576 megabytes) # chfs -a size=+10M /usr   Mount   CDROM #mount -v cdrfs -o ro /dev/cd0 /cdrom Mount   file system #mount /dev/fslv02   /test Remove a File System #rmfs /test Defrag a file system #defragfs /home  

How to Logical Volumes AIX OS

How do I increase the size of a logical volume? To increase the size of the logical volume represented by the lv05 directory by three logical partitions, for example, type: #extendlv lv05 3   How do I display all logical volumes that are part of a volume group (for example, rootvg)? You can display all logical volumes that are part of rootvg by typing the following command: #lsvg -l rootvg   How do I list information about logical volumes? Run the following command to display information about the logical volume lv1: #lslv lv1   How do I remove a logical volume? You can remove the logical volume lv7 by running the following command: #rmlv lv7   The rmlv command removes only the logical volume, but does not remove other entities, such as file systems or paging spaces that were using the logical volume. How do I mirror a logical volume? 1. mklvcopy LogicalVolumeName Numberofcopies 2. syncvg VolumeGroupName How do I remove a copy of a logica

How to replace a disk AIX OS

How do I replace a disk? 1. Extend the Volume Group #extendvg VolumeGroupName hdisk_new 2. Migrate the physical Volumes #migratepv hdisk_bad    hdisk_new 3. Reduce the Volume Group with disk with issues #reducevg -d VolumeGroupName hdisk_bad