Review Questions and Answers

1. 

You are the Solaris print administrator for your company. You have one print server named print01. It has two printers installed, saba and masu. The saba printer is having problems printing, so you prevent it from accepting new print jobs and disable it from printing. Now you want to move all print jobs sitting in the saba print queue to the masu printer. Which command will you need to use to accomplish this?

  1. lpdest saba misu

  2. lpdest misu saba

  3. lpmove saba misu

  4. lpmove misu saba

c. to move print jobs, use the lpmove command. the syntax is lpmove from_printer to_ printer . in this case, because you are moving jobs from saba to masu , the answer is lpmove saba masu .

2. 

You are the Solaris administrator for your company. Instead of using the root account, you log in using a regular user account to check the viability of the crontab feature. When you execute the crontab command, you get the following message:

 crontab: you are not authorized to use cron. Sorry. 

Which of the following could this message indicate? (Choose all that apply.)

  1. Neither a cron.allow nor a cron.deny file exists.

  2. Both the cron.allow and cron.deny files exist; the user account that you are using is not listed in cron.allow.

  3. The user account that you are using is listed in the cron.allow file, but a cron.deny file does not exist.

  4. The user account that you are using is listed in the cron.deny file.

a, b, d. if cron.allow and cron.deny do not exist, only the superuser is allowed to create crontab files. if a cron.allow exists, only users listed in that file are allowed to use crontab . if there is no cron.allow , but there is a cron.deny , users in cron.deny are prevented from using crontab .

3. 

You are the Solaris systems administrator for your company. You are creating user initialization files and want to specify default printers for all users. Which two variables are valid for indicating a default printer for users using the Korn shell (ksh)? (Choose two.)

  1. PRN

  2. LPDEST

  3. PRINTER

  4. LPR

  5. LP

b, c. lpdest and printer are two acceptable environment variables for setting a user's default printer.

4. 

You are the Solaris administrator for your company. One of the junior administrators notices slow printing on one print server. She wants to move the print spooler onto a slice with more space for the file system. Which file in Solaris represents the print spooler?

  1. /etc/lp/spool

  2. /var/lp/spool

  3. /var/spool/lp

  4. /var/spool/print

c. the print spooler is located in the /var/spool/lp directory.

5. 

You are working on a Solaris network. Before you print your 100-page report, you want to make sure that you're printing to the correct printer. Which of the following commands can you use to see which printer is set as your default printer?

  1. lpadmin -D

  2. lpadmin -d

  3. lpstat -D

  4. lpstat -d

d. the lpstat -d command will return the name of your default printer. the lpstat -d command returns the printer's description (the -p printer_name switch would be required also). the lpadmin command is for administering printers.

6. 

You are the Solaris printer administrator. One of your print servers is having problems, and you want to locate the server's print history logs. Which two of the following files are you looking for? (Choose two.)

  1. /var/lp/logs/requests

  2. /var/lp/logs/lpsched

  3. /var/lp/logs/history

  4. /var/lp/logs/print

a, b. the two print history logs are /var/lp/logs/requests and /var/lp/logs/lpsched . the requests log holds historical print requests, and the lpsched log contains information about print jobs currently in the print queue.

7. 

You are the Solaris administrator for your company. You need to add a new parallel printer to the print server and will be doing it from a command line. The print server's name is server1, and the printer's name is tako. Which of the following commands can you use to add the new printer?

  1. lpadmin -p tako -v /dev/ecpp0

  2. lpadmin -p tako -S server1 -v /dev/ecpp0

  3. lpadmin -p tako -v /dev/term/a

  4. lpadmin -p tako -S server 1 -v /dev/term/a

b. the lpadmin command is used to add and manage currently installed printers. to add the new printer, you must specify the printer's name and the port to which the printer will be attached. the designation for the first parallel port is /dev/ecpp0 or /dev/printers/0 .

8. 

You have just installed a printer named hokkigai onto your Solaris print server from the command line. You have configured the printer correctly and told the printer to accept print requests. Users are submitting requests, but nothing is printing. You investigate and find all the print jobs sitting in the print queue. The users are receiving no error messages when submitting print jobs. Which of the following should you do first to rectify the situation?

  1. Run the accept hokkigai command from the print server.

  2. Run the enable hokkigai command from the print server.

  3. Stop and restart the print spooler with the lpshut and lpsched commands.

  4. Delete and reinstall the hokkigai printer from the print server.

b. when you install a printer from the command line, you must configure the printer to accept print jobs and then enable the printer to print those jobs. this is done with the accept and enable commands, respectively. stopping the print spooler and restarting it will do no good. deleting and reinstalling the printer is unnecessary and too much work at this point.

9. 

You are the Solaris administrator for your company. A process named abc1, with a PID of 555, is consuming a considerable amount of processor time and appears to be hung. Which of the following commands would unconditionally stop the abc1 process? (Choose all that apply.)

  1. kill -9 abc1

  2. kill -9 555

  3. pkill -9 abc1

  4. pkill -9 555

  5. pkill abc1

  6. pkill 555

b, c, d. the kill and pkill commands are used to kill running processes. with the kill command, you can specify only the pid number, not the process name. the pkill command understands pids and process names. however, without an argument, the pkill command sends signal 15 (sigterm), which attempts a graceful, not an unconditional, termination of the process.

10. 

You are the network administrator for your company. The company has three laser printers, one of which is badly overworked and two of which are mostly idle. What should you do to help remedy this situation?

  1. Install all three printers on one print server. Instruct users to print by using the print server's name instead of the individual printer names.

  2. Install one print spooler for all three printers. Inform users that when they print, they can print to the printer they are used to using, but the print output might appear on any of the three printers.

  3. Install all three printers into one printer class. Instruct users to print to the printer class instead of printing to the individual printer names.

  4. Install all three printers into one printer group. Instruct users to print to the printer group instead of printing to the individual printer names.

c. this is the perfect situation for a printer class. all three printers can be placed in the same class. when users print to the class, their output will be equally shared among the individual print devices. for the class to work, all three printers must be defined on the same print server, but users will not specify the name of the print server in order to print. printer groups do not exist.

11. 

You are the Solaris administrator for your company. One of your printers is being replaced. The printer's name is hamachi and will be replaced by a printer named buri. Which of the following commands should you use to delete the old printer from the print server?

  1. lpadmin -d hamachi

  2. lpadmin -x hamachi

  3. lpadmin -d hamachi -p buri

  4. lpadmin -x hamachi -p buri

b. the lpadmin -x command is used to delete printers from a print server. there is no need to specify the name of the printer that you are going to install.

12. 

You are a Solaris administrator for your company. One of the other network administrators has output from a crontab file and needs help deciphering it. Here is the output:

 30 5 * * * /usr/sbin/logadm 10 1 * * 4 /usr/lib/fs/nfs/nfsfind 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1 

Which of the following statements are true about this crontab output? (Choose all that apply.)

  1. The logadm command is executed at 5:30 P.M. daily.

  2. The nfsfind command is executed on October 1st each year.

  3. The rtc command is executed at 2:01 A.M. daily.

  4. The rtc command has a priority of 1, the nfsfind command has a priority of 10, and the logadm command has a priority of 30.

  5. Each of the programs is executed once, except for nfsfind, which is executed four times.

c. only the third statement is true: the rtc command is run at 2:01 a.m. daily. the first five fields of a crontab file are time and date fields. in order, they are minute, hour, day of the month, month, day of the week.

13. 

You are the Solaris printer administrator for your network. One of your print servers, named print01, has a printer named hirame installed on it. Users printing to hirame complain that nothing is printing. You determine that the printer is powered on and online, and by running the lpstat command, you determine that the printer is enabled and ready to print. However, jobs are sitting in the print queue and not printing. Which course of action should you take to solve this problem?

  1. Stop the print spooler with the lpshut command and restart it with the lpsched command.

  2. Enable the printer to print by using the enable hirame command.

  3. Enable the printer to print by using the accept hirame command.

  4. Delete the hirame printer and reinstall it by using the lpadmin command.

a. in a case such as this, it might be best to reset the print spooler by stopping and restarting it. the printer is enabled, so there is no need to rerun the enable command. because the printer is accepting print jobs, there is no need to run the accept command. deleting and reinstalling the printer is overkill, and all pending print jobs would be lost.

14. 

You are the Solaris administrator for your company. You are configuring an in-house Solaris 9 print server. All users on your network will use this print server. Which of the following directories contains information on the print server's printer configurations?

  1. /etc/lp

  2. /usr/lib/lp

  3. /usr/lib/print

  4. /var/spool/lp

a. the /etc/lp directory contains information about print server configuration. both /usr directories contain print daemons, and /usr/lib/lp contains print filters and the standard printer interface program. the /var/spool/lp directory is the print spool directory.

15. 

To help distribute the printing load on your network, you are going to create a printer class. The first printer that you are adding to the sushi printer class is named toro. Which command do you need to use to add this printer to the printer class?

  1. lpadd -p toro -c sushi

  2. lpclass -p toro -c sushi

  3. lpadmin -p toro -c sushi

  4. lp -p toro -c sushi

c. the lpadmin command is used to create printer classes and add printers to printer classes. to add the printer to the printer class, you need to know the name of the printer you're adding (specified with the -p switch) and the name of the class (specified with the -c switch). therefore, the correct command would be lpadmin -p toro -c sushi .

16. 

You are the Solaris administrator for your company. Instead of using the root account, you log in using a regular user account to check the viability of creating at jobs. When you execute the at command, you get the following message:

 at: you are not authorized to use at. Sorry. 

Which of the following could this message indicate? (Choose all that apply.)

  1. Neither an at.allow nor an at.deny file exists.

  2. Both the at.allow and at.deny files exist; the user account that you are using is not listed in at.allow.

  3. The user account that you are using is listed in the at.allow file, but an at.deny file does not exist.

  4. The user account that you are using is listed in the at.deny file.

d. to deny users access to the at command, place their usernames in the at.deny file. there is no at.allow file.

17. 

You are the Solaris printer administrator for your network. You are configuring fault recovery for the printer named tako. When a fault is detected, you want the printer to restart the printing of the document from the first page. Which of the following commands should you use to configure this properly?

  1. lpadmin -p tako -F restart

  2. lpadmin -p tako -F start

  3. lpadmin -p tako -F front

  4. lpadmin -p tako -F beginning

d. the correct option to supply with the -f switch for starting over at the beginning of a job is beginning . other options for -f are continue and wait .

18. 

Which of the following statements best describes the relationship between crontab and at jobs?

  1. Both crontab and at are designed to run multiple jobs on a regular schedule.

  2. Both crontab and at are designed to run one job one time.

  3. crontab is designed to run multiple jobs on a regular schedule, and at is designed to run one job one time.

  4. crontab is designed to run one job one time, and at is designed to run multiple jobs on a regular schedule.

c. crontab is for running jobs on a periodic schedule, whether it is daily, weekly, monthly, or on a specific day once per year. the at command is much simpler and will run a job or a series of jobs only once.

19. 

You are the Solaris administrator for your network. You are educating other administrators about processes and priorities. As an example, you use the following command:

 # /usr/bin/nice process1 

What does executing the command accomplish?

  1. The command raises the nice number of process1 by four, thereby increasing the priority of process1 by four.

  2. The command raises the nice number of process1 by four, thereby decreasing the priority of process1 by four.

  3. The command lowers the nice number of process1 by four, thereby increasing the priority of process1 by four.

  4. The command lowers the nice number of process1 by four, thereby decreasing the priority of process1 by four.

b. the nice command is used to modify a process' nice number. by default, the nice command with no arguments raises the nice number by four. raising the nice number means that the process will be `nicer` to other processes (by yielding more processor time) and therefore have a lower priority.

20. 

You are the Solaris printer administrator for your network. A printer named tobiko will bemoved from one print server to another. You want to prevent users from submitting jobs to the printer, but you also want submitted jobs to print before you turn off the printer. Which of the following commands should you use to accomplish this goal?

  1. disable tobiko

  2. reject tobiko

  3. stop tobiko

  4. /etc/init.d/lp stop

b. to prevent a printer from accepting print requests, use the reject command. the disable command would stop the printer from printing, and the stop command does not exist. the last answer, /etc/init.d/lp stop , would stop the entire lp print service, causing tobiko to stop printing, as well as affecting other printers that might be attached to the print server.

Answers

1. 

C. To move print jobs, use the lpmove command. The syntax is lpmove from_printer to_ printer. In this case, because you are moving jobs from saba to masu, the answer is lpmove saba masu.

2. 

A, B, D. If cron.allow and cron.deny do not exist, only the superuser is allowed to create crontab files. If a cron.allow exists, only users listed in that file are allowed to use crontab. If there is no cron.allow, but there is a cron.deny, users in cron.deny are prevented from using crontab.

3. 

B, C. LPDEST and PRINTER are two acceptable environment variables for setting a user's default printer.

4. 

C. The print spooler is located in the /var/spool/lp directory.

5. 

D. The lpstat -d command will return the name of your default printer. The lpstat -D command returns the printer's description (the -p printer_name switch would be required also). The lpadmin command is for administering printers.

6. 

A, B. The two print history logs are /var/lp/logs/requests and /var/lp/logs/lpsched. The requests log holds historical print requests, and the lpsched log contains information about print jobs currently in the print queue.

7. 

B. The lpadmin command is used to add and manage currently installed printers. To add the new printer, you must specify the printer's name and the port to which the printer will be attached. The designation for the first parallel port is /dev/ecpp0 or /dev/printers/0.

8. 

B. When you install a printer from the command line, you must configure the printer to accept print jobs and then enable the printer to print those jobs. This is done with the accept and enable commands, respectively. Stopping the print spooler and restarting it will do no good. Deleting and reinstalling the printer is unnecessary and too much work at this point.

9. 

B, C, D. The kill and pkill commands are used to kill running processes. With the kill command, you can specify only the PID number, not the process name. The pkill command understands PIDs and process names. However, without an argument, the pkill command sends signal 15 (SIGTERM), which attempts a graceful, not an unconditional, termination of the process.

10. 

C. This is the perfect situation for a printer class. All three printers can be placed in the same class. When users print to the class, their output will be equally shared among the individual print devices. For the class to work, all three printers must be defined on the same print server, but users will not specify the name of the print server in order to print. Printer groups do not exist.

11. 

B. The lpadmin -x command is used to delete printers from a print server. There is no need to specify the name of the printer that you are going to install.

12. 

C. Only the third statement is true: the rtc command is run at 2:01 A.M. daily. The first five fields of a crontab file are time and date fields. In order, they are minute, hour, day of the month, month, day of the week.

13. 

A. In a case such as this, it might be best to reset the print spooler by stopping and restarting it. The printer is enabled, so there is no need to rerun the enable command. Because the printer is accepting print jobs, there is no need to run the accept command. Deleting and reinstalling the printer is overkill, and all pending print jobs would be lost.

14. 

A. The /etc/lp directory contains information about print server configuration. Both /usr directories contain print daemons, and /usr/lib/lp contains print filters and the standard printer interface program. The /var/spool/lp directory is the print spool directory.

15. 

C. The lpadmin command is used to create printer classes and add printers to printer classes. To add the printer to the printer class, you need to know the name of the printer you're adding (specified with the -p switch) and the name of the class (specified with the -c switch). Therefore, the correct command would be lpadmin -p toro -c sushi.

16. 

D. To deny users access to the at command, place their usernames in the at.deny file. There is no at.allow file.

17. 

D. The correct option to supply with the -F switch for starting over at the beginning of a job is beginning. Other options for -F are continue and wait.

18. 

C. crontab is for running jobs on a periodic schedule, whether it is daily, weekly, monthly, or on a specific day once per year. The at command is much simpler and will run a job or a series of jobs only once.

19. 

B. The nice command is used to modify a process' nice number. By default, the nice command with no arguments raises the nice number by four. Raising the nice number means that the process will be "nicer" to other processes (by yielding more processor time) and therefore have a lower priority.

20. 

B. To prevent a printer from accepting print requests, use the reject command. The disable command would stop the printer from printing, and the stop command does not exist. The last answer, /etc/init.d/lp stop, would stop the entire LP print service, causing tobiko to stop printing, as well as affecting other printers that might be attached to the print server.




Solaris 9. Sun Certified System Administrator Study Guide
Solaris 9 Sun Certified System Administrator Study Guide
ISBN: 0782141811
EAN: 2147483647
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net