Mid Term test: By:deep

1, Which command allows you to browse through the contents of a file a page at a time? # more <filename> Or #pg <filename> Or #less <filename> 2, There is a file /usr/tool/util/myfile1. Write the command to rename the file to myfile2. #cd /usr/tool/util # mv myfile1 myfile2

3, There is a file /usr/tool/util/myfile1. Write the command to move myfile1 to /usr/es/tool/util dir. # mv /usr/tool/util/myfile1 /usr/es/tool /util Or #Cd /usr/tool/until #mv myfile1 /usr/es/tool/until 4, List all rootlv with their respected filesystems and list what each one of them are used for. #lsvg –l rootvg

Rootlv
Hd1 Hd2 Hd3 Hd4 Hd5

filesystems
/home /usr /tmp /(root) /boot hd10 AND hd8 /log /var hd9var /opt

Hd6

/paging

5, how to list all configured paging spaces in the system? #lsps –a 6, List two commands to list all configured network adapters (NIC) in the system. # netstat -i # ifconfig –a 7, What is the smitty short path to change an IP address on an adapter? #smitty tcpip 8, what is command to list only hardware (HW) related errors from the errpt? #errpt -a 9, How to stop and restart the TCP/IP subsystem? #stopsrc –s <daemon name or subsystems name> #startsrc –s <daemons name or subsystems name> 10, List the commands to check the system health. (This list of commands display any broken filesets or links.) #prtconf |more (gives lots of information related to the systems) #errpt #lsmcode #lsdev #lsattr #ifconfig #sysdumpdev #netstat – [I , r,a rn …] #lvm commands for the lvm problems and so on There are many commands regarding to the specific health problems of the systems. 11, Sys Admin is having problem and calls IBM support. IBM support requests the system configuration image. How does the admin create compressed snapshot of the system? How to remove any previously created snapshot? #snap -c (to create compressed snapshot of the systems)

#snap -r {to remove previously created snapshot} 12, What command is used to list currently installed Operating system, and patch level? #oslevel and oslevel –qs 0r oslevel -q -s

13, What is the command display network statistics and also displays the adapter's HW address? #netstat –i 14, how list all NFS exported filesystems? #showmount -e {server name} 15, what is the smitty short path to configure/start NFS services? #smitty mknfs Or #mknfs -n (by command line to run all the nfs daemons)

16, what NFS services should be running on NFS server and what services should be running on NFS client. # nfs server =nfsd and rpc.mountd daemons #nfs client =biod daemon and mount command 17, what is the command to create a system backup to /dev/rmt3? # mksysb –i /dev/rmt3 18, rootvg is currently on hdisk0 How to mirror a rootvg to hdisk1, which is already part of rootvg? #mirrorvg –c 2 rootvg hdisk1 #bosboot -ad /dev/hdisk1 (to mirror the hd5 i.e. bootimiage) #bootlist –m normal - o (to see the booting devices or listof booting devices) #bootlist –m normal hdisk1 hdisk0 (to set or change or update the bootlist) #bootlist –m normal -0 ( to confirm the final booting devices) 19, There is a file called mydoc.tar. how to untar the data of that file? #tar –xvf mydoc.tar

20, how to list a device detail? For example listing the details for network adapter ent0. #lsattr –El ento 21, what is the command to list AIX (network) routing table? #netstat –r Or #netstat -rn 22, what is the command to list current bootlist and update/change bootlist? #bootlist -m normal –o #bootlist –m normal (sequences of devices name i.e. hdisk0, hdisk2, cd0 ……) 23, what is the command to list VGDA information from a disk? #lqueryvg -Atp (drive name) 24, what is the command to move all allocated PPs (LVS) from hdisk0 to hdisk2? What is the command to move oralv from hdisk0 to hdisk22? #migratepv hdisk0 hdisk2 #migratepv -l oralv hdisk0 hdisk22 25, what are the steps to export an active volume group that has mounted filesystems? #steps are as follows 1.unmount filesystems 2.varyoff volume group by (varyoffvg vgname) 3.export volume group (exportvg vgname) 4.importvg –y vgname drivename(i.e.importvg –y vgname hdisk1 …….)

26, volume group datavg has hdisk5, hdisk6, hdisk7. How do you take out hdisk7 from datavg? Now, how do you add it back to the datavg. #reducevg datavg hdisk7 #rmdev –dl hdisk7 #physically remove the hdisk7 from there #to put the drive back

if the system is not hotswappable ,reboot the system. 1.put the drive back 2.Run cfgmgr command 3.Extendvg datavg hdisk7 4. lsvg -p datavg (to check the datavg extends to hdisk7) 27, what are the benefits of JFS2 file systems? Size =4PB but jfs =1TB filesize=4PB but jfs=64GB Dynamic but jfs fixed 28, what type of software RAIDs are supported on AIX and explain what each one them do. Aix supports the RAID0, RAID1 ,and RAID10 So RAID0 =stripping(it is the way of providing high performances in large sequentially access file systems.it means , in the data writing phase each data are chopped into small pieces called strip and these chunks are written to the different drives in parallel and in the data reading phase each datas are read from the different drives and re-assemble to the actual data. RAID1=it is the way of having two or three copies of data for high availability requirements.The basic concept of this is just keep the data in the different drives to prevent the possibility of the data loss in the case of the drives block failure. RAID0+1 (10)=it gives both performance as well as availability but it is expensive. 29, filesystem /oracle/oradata is corrupted and needs to be cleaned up. What are the steps? #i would unmount the filesystems and run #fsck /oracle/oradta 30, what is the command to list Logical Volume Control Block of an LV? #getlvcb –At< lvname> 31, how to list currently configured system dump destination/setting? #sysdumpdev -l

THE END