Study notes for 3H0-002
(HP Certified HP-UX System Administration)
EXAM SPECIFICATIONS: |
3H0-002 |
Number of items |
80 |
Time allocated |
120 min |
Passing Criteria |
Pass each section with a score of 50% and an overall score of 70% |
SUGGESTED COURSES: |
|
Fundamentals of the UNIX System: |
51434S |
HP-UX System and Network Administration I: |
H3064S |
HP-UX System and Network Administration II: |
H3065S |
Notes:
i. Below notes is based on Fundamentals of the UNIX System v G.02, HP-UX System and Network Administration I v x.xx, HP-UX System and Network Administration II v x.xx.
ii. To make use of this study notes, please examine the books listed above well before reading this notes.
iii. CDE skills are not included in this exam.
iv. Labs in HP books after each chapter are very useful and important.
Dumped questions:
1. If /etc/lvmtab is removed or corrupt, which utility can be used to recover the file?
a. Lvminit
b. Pvscan
c. Lvscan
d. Vgscan
2. Which file can be used to deny remote access to a printer device on your computer?
a. /etc/rlp.conf
b. /etc/services
c. /var/adm/inetd.sec
d. $HOME/.rhost
3. The difference of “kill pid” and “kill –9 pid” is?
a. “kill pid” allows outstanding I/O complete, “kill –9 pid” will immediately aborts any outstanding I/O.
b. “kill pid” produces a core dump, “kill –9 pid” aborts any outstanding I/O.
c. No difference.
d. “kill pid” asks for confirmation, “kill –9 pid” immediately aborts I/O.
4. Which file is used to change local startup configuration script?
a. Directly edit configuration scripts.
b. /etc/system.conf.
c. /etc/rc.config.d
d. /dev/console
5. Which file is used to run “exportfs –a”?
a. /etc/xtab
b. /etc/rc.config.d/nfsconf
c. /etc/exports
d. /etc/fstab
6. The procedure to extend a mounted online HFS file system is?
a. Lvextend and extendfs
b. Umount, lvextend, extendfs and mount
c. Umount, lvextend, fsadmin and mount
d. Lvextend and fsextend
7. A JFS file system/dev/vg01/lvol1 reports error, you want to check integrity of the whole file system, how to do?
a. Remove all user using “fuser –ku” and “fsck –F vxfs /mountpoint”
b. “fsck –F jfs –o full –nolog /mountpoint”
c. Umount and “fsck –F vxfs /dev/vg01/lvol1”
d. Umount abd “fsck –F vxfs –o full –nolog /dev/vg02/lvol1”
8. What is the correct device file for a DAT device on SCSI instance 1, device address 3, with best compression mode and no rewind option?
a. /dev/rmt/c1t0d3BESTnr
b. /dev/rmt/c1t3d0BEST
c. /dev/rmt/c0t1d3BESTn
d. /dev/rmt/c1t3d0BESTn
9. After “alias dir=ls”, then when you use dir at command line, what will happen?
a. No effect
b. Error
c. Show “ls”
d. Run “ls”
10. Available memory refers to?
a. Memory after kernel loaded.
b. Total memory passed power-on self-test.
c. Total memory not been allocated by kernel and user process.
d. Available memory after shared memory allocated.
11. The default shell for HP-UX 11.0 is?
a. B shell
b. C shell
c. K shell
d. POSIX shell
12. HP-UX is derived from which system?
a. BSD system
b. AT&T System V
c. SUNOS v.2
d. IBM AIX
13. Which command can be used to check your current group information?
a. Who
b. whoami
c. test $0
d. ID
14. The function for groups in UNIX system is?
a. Assign permission for files to users
b. Assign permission for directories to users
c. Sort users by name
d. Assign permission for files and directories to users
15. Which command can NOT used to switch to your initial logon diretory?
a. Cd
b. Cd –
c. Cd ~
d. Cd $HOME
16. What will command “cp –r dir2 dir3” do if dir2 and dir3 are all directories?
a. Rename dir2 to dir3
b. Copy dir2 to dir3
c. Replace dir3 with dir2
d. Nothing, error will occur
17. Which action can be done by pressing “ESC” key twice in POSIX shell?
a. Exit current logon
b. Complete user input if possible
c. Display online help
d. Erase current command line
18. What is the default permission for new created files?
a. rw-r--r--
b. rwx------
c. r-xr--r--
d. rwxr-xr-x
19. What permission is required if you want to delete a file in a directory?
a. Write permission for the file
b. Execute permission for the file
c. Write permission for the directory
d. Execute permission for the directory
20. The token that end an “if” structure is?
a. Endif
b. Fi
c. Else
d. Done
21. The literal to include actions in a “while” structure is?
a. {…}
b. Do…done
c. Begin…end
d. Do…end
22. The literal to include actions in a “until” structure is?
a. {…}
b. do…done
c. begin…end
d. do…end
23. The literal to include actions in a “for” structure is?
a. {…}
b. do…done
c. loop…end
d. begin…end
24. The MAC access method for an 802.3 or Ethernet is?
a. TCP/IP
b. NFS
c. CSMA/CD
d. Token pass
25. If a host want to access remote hosts out of its own subnet, then which must be configured?
a. DNS server
b. NIS server
c. Gateway
d. Hostname
26. Which daemon must be run to use SD-UX?
a. Swagentd
b. Swlistd
c. Inetd
d. Installd
27. What method does HP-UX use to enhance security beside encrypted password?
a. Shadow password
b. Trusting computer base
c. Domain trusting
d. IP security
28. {}
29. Which command can return contents of variable A and B linked by “+”?
a. Echo ‘$A+$B’
b. Echo “$A+$B”
c. Echo $(A+B)
d. Echo $(A)+$(B)
30. Which command can return all files whose names are more than two characters and include a dot (except a leading dot) in current directory?
a. Ls *
b. Ls ?.*
c. Ls .?*
d. Ls *.?*
31. One command “contents” will return two words separated with blank, Which command can give only the first words?
a. Cat contents | cut
b. Cut –d2< contents
c. Trim contents –c2
d. Contents | cut –d2
32. Which file is used to find ports used for each service daemon?
a. /etc/hosts
b. /etc/portlist
c. /etc/service
d. /etc/portd
33. Which methods in HP-UX is NOT used when resolve host name?
a. DNS
b. NIS
c. NFS
d. /etc/hosts
34. Which command is used to copy a file to server in FTP?
a. Put
b. Send
c. Transfer
d. fcopy
35. What will CTRL-D do?
a. Copy screen
b. Clear screen
c. Terminate current session
d. Terminate current command
36. Which of the following statement is TRUE about root and hosts.equiv file?
a. Root use hosts.equiv before .rhost file
b. Root never use hosts.equiv file
c. Root use hosts.equiv after .rhost file
d. Root can never use hosts.equiv file
37. Which daemon is required if you wan to use ruptime “command”?
a. Rwho
b. Wuptime
c. Ined
d. NTP
38. Which variable can return number of command line parameters?
a. $?
b. $#
c. $!
d. $0
39. Which variable can return the whole command line parameters?
a. $*
b. $X
c. $x
d. $0
40. How to get the 16th command parameter in script?
a. ${10}
b. “$10”
c. ‘$10’
d. $(10)
41. How to get interactive user input within a script?
a. Wait
b. Read
c. Get
d. Input
42. Which of the following statement is true for ‘-eq” and “=”?
a. “–eq” is used for character test of NON-equality and “=” is used for string test of equality
b. “–eq” is used for number test of equality and “=” is used for string test of equality
c. “–eq” is used for string test of equality and “=” is used for number test of equality
d. No difference, they are two form of one sign and perform the same functions exactly.
43. What is the purpose of “exit” in shell script?
a. Get out of current loop and run next command
b. Get out of current script
c. Logoff current user logon
d. Return to the first line of the loop
44. What is the purpose of “continue” in shell script?
a. Get out of current loop and run next command
b. Get out of current script and run another script
c. Do nothing, just a sign
d. Return to the first line of the loop
45. What is the purpose of “break” in shell script?
a. Get out of current loop and run next command
b. Get out of current script and run another script
c. Raise a system hardware interruption
d. Return to the first line of the loop
46. Which sign is used to end a “case” structure?
a. endcase
b. end
c. esac
d. caseend
47. What “let x=x+2” means in a shell script?
a. Make x a string “x+2”
b. Increment x with 2
c. Make x a string by suffix “+2” to x
d. No use at all
48. Which format does SD-UX usually use to distribute software?
a. Tar files
b. Zip files
c. Plain files
d. Arj files
49. What is the default output of command “cpio”?
a. /dev/io
b. Standart output
c. /dev/rmt/rm0
d. /dev/dsk/vg00/lvol1
50. What command is usually used to generate file list to “cpio” command?
a. tar
b. find
c. search
d. cpio -f
51. Can non-root users set priority of jobs when submitting jobs?
a. Yes, use “cron” command
b. No, non-root users can not
c. Yes, use “nice” command
d. Yes, using “priority” command
52. Which shutdown level will “shutdown” command lead to by default?
a. 0
b. 1
c. s
d. S
53. Which users can use SAM?
a. Only root
b. Only root, bin, admin and daemon
c. All users
d. Root, and conducted users that root assigned
54. Which graphic tools for system administration does HP-UX provide?
a. Admin
b. UXamin
c. HPAdmin
d. SAM
55. When could command lpadmin install a printer on system?
a. All printers are offline.
b. The device file for the printer is ready
c. The target printer is online
d. Only in run level S or s
56. What can NOT be finished by using Lanadmin?
a. Reset statistics of all NICs
b. Reset all NICs to initial state
c. Find the host name mapping
d. View statistic of all NICs
57. How to extend size of an on-line JFS file system?
a. Umount and then extendfs
b. Disconnect all users and then extend
c. Umount and then fdadmin
d. Just fsadmin
58. Which command is used on client to synchronize time using NTP?
a. Ntpdate
b. Ntpsync
c. Ntptime
d. Ntplookup
59. Which suite does NTP belong?
a. BSD
b. ARPA
c. RISC
d. POSIX
60. Which file is NOT needed to setup s master DNS server?
a. Db.cache
b. Db.127.0.0.0
c. named.boot
d. Arpa-in-address
61. How to configure automounter to start at system startup?
a. /etc/service
b. /etc/automounter.conf
c. /etc/rc.config.d/netconfig
d. /etc/nfsconfig
62. Which file is used to configure NTP parameters for NTP clients and servers?
a. /etc/inetd
b. /etc/ntp.conf
c. /etc/netconfig
d. /etc/ntpconfiguration
63. You host’s IP address is 17.128.1.7 with a subnet mask of 255.255.0.0, then in your subnet, your network’s address and broadcast address should be?
a. 17.128.0.0 and 17.128.255.255
b. 17.128.0.0 and 17.128.128.255
c. 17.128.0.0 and 17.255.255.255
d. 17.255.0.0 and 17.255.255.255
64. Which command is used to check all MAC address of NICs installed on your system?
a. Ioscan
b. Lanscan
c. Lanadmin
d. Lanstat
65. The default PING packet size is on HP-UX?
a. 32 bytes
b. 64 bytes
c. 80 bytes
d. 128 bytes
66. The default DNS timeout for each DNS server?
a. 60s
b. 30s
c. 75s
d. 90s
67. If /stand/system file is corrupt or miss, what should you do to recover it?
a. Cp /stand/system.prev /stand/system
b. Run system_prep
c. Manually edit a new file
d. Reinstall system
68. Which command should be used to treat /stand/system when building new kernel?
a. Cp /stand/system /stand/system.prev
b. Kmupdate
c. Kmcopy
d. Mv /stand/system /stand/system/prev
69. Which command should be used to treat /stand/vmunix when building new kernel?
a. Cp /stand/vmunix /stand/vmunix.prev
b. Kmupdate
c. Kmcopy
d. Mv /stand/vmunix /stand/vmunix.prev
70. When scheduling an fbackup job, what is not needed?
a. Use “find” to create a file list.
b. Edit graphic file
c. Use crontab to schedule it
d. Specify an index file
71. What is NOT used when you create a device swap used when system start?
a. SWAPON
b. Pvcreate –R
c. Mount a mount point under /paging
d. Edit /etc/fstab
72. How to sync a slave NIS server on slave DNS server?
a. Ypxfr
b. Ypmake
c. Ypinit
d. Ypdo
73. Which file is used for DFS client to automatically mount remote NFS export?
a. /etc/service
b. /etc/hosts
c. /etc/fstab
d. /exports
74. Which file is used for DNS server to export DFS when system start?
a. /etc/fstab
b. /etc/exports
c. /etc/service
d. /etc/inetd
75. Which utility is used to view current status of lp daomon?
a. lpview
b. lpstat
c. lp
d. lp –display
76. How to display your IP address, netmask of your NICs?
a. ipconfig
b. ifconfig
c. netconfig
d. cat /etc/netconfig
77. What is the MTU for a 802.3 frame?
a. 64 bytes
b. 64K bytes
c. 1500 bytes
d. 3200 bytes
78. In which run level does CDE get available in HP-UX?
a. 1
b. 2
c. 3
d. 4
79. Which of the following script will be executed last when system turn from run level 1 to 2?
a. S110NFS
b. S176SNMP
c. K883NIS
d. S678SMB
80. Which file is used to contain the IP address, netmask and routing information on your computer in HP-UX?
a. /etc/inet
b. /etc/netconfig
c. /etc/config
d. /var/adm/sysconf
81. Which command is used to display and edit your cron jobs?
a. cron
b. crontab
c. cron –v
d. cron
82. When you try to access a mounted remote NFS file system, you meet a “stale handle” error, then what might be the reason of the error?
a. On NFS server, the file system is unmounted without notice.
b. On NFS server, the NFS file system is unexported without notice.
c. The NFS daemon on client is shutdown.
d. You have no access right any more.
83. Which of the following commands should you use if you want to add an entry in routing table to 194.138.0.0 using gateway 200.200.111.1?
a. Route add 194.138.0.0 200.200.111.1 1
b. Route add 200.200.111.1 194.138.0.0 1
c. Route add 194.138.0.0 200.200.111.1 0
d. Route add 200.200.111.1 194.138.0.0 0
84. What is the default UID reserved for account “anonymous” in HP-UX?
a. –2
b. –1
c. 0
d. 3
85. What is the smallest manageable unit of a software suite distributed by SD-UX?
a. product
b. fileset
c. packet
d. files
86. Which line is NOT legal in .rhost and host.equiv files?
a. Tony
b. +tony
c. tony, wang, -lee
d. tony, mark
87. In which run level does NFS Server service start by default in HP-UX?
a. 0
b. 1
c. 2
d. 3
88. In which run level does NFS client service start by default in HP-UX?
a. 0
b. 1
c. 2
d. 3
89. Which command is NOT used when you deal with swap?
a. Swapon
b. Swapoff
c. Swapinfo
d. Lvcreate –R
90. When will you use a transceiver?
a. When you need to parse account password in cable?
b. When you want to connect two subnets?
c. When your NIC’s connector is not compatible with current network cable
d. When you want to use Fiber Optical
91. If you have other BUS on your system than RISC BUS then what will be used to connect HP BUS to other non-RISC bus?
a. Bus converter
b. Bus adapter
c. Device Adapter
d. Device controller
92. What PA-RISC means?
a. AN UNIX-alike OS
b. An extension for RISC
c. An HP processor
d. An programming language designed for RISC system
93. What will “find . –name mark” result?
a. Display all files named mark in current directory only
b. Display all files owned by mark in current directory only
c. Recursively display all files named mark in current directory and below
d. Recursively display all files owned by mark in current directory and below
94. How many DNS Name Servers are supported by default?
a. Unlimited
b. 256
c. 3
d. 2
95. Which file is used to save DNS Server configuration?
a. /etc/nsresolver
b. /etc/netconfig
c. /etc/host
d. /etc/named
96. What does ‘chown” command do?
a. Reset password
b. Change owner of files and directories
c. Change user information by users themselves
d. Change time zone
97. What is the limit range of a 10baseT cable?
a. 185m
b. 50m
c. 200m
d. 100m
98. What is the limit range of a 10base2 cable?
a. 185m
b. 60m
c. 500m
d. 45m
99. What is the limit range of a 10base5 cable?
a. 250m
b. 185m
c. 100m
d. 500m
100. After newly built kernel loaded, system halt, then what should you do?
a. Manually boot using recover boot tape
b. Reinstall system using “-fast” switch
c. Manually boot using /stand/vmunix.prev
d. Boot system using –recovery settings
101. Which command is used to make a boot tape?
a. Recovery_make
b. Make_revocery
c. Boottape
d. Makeboottape
102. How to display information for all physical volumes in a volume group?
a. pvdisplay –all
b. lvdisplay
c. vgdisplay
d. pvscan
103. What is the recommended way to redirect standard output and standard error to one file for command “ls”?
a. Ls 1>log.out 2>log.out
b. Ls 1>log.out 2>$1
c. Ls 1&2>log.out
d. Ls 1>2>log.out
104. How to trim administrative log files for system?
a. Rm /var/adm/systemlog.log
b. > /var/adm/systemlog.log
c. rm /var/adm/systemlog.log and touch /var/adm/systemlog.log
d. Cat /var/adm/systemlog.log
105. Which of the following is true about NFS?
a. You can export only /opt, not its sub directories.
b. You can export not only /opt but its sub directories.
c. You can share /stand.
d. You can share /usr/bin
106. Which of the following must be on a HFS file system?
a. / and /stand
b. / only
c. /stand only
d. /stand, / and /usr.bin
107. Which of the following commands can display usage percent and free volume of all file systems?
a. Du
b. Bdf
c. Diskinfo
d. Ls
108. Which of the following command can recursively display the size of all directories?
a. Du
b. Bdf
c. Diskinfo
d. Ls
109. Swap sub-subsystem_______ swap space for newly created process?
a. Allocate
b. Reserve
c. Assign
d. Create
110. Which file is used to prevent lp daemon from running multiple instances of copies?
a. lpconf
b. SCHEDLOCK
c. Netconfig
d. Inetd.conf
111. Which command can show your current run level?
a. Init –l
b. Who –r
c. Stat
d. View
112. Which of the following statement is TRUE?
a. In HP-UX, a driver can be added and function only though a restart
b. IN HP-UX, you have to manually create all device files for new device
c. In HP-UX, DLKM drivers can be loaded dynamically without restart
d. In UP-UX 11.0 all drivers can be dynamically add or remove without restart
113. What is the default inode number for “/”?
a. 0
b. 1
c. 2
d. 3
114. Which file is used to automatically mount file systems when start up?
a. /etc/exports
b. /etc/fstab
c. /etc/mount
d. /etc/mountd
115. Which file is used to display all network sessions?
a. Nbtstat
b. Netstat
c. Ping
d. Lanscan
116. Which feature belongs to DFS?
a. Connection-oriented
b. Stateless
c. Packet switching
d. Multi-tier
117. How to retrieve detailed information about a physical disk?
a. Bdf
b. Diskinfo
c. Du
d. Inscan
118. Which of the following statement is NOT true about mount?
a. If you mount a file system to an directory, all files in the directory will be inaccessibility unless you unmount the file system
b. If you mount a file system to an directory, all files in the folder will be deleted
c. You cannot not mount file systems to a directory already being accessed by users
d. You can mount not only local file system, but remote file system
119. What is a socket?
a. A coupling of a client MAC address and a server MAC address
b. A coupling of a client IP address and a server IP address
c. A coupling of an IP address and a port number
d. Two related IP address used for client and server communication
120. What is a socket connection?
a. The socket method for CPU or other peripherals
b. A coupling of a client socket and a server socket
c. Two client socket combined to show services
d. Two server socket combined to show services
121. The first time system starts, which utility will set 127.0.0.1 and local host name in /etc/hosts?
a. Netconfig
b. Ifconfig
c. Set_parms
d. Id
122. Which port is always used by portmap and rpcbind?
a. 135
b. 111
c. 120
d. 144
123. Which of the following statement is NOT true for NFS?
a. You can only export local file system, remote mounted file system cannot be export again
b. You can export file systems, directories or files
c. You can export one file system more than once
d.
124. Which basis does the location of “lost+found” directory based on?
a. Per UP-UX system
b. Per physical volume
c. Per physical disk
d. Per file system
125. What is the largest file system size and file size in HP-UX?
a. 128G, 2G
b. 128G, 128G
c. 2G, 2G
d. unlimited, unlimited
126. Which file is used by a NFS server to check all connected NDF clients?
a. /etc/exports
b. /etc/fstab
c. /etc/xmtab
d. /etc/nfstab
127. Which command is used to display all connected DFS client?
a. Showmount –e
b. Showmount
c. Showmount –a
d. Showmount stat
128. What does “which” command do?
a. Find the location of a command
b. Find the version that a command will run
c. List attributes of a file
d. Display all logon users
129. Which command can help you to determine the location of a command?
a. Which
b. Whereis
c. Version
d. File
130. Which command is used to configure a slave DNS server?
a. Hosts_to_name -m
b. Hosts_to_named –s
c. Host_to_named
d. Dnsinit
131. The does DNS return
132. cron.allow, cron.deny
133. The contents of /etc/passwd?
134. NIS right in /etc/exports?
135. 2000,8000
136. How to sync a slave DNS server on slave DNS server?
a.
137. [notfound= contiune]
138.