1993.01.21


SUBJECT: SunOS 5.x Adding and Maintaining Devices and Drivers



1. About Modems,Terminals,Port Monitors,and Service Access

	ÀÌ·± µð¹ÙÀ̽ºµéÀ» °ü¸®ÇÏ°í ¼³Á¤Çϴµ¥ »ç¿ëÇÏ´Â ÅøÀ» Service Access Facility(SAF)¶ó°í
	ºÎ¸¥´Ù.
	SAF´Â º¹ÀâÇÏ°í ¾Æ¸¶µµ ´ç½ÅÀÌ ÇÊ¿äÇÑ °Íº¸´Ù ´õ ¿Ïº®ÇÑ ¼­¼ú(description)À» ÇÏ¿©¾ß ÇÑ´Ù.
	´ÙÀ½Àº ¸ðµ©°ú alphanumeric terminals¿¡ °ü·ÃµÈ ´ëºÎºÐÀÇ ÀÏÀ» ´Ù·ç±â À§ÇÑ ¹è°æÀ»
	¼³¸íÇÑ´Ù.
	
 1.1 What's a terminal?

	¸¸¾à »ç¿ëÀÚÀÇ ÄÄÇ»ÅÍ¿¡ alphanumeric terminalµéÀ» ºÙÀÎ´Ù¸é ±×°ÍÀ» ¼³Á¤Çϱâ À§ÇÏ¿©
	SAF¸¦ »ç¿ëÇÒ ÇÊ¿ä°¡ ÀÖ´Ù.

 1.2 What's a modem?

	¸ðµ©Àº ÀüÈ­ ¶óÀÎÀ» ÅëÇØ Àü¼ÛµÉ ¼ö ÀÖµµ·Ï µðÁöÅ» Á¤º¸¸¦ ¾Æ³¯·Î±× Á¤º¸·Î º¯È¯ÇÑ´Ù.
	¹Þ´Â ÂÊ¿¡¼­´Â ±× ¿ªÀÇ ÀÏÀ» ÇÑ´Ù.
	modemÀº modulator-demodulatorÀÇ ¾àÀÚÀÌ´Ù.

  1.2.1 the different ways to use a modem

	¸ðµ©Àº ±âº»À¸·Î 3°¡Áö·Î ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
	
	* dial-out
	* dial-in
	* bidirectional

 1.3 What's a service?

	¸ðµ©°ú alphanumeric terminalµéÀº ÄÄÇ»Æà ÀÚ¿øÀÇ Á¢±ÙÀ» ¿ä±¸ÇÏ°í ÀÌ·± °ÍÀº Á¤È®È÷
	SAFÀÇ ¼­ºñ½º("service")¸¦ ¹Þ¾Æ¾ß ÇÑ´Ù.
	SAF¿¡ ÀÇÇØ Á¦¾îµÇ´Â °¡Àå Áß¿äÇÑ ÀÚ¿øµéÀº ´ÙÀ½À» ÇÒ ¼ö ÀÖ´Â ´É·ÂÀ» °®´Â´Ù.

	* ·Î±× ÀÎ(locally³ª remotely) 
	* ³×Æ®¿öÅ©¸¦ ÅëÇØ ÇÁ¸°Æ®¸¦ Á¢±ÙÇÑ´Ù.
	* ³×Æ®¿öÅ©¸¦ ÅëÇØ È­ÀϵéÀ» Á¢±ÙÇÑ´Ù.

 1.4  What's port?

	port´Â µð¹ÙÀ̽º°¡ O/S¿Í Åë½ÅÇϱâ À§ÇÑ Ã¤³Î(channel)ÀÌ´Ù.
	port¸¦ »ý°¢ÇÏ´Â °¡Àå ÁÁÀº ¹æ¹ýÀº Å͹̳¯À̳ª ¸ðµ© ÄÉÀ̺íÀÌ ¿¬°áµÇ¾î ÀÖ´Â ¼ÒÄÏ À¸·Î 
	(receptacle)»ý°¢ÇÏ¸é µÈ´Ù.
	±×·¯³ª ¾ö¹ÐÈ÷ ¹°¸®ÀûÀÎ °Í¸¸ÀÌ ¾Æ´Ï¶ó Çϵå¿þ¾î(ÇÉ°ú ÄÁ³ØÅÍ)¿Í ¼ÒÇÁÆ®¿þ¾î(µð¹ÙÀ̽º 
	µå¶óÀ̺ê) ¿ä¼Ò µÑ´Ù¸¦ °®´Â ¿£Æ¼Æ¼(entity)ÀÌ´Ù.
	ÇϳªÀÇ ¹°¸®Àû ¼ÒÄÏÀº Á¾Á¾ ¿©·¯°³ÀÇ Æ÷Æ®¸¦ Á¦°øÇÑ´Ù.
	ÀϹÝÀûÀÎ ÇüÅÂÀÇ Æ÷Æ®´Â ½Ã¸®¾ó,Æз¯·¼,SCSI,EthernetÀ» Æ÷ÇÔÇÑ´Ù.

 1.5 port monitors and service sccess

	¼­ºñ½º¿¡ Á¢±ÙÇϱâ À§ÇÑ ÁÖ¿ä ¸ÞÄ«´ÏÁòÀº port monitor¸¦ ÅëÇÏ´Â °ÍÀÌ´Ù.
	port monitor´Â ²÷ÀÓ¾øÀÌ ·Î±× ÀÎÇÏ´Â ¿äûÀ» »ìÇǰųª È­ÀÏÀ̳ª ÇÁ¸°ÅÍÀÇ Á¢±Ù ¿äûÀ»
	»ìÇÇ´Â ÇÁ·Î±×·¥ÀÌ´Ù.
	port monitor°¡ ¿äûÀ» ¹ß°ßÇÏ¸é ±×°ÍÀº ¿î¿ëüÁ¦¿Í µð¹ÙÀ̽º ¿äû ¼­ºñ½º »çÀÌ¿¡ Åë½ÅÀ»
	¼³Á¤Çϱâ À§ÇÏ¿© ¿ä±¸µÈ ÆĶó¸ÞÅ͸¦ ¼³Á¤ÇÑ´Ù.
	port monitor´Â ÇÊ¿äÇÑ ¼­ºñ½º¸¦ Á¦°øÇÏ´Â ´Ù¸¥ ÇÁ·Î¼¼¼­¿¡ Á¦¾î¸¦ Àü¼ÛÇÑ´Ù.
	SunOS 5.0¿¡¼­´Â 2°¡Áö ÇüÅÂÀÇ port monitor¸¦ Æ÷ÇÔÇÑ´Ù: ttymon°ú listen
	listen port monitor´Â remote ÇÁ¸°ÅÍ¿Í È­ÀÏ ½Ã½ºÅÛÀ» ¿ä±¸ÇÏ´Â ³×Æ®¿öÅ© ¼­ºñ½ºÀÇ Á¢±ÙÀ»
	Á¦¾îÇÑ´Ù.
	ÀÌ listen port monitor´Â »ç¿ëÀÚ°¡ ¸ðµ©°ú ¹®ÀÚ Å͹̳¯À» ¼³Á¤ÇÒ¶§ ÀÛµ¿ÇÏ´Â °ÍÀÌ ¾Æ´Ï´Ù.
	ttymon port monitor´Â ¸ðµ©°ú ¹®ÀÚ Å͹̳¯¿¡ ÀÇÇØ ÇÊ¿äÇÑ ·Î±× ÀÎ ¼­ºñ½º¸¦ Á¢±ÙÀ» Á¦°øÇÑ´Ù.
	ÀÌ·±°ÍÀ» °¡´ÉÇÏ°Ô Çϱâ À§ÇÏ¿© »ç¿ëÀÚ´Â ÀÌ·± µð¹ÙÀ̽º·ÎºÎÅÍ ·Î±× ÀÎ ¿äûÀ» ´Ù·ç±â À§ÇÏ¿©
	(SAF¸¦ »ç¿ëÇÏ¿©) ttymon port monitor¸¦ ¼³Á¤ÇÒ ÇÊ¿ä°¡ ÀÖÀ» °ÍÀÌ´Ù.

	- a port monitor at work: ttymon

	  »ç¿ëÀÚ°¡ Á÷Á¢ ¿¬°áµÈ ¸ðµ©À̳ª ¹®ÀÚ Å͹̳¯À» ÅëÇØ ·Î±× ÀÎÀ» ½ÃµµÇÒ¶§¸¶´Ù ttymonÀÌ
	  ÀÛ¿ëÇÑ´Ù
	  ¹«¾ùÀÌ ÀϾ´Â°¡¸¦ ÀÌÇØÇϱâ À§Çؼ­´Â ¿öÅ©½ºÅ×À̼ÇÀÌ Ã³À½ ÄÑÁ³À»¶§·Î ´Ù½Ã µ¹¾Æ°¡
	  »ìÆ캼 ÇÊ¿ä°¡ ÀÖ´Ù.
	  ¾Æ·¡ÀÇ ±×¸²À» ÂüÁ¶Ç϶ó.

	  +---------------------------------------------+
	  | +--------------+				|
	  | |  +------+    |				|
	  | |  |      | <-----> init <------------------------ power on
 	  | |  +------+    |      |			|
	  | |  +------+    |      |			|
	  | |  |      | <------- SAC			|
	  | |  +------+    |      |                     |
	  | |  +------+    |      |		login request	
	  | |  |      | <-------ttymon <----------------------      USER
	  | |  +------+    |      |    ----------------------->  ^          ^
	  | +--------------+      |          set baud rate       |   |      |
	  |  administrative       |                     |        |   |      |
	  |   files               |                     |        |   |      |
	  |                       |           login prompt       |   |      |
	  |                     login   --------------------------   |      |
	  |                       |     <-----------------------------      |
	  |                       |         valid name & password	    |
	  |                       |			|                   |
	  |                     shell   <-------------login complete---------
	  |						|
	  +---------------------------------------------+


	  init ÇÁ·Î±×·¥Àº ºÎÆýÿ¡ ½ÃÀ۵Ǵ ù ÇÁ·Î¼¼¼­ÀÌ´Ù.
	  ±×°ÍÀÇ °ü¸® È­ÀÏ(/etc/inittab)À» ÂüÁ¶ÇÏ¿© init´Â ±×µéÀÌ ÇÊ¿äÇÑ ÇØ´ç ÇÁ·Î¼¼¼­¸¦ 
	  ½ÃÀÛÇÑ´Ù.
	  ÀÌ ÇÁ·Î¼¼¼­µé °¡¿îµ¥ Ç¥½ÃµÈ °ÍÀÌ Service Access Controller(SAC)ÀÌ´Ù.- SAFÀÇ 
	  master programÀÌ´Ù.
	  SAC´Â ÀÚµ¿ÀûÀ¸·Î ±×°ÍÀÇ °ü¸® È­ÀÏ(/etc/saf/_sactab)¿¡ ÁöÁ¤µÈ port monitor¸¦ ½ÃÀÛÇÑ´Ù.
	  ÀÌ º¸±â¿¡¼­´Â ´ÜÁö ÇϳªÀÇ port monitor¸¦ »ý°¢ÇÑ´Ù.
	  ttymonÀÌ ½ÃÀÛ ÇÏÀÚ¸¶ÀÚ ±×°ÍÀº ¼­ºñ½º ¿äû¿¡µû¶ó ½Ã¸®¾ó Æ÷Æ®¶óÀÎÀ» ¸ð´ÏÅÍÇÑ´Ù.
	  ¾î¶² »ç¶÷ÀÌ ¸ðµ©À̳ª Å͹̳¯À» ÅëÇØ Áö±Ý ·Î±× ÀÎ ÇÑ´Ù°í »ó»óÇØ º¸¶ó.
	  ½Ã¸®¾ó Æ÷Æ®ÀÇ µ¿ÀÛÀº ½Ã¸®¾ó Æ÷Æ® µå¶óÀ̺꿡 ÀÇÇØ ¿î¿ëüÁ¦¿¡ º¸³»Áø´Ù.
	  ttymon port monitor´Â ½Ã¸®¾ó Æ÷Æ® µ¿ÀÛÀ» °¨ÁöÇÏ°í Åë½Å ¸µÅ©¸¦ ¼³Á¤ÇÏ·Á ÇÑ´Ù.
	  ±â¼úÀûÀ¸·Î À̾߱âÇϸé ttymonÀº µ¥ÀÌŸ Àü¼Û ¼Óµµ,line discipline,µð¹ÙÀ̽º¿Í Åë½ÅÇϱâ
	  À§ÇÏ¿© ¿ä±¸µÈ handshaking protocolÀ» ó¸®ÇÑ´Ù.
	  ¸ðµ©À̳ª Å͹̳¯°ú Åë½ÅÇϱâ À§ÇÏ¿© Àû´çÇÑ ÆĶó¸ÞÅÍ°¡ ¼º¸³Çϸé ttymonÀº ÀÌ ÆĶó¸ÞÅ͵éÀ»
	  ·Î±× ÀÎ ÇÁ·Î±×·¥¿¡ º¸³»°í ±×°Í¿¡ Àü¼Û Á¦¾î¸¦ ÇÑ´Ù.

 1.6 SAF control of port monitors and services

	¸ðµ©À̳ª Å͹̳¯À» °ü¸®Çϴµ¥ »ç¿ëÇÏ´Â 3°³ÀÇ SAF ¸í·ÉÀÌ ÀÖ´Ù.
	ÀÌ ¸í·ÉÀº sacadm,pmadm°ú ttyadmÀÌ´Ù.

	sacadmÀº port monitor¸¦ ´õÇÏ°í Á¦°ÅÇÑ´Ù.
	ÀÌ ¸í·ÉÀº Service Access Controller¿Í SACÀÇ °ü¸® È­ÀÏ(/etc/saf/_sactab)°úÀÇ main linkÀÌ´Ù.
	
	pmadmÀº ¼­ºñ½º¸¦ ´õÇϰųª Á¦°ÅÇÏ°í ƯÁ¤ÇÑ port monitor¿¡ ¼­ºñ½º¸¦ ¿¬°ü½ÃŲ´Ù.
	
	ttyadmÀº °¢Á¾ SAF °ü¸® È­Àϵ鿡 Æ÷ÇÔµÈ Á¤º¸¸¦ ¸¸µç´Ù.
	ttyadm ¸í·ÉÀº Á¾Á¾ sacadm,pmadm¿¡ ÀÇÇØ ÇÊ¿äÇÑ ¾î¶² µ¥ÀÌŸ¸¦ Áö¿øÇϱâ À§ÇÏ¿© sacadm 
	¸í·ÉÀ̳ª pmadm ¸í·É³»¿¡ ÀÖÀ» ¼öµµ ÀÖ´Ù.

 1.7 setting up a serial port device

	¸ðµ©À̳ª Å͹̳¯ °°Àº ½Ã¸®¾ó Æ÷Æ® ¼­ºñ½º¸¦ ¼³Á¤Çϱâ À§ÇÏ¿© ¿ä±¸µÇ´Â 3°³ÀÇ ±âº»ÀûÀÎ
	ÀÏÀÌ ÀÖ´Ù.

	* port monitor¸¦ ´õÇϱâ À§ÇÏ¿© sacadmÀ» »ç¿ëÇÑ´Ù.(¸¸¾à ¾ø´Ù¸é)
	* »õ·Î¿î port monitor¿¡ °ü°èµÈ ¼­ºñ½º¸¦ ¼±Á¤Çϱâ À§ÇÏ¿© pmadmÀ» »ç¿ëÇÑ´Ù.
	* ÇÊ¿ä¿¡µû¶ó Çϳª ÀÌ»óÀÇ Åë½Å °ü·Ã È­ÀϵéÀ» ÆíÁýÇÑ´Ù.

	óÀ½ 2°³ÀÇ ÀÏÀº SAF ¸í·ÉÀ» »ç¿ëÇÏ¿© ¼öÇàÇÑ´Ù.
	¸¶Áö¸· ÀÏ¿¡ ¾ð±ÞÇÑ Åë½Å °ü·Ã È­ÀϵéÀº SAF¿Í ¾Æ¹« »ó°üÀÌ ¾øÀ¸³ª ¸ðµ©°ú Å͹̳¯ÀÌ ¾î¶»°Ô
	Åë½ÅÇϴ°¡¿¡ ¿µÇâÀ» ³¢Ä£´Ù.
	ÆíÁýÇÏ¿©¾ß ÇÒ ÇÊ¿ä°¡ ÀÖ´Â È­ÀϵéÀº /etc/ttydefs,/etc/uucp/Devices,/etc/uucp/Dialers¸¦
	Æ÷ÇÔÇÑ´Ù.
	°æ¿ì¿¡µû¶ó uucp¿Í cu°¡ Àû´çÈ÷ µ¿ÀÛÇÒ ¼ö ÀÖµµ·Ï /ec/uucpÀÇ ´Ù¸¥ È­ÀϵéÀ» ¼öÁ¤ÇØ¾ß ÇÒ
	ÇÊ¿ä°¡ ÀÖÀ» °ÍÀÌ´Ù.
	sacadm°ú pmadm ¸í·ÉÀ» »ç¿ëÇϱâ À§ÇÏ¿© °¢ ¸í·ÉÀÌ ¿ä±¸ÇÏ´Â ¾Æ±Ô¸ÕÆ®¿¡ °üÇØ ÀÚ¼¼È÷ ÀϾƾß
	ÇÒ ÇÊ¿ä°¡ ÀÖ´Ù.

	- arguments used in SAF commands

	  SAF ¸í·ÉµéÀº ´ÙÀ½ Áß Çϳª ÀÌ»óÀ» ÁöÁ¤Çϱâ À§ÇÏ¿© ¾Æ±Ô¸ÕÆ®¸¦ ³Öµµ·Ï ¿ä±¸ÇÑ´Ù.

	  * port monitorÀÇ À̸§
	  * ¼Óµµ(baud rate)¿Í ¶óÀÎ ±Ô¾à(line discipline)
	  * µð¹ÙÀ̽º °æ·Î
	  * /dev/term¾ÈÀÇ Æ÷Æ®ÀÇ À̸§
	  * ÁÖ¼®(comments:optional)

	  ¿©±â¼­´Â ¸ðµ©°ú Å͹̳¯À» ¼³Á¤Çϱâ À§ÇÏ¿© ÇÊ¿äÇÑ ¾Æ±Ô¸ÕÆ®¸¦ ¼³¸íÇÑ´Ù.

	- naming port monitors: the pmtag argument

	  pmtag ¾Æ±Ô¸ÕÆ®´Â ƯÁ¤ÇÑ port monitor¿¡ ÇÒ´çÇÏ´Â À̸§ÀÌ´Ù.
	  »ç¿ëÀÚ´Â port monitor¿¡ ÁÁ¾ÆÇÏ´Â ¾î¶² À̸§À» ÁÙ ¼ö ÀÖ°í À¯ÀÏÇÏ°í 14ÀÚ ÀÌ»óµÉ ¼ö ¾ø´Ù.
	  ±×·¯³ª "ttymon"À̶ó´Â ´Ü¾î¸¦ Æ÷ÇÔÇÑ À̸§À» ÇÒ´çÇÏ´Â °ÍÀÌ Çö¸íÇÏ´Ù.
	  ±×·¡¾ß sacadm -l ¸í·ÉÀ¸·Î ±×µéÀÇ ¸ñ·ÏÀ» º¼¶§ ttymon-typeÀ̶ó´Â °ÍÀ» ½±°Ô ¾Ë¾Æ º¼ ¼ö
	  ÀÖ´Ù.
	  »ç½Ç ±Ô¾àÀûÀ¸·Î"ttymon"À̶ó´Â ´Ü¾î¿¡ ¹®ÀÚ³ª ¼ýÀÚ¸¦ ´õÇϹǷΠserial port monitorÀÇ
	  À̸§À» ¢´Â´Ù.
	  ±×·¡¼­ ¸¸µé¾îÁ® ÀÖ´Â(built-in) Æ÷Æ®(motherboard¿¡)µéÀº ttymon_mb¿¡ ÀÇÇØ ¸ð´ÏÅ͵ȴÙ.
	  óÀ½ ¾î´þÅÍ º¸µåÀÇ Æ÷Æ®´Â ttymon0,µÎ¹ø°´Â ttymon1 µîµî°ú °°ÀÌ »ç¿ëÇÑ´Ù.

	- specifying the device path: the dev_path argument

	  dev_path ¾Æ±Ô¸ÕÆ®´Â TTY Æ÷Æ® µð¹ÙÀ̽º È­ÀÏÀÇ Àý´ë °æ·Î À̸§ÀÌ´Ù.
	  Áï dev_path´Â ¸ðµ©À̳ª Å͹̳¯ÀÌ ºÙÀº Æ÷Æ®¿¡ ´ëÇÑ /devÀÇ È­ÀÏ °æ·ÎÀÌ´Ù.
	  ¿¹·Î ½Ã¸®¾ó Æ÷Æ® A¿¡ ¿¬°áµÈ Å͹̳¯ÀÇ °æ·Î ¸íÀº /dev/term/aÀÌ´Ù.
	  ½Ã¸®¾ó ¾î´þÅÍ º¸µåÀÇ Ã¹¹ø° Æ÷Æ®¿¡ ¿¬°áµÈ Å͹̳¯Àº /dev/term/21ÀÇ dev_path¸¦ °®´Â´Ù.

	- specifying the device file: the svctag argument

	  port monitor¿¡ ÇÒ´çµÈ °¢ Æ÷Æ®´Â ±× ÀÚ½ÅÀÇ ¼­ºñ½º ű×(tag)¸¦ °®´Â´Ù.
	  ±Ô¾àÀûÀ¸·Î svctag´Â /dev/term µð·ºÅ丮 ¾ÈÀÇ Æ÷Æ®ÀÇ À̸§ÀÌ´Ù.
	  /dev/term/a¿¡ ´ëÇØ ´ëÀÀµÇ´Â svctag´Â bÀÌ´Ù.
	  /dev/term/21ÀÇ  svctag´Â 21ÀÌ´Ù.
	  ÇöÀç È°µ¿ÇÏ´Â ¼­ºñ½ºµéÀÇ ¸ñ·ÏÀ» º¸±âÀ§Çؼ­´Â pmadm -lÀ» ÃĶó.

	- specifying baud rate and line discipline: the ttylabel argument

	  ttylabel ¾Æ±Ô¸ÕÆ®´Â Àû´çÇÑ ¼Óµµ¿Í ¶óÀÎ ±Ô¾àÀ» ãÀ»¶§ /etc/ttydefs È­ÀÏÀÇ ¾î´À ¿£Æ®¸®¸¦
	  »ç¿ëÇÒ °ÍÀΰ¡¸¦ ÁöÁ¤ÇÑ´Ù.
	  ¾Æ·¡ÀÇ /etc/ttydefs È­ÀÏÀÇ º¸±â¿¡¼­´Â 1200H¿Í 1200H¸¦ º¸¿©ÁØ´Ù.

	  2400H:2400:2400 sane hupc1::1200H
	  1200H:1200:1200 sane hupc1::300H

	- adding comments

	  pmadm°ú sacadm ¸í·ÉÀº port monitor³ª ¼­ºñ½º¸¦ ´õÇÒ¶§ -y ÇÁ·¡±×¸¦ »ç¿ëÇÏ¿© ÁÖ¼®À» ´Þ ¼ö
	  ÀÖ°Ô ÇÑ´Ù.
	  ÀÌ ÁÖ¼®Àº ÈÄ¿¡ -l ÇÁ·¡±×¸¦ »ç¿ëÇÏ¿©  port monitor³ª ¼­ºñ½ºÀÇ ¸ñ·ÏÀ» º¸·ÁÇÒ¶§ ÷°¡µÇ¾î
	  º¸¿©ÁØ´Ù.
	  °¢Á¾ port monitor³ª ¼­ºñ½º°¡ °ü·ÉµÈ ÇÁÆ®¸¦ ÁöÁ¤Çϱâ À§ÇÏ¿© ÁÖ¼®À» »ç¿ëÇ϶ó.
	  ¿¹·Î ½Ã¸®¾ó Æ÷Æ® A¿¡ port monitor¸¦ ´õÇÒ¶§ ´ÙÀ½°ú °°Àº ÁÖ¼³ Çʵ带 »ç¿ëÇÑ´Ù.

	  # sacadm [...field omitted...] -y "Serial port b"

 1.8 cimmunications-related files

	¾î¶² ¸ðµ©À̳ª Å͹̳¯ ÇÁ·Î½ÃÁ®µéÀº ´ÙÀ½°ú °°Àº Çϳª ÀÌ»óÀÇ Åë½Å °ü·Ã È­ÀϵéÀ» º¸°Å³ª
	ÆíÁýÇÒ °ÍÀ» ¿ä±¸ÇÑ´Ù.

	* /etc/uucp/Devices
	* /etc/uucp/Dialers
	* /etc/ttydefs

 1.9 instructions for setting up modems and terminals

	¿©±â¿¡´Â ¸ðµ©°ú Å͹̳¯¿¡ °ü·ÃµÈ ÀÏÀ» ¼öÇÚÇÏ´Â ÇÑ´Ü°è ÇÑ´Ü°èÀÇ Áö½Ã»çÇ×À» Æ÷ÇÔÇÑ´Ù.
	
	** how to set up an alphanumeric terminal

	   1) ttyadm -V¸¦ ¼öÇàÇÏ°í port monitorÀÇ ¹öÁ¯ ¹øÈ£¸¦ º¸¶ó.

		# ttyadm -V
		1
		#

	   2) sacadm ¸í·ÉÀ» ¼öÇàÇÑ´Ù.
	      pmtag¿¡ ´ëÇÑ Àû´çÇÑ port monitor tag¸¦ ´ëüÇ϶ó.
	      ¶ÇÇÑ vers¿¡ Á¤È®ÇÑ ¹öÁ¯ ¹øÈ£¸¦ ³Î¾î¶ó.

		# sacadm -a -p pmtag -t ttymon -c /usr/lib/saf/ttymon -v vers

	   3) ·Î±× ÀÎ ¼­ºñ½º¸¦ ´õÇϱâ À§ÇÏ¿© pmadm ¸í·ÉÀ» »ç¿ëÇÑ´Ù.
	      Àû´çÇÑ ¾Æ±Ô¸ÕÆ®·Î ¹Ù²Ù¾î¶ó.

		# pmadm -a -p pmtag -s svctag -i root -fu -v vers -m "`ttyadm -d dev_path 
		  -l ttylabel -s /usr/bin/login`"

	   4) Å͹̳¯À» ¿¬°áÇÏ°í ÄѶó.

	   - Å͹̳¯À» ¼³Á¤ÇÏ´Â º¸±â.

		´ÙÀ½ÀÇ sacadm ¸í·ÉÀº /dev/term/b¸¦ »ìÇÇ´Â ttymonb¶ó°í ºÒ¸®¿ì´Â port monitor¸¦
	 	¸¸µç´Ù.
		pmadm ¸í·ÉÀº ¼­ºñ½º ÅÂ±× b·Î ·Î±× ÀÎ ¼­ºñ½º¸¦ ¼³Á¤ÇÑ´Ù.
		¼Óµµ´Â /etc/ttydefs¿¡ 9600·Î Á¤ÀÇ µÇ¾î ÀÖ´Ù.

		# sacadm -a -p ttymonb -t ttymon -c /usr/lib/saf/ttymon -v 1
		# pmadm -a -p ttymonb -s b -i root -fu -v 1 -m "`ttyadm -d /dev/term/b -l 9600
		  -s /usr/bin/login`"

	** how to set up dial-out modem service

	   1) ¸ðµ©ÀÌ Àû´çÈ÷ ¿¬°áµÇ¾î ÀÖ°í ¼³Á¤µÇ¾î ÀÖ´ÂÁö È®ÀÎÇ϶ó.
	   2) # cd /etc/uucp
	   3) /etc/uucp/Devices¸¦ ÆíÁýÇÏ¿© ´ÙÀ½ÀÇ ÁÙÀ» ÷°¡Ç϶ó.
	
		ACU term/svctag,M - ttylabel type

	      hayes¿Í ȣȯµÇ´Â ¸ðµ©¿¡ ´ëÇؼ­´Â typeÀÌ hayes°¡ µÈ´Ù.
	      ´Ù¸¥ ¸ðµ©¿¡ ´ëÇؼ­´Â /etc/uucp/Dialers¸¦ º¸¶ó.
	   4) ·Î±× ÀÎÀÌ ¾ÈµÇ°Ô µÇ¾î ÀÖ´Â °¡¸¦ È®ÀÎÇÏ°í ´ÙÀ½À» ¼öÇàÇ϶ó.

		# pmadm -d -p pmtag -s svctag

	** how to set up dial-in  modem service

	   1) ¸ðµ©ÀÌ Àû´çÈ÷ ¿¬°áµÇ¾î ÀÖ°í ¼³Á¤µÇ¾î ÀÖ´ÂÁö È®ÀÎÇ϶ó.
	   2) # sacadm -l -t ttymon
	      ½Ã½ºÅÛÀº ¸ðµç port monitorµéÀ» º¸¿©ÁØ´Ù.

		# sacadm -l -t ttymon
		PMTAG          PMTYPE         FLGS RCNT STATUS     COMMAND
		zsmon          ttymon         -    0    ENABLED    /usr/lib/saf/ttymon # 

	   3) port monitorÀÇ ¸ñ·ÏÀ» È­ÀÎÇ϶ó.
	   4) ¹®Á¦(in question)¿¡ ´ëÇÑ Æ÷Æ®ÀÇ port monitor¸¦ ¸¸µç´Ù.

		# sacadm -a -p pmtag -r ttymon -c /usr/lib/saf/ttymon -v `ttymon -V`
		  -y "comment"

	   5) ´ÙÀ½À» ¼öÇàÇÑ´Ù.

		# pmadm -l -s svctag

		- ¸¸¾à ¼­ºñ½º°¡ Á¸ÀçÇÑ´Ù¸é ´ÙÀ½°ú °°Àº °á°ú¸¦ ¾òÀ» °ÍÀÌ´Ù.
		  
		PMTAG          PMTYPE         SVCTAG FLGS ID    
		ttymona	       ttymon         a      u    root  /dev/term/a b -   [...etc...]

		- ¸¸¾à ¼­ºñ½º°¡ Á¸ÀçÇÏÁö ¾Ê´Â´Ù¸é ´ÙÀ½°ú °°Àº °á°ú¸¦ ¾òÀ» °ÍÀÌ´Ù.

		Service  does not exist
		
		   7´Ü°è¸¦ °Ç³Ê ¶Ù¾î¶ó.

	    6) ´ÙÀ½°ú °°ÀÌ ³Ö¾î ¼­ºñ½º¸¦ Á¦°ÅÇ϶ó.

		# pmadm -r -p pmtag -s svctag

	    7) »õ·Î¿î dial-in Æ÷Æ® ¼­ºñ½º¸¦ ¸¸µç´Ù.

		# pmadm -a -p pmtag -s svctag -i root -v `ttyadm -V` -fu -m "`ttyadm
		  -d /dev/term/svctag -s /usr/bin/login -l ttylabel -m ldterm,ttycompat`"
		  -y "comment"
	    8) Æ÷Æ®¸¦ »ì¸°´Ù(¾îµªÅÍ º¸µå¸¸ ´ÜÁö)

		# pmadm -e -p pmtag -s n

		nÀº Æ÷Æ®ÀÇ ¹øÈ£ÀÌ´Ù.
		·Î±× ÀÎÀ» »ì¸®±â ¿øÇÏ´Â °¢ Æ÷Æ®¿¡ ´ëÇØ ÀÌ ¸í·ÉÀ» ¹Ýº¹Ç϶ó.

	** how to set up bidirectional modem service

	   1) ¸ðµ©ÀÌ Àû´çÈ÷ ¿¬°áµÇ¾î ÀÖ°í ¼³Á¤µÇ¾î ÀÖ´ÂÁö È®ÀÎÇ϶ó.
	   2) # cd /etc/uucp
	   3) /etc/uucp/Devices¸¦ ÆíÁýÇÏ¿© ´ÙÀ½ÀÇ ÁÙÀ» ÷°¡Ç϶ó.
	
		ACU term/svctag,M - ttylabel type

	      hayes¿Í ȣȯµÇ´Â ¸ðµ©¿¡ ´ëÇؼ­´Â typeÀÌ hayes°¡ µÈ´Ù.
	      ´Ù¸¥ ¸ðµ©¿¡ ´ëÇؼ­´Â /etc/uucp/Dialers¸¦ º¸¶ó.
	   4) ·Î±× ÀÎÀÌ ¾ÈµÇ°Ô µÇ¾î ÀÖ´Â °¡¸¦ È®ÀÎÇÏ°í ´ÙÀ½À» ¼öÇàÇ϶ó.

		# pmadm -d -p pmtag -s svctag

	** how to set up dial-in  modem service

	   1) ¸ðµ©ÀÌ Àû´çÈ÷ ¿¬°áµÇ¾î ÀÖ°í ¼³Á¤µÇ¾î ÀÖ´ÂÁö È®ÀÎÇ϶ó.
	   2) # sacadm -l -t ttymon
	      ½Ã½ºÅÛÀº ¸ðµç port monitorµéÀ» º¸¿©ÁØ´Ù.

		# sacadm -l -t ttymon
		PMTAG          PMTYPE         FLGS RCNT STATUS     COMMAND
		zsmon          ttymon         -    0    ENABLED    /usr/lib/saf/ttymon # 

	   3) port monitorÀÇ ¸ñ·ÏÀ» È­ÀÎÇ϶ó.
	   4) ¹®Á¦(in question)¿¡ ´ëÇÑ Æ÷Æ®ÀÇ port monitor¸¦ ¸¸µç´Ù.

		# sacadm -a -p pmtag -r ttymon -c /usr/lib/saf/ttymon -v `ttymon -V`
		  -y "comment"

	   5) ´ÙÀ½À» ¼öÇàÇÑ´Ù.

		# pmadm -l -s svctag

		- ¸¸¾à ¼­ºñ½º°¡ Á¸ÀçÇÑ´Ù¸é ´ÙÀ½°ú °°Àº °á°ú¸¦ ¾òÀ» °ÍÀÌ´Ù.
		  
		PMTAG          PMTYPE         SVCTAG FLGS ID    

		- ¸¸¾à ¼­ºñ½º°¡ Á¸ÀçÇÏÁö ¾Ê´Â´Ù¸é ´ÙÀ½°ú °°Àº °á°ú¸¦ ¾òÀ» °ÍÀÌ´Ù.

		Service  does not exist
		
		   7´Ü°è¸¦ °Ç³Ê ¶Ù¾î¶ó.

	    6) ´ÙÀ½°ú °°ÀÌ ³Ö¾î ¼­ºñ½º¸¦ Á¦°ÅÇ϶ó.

		# pmadm -r -p pmtag -s svctag

	    7) »õ·Î¿î bidirectional Æ÷Æ® ¼­ºñ½º¸¦ ¸¸µç´Ù.

		# pmadm -a -p pmtag -s svctag -i root -v `ttyadm -V` -fu -m "`ttyadm
		  -d /dev/term/svctag -s /usr/bin/login -l ttylabel -b -m ldterm,ttycompat`"
		  -y "comment"
	    8) # cd /etc/uucp
	    9) /etc/uucp/Devices¸¦ ÆíÁýÇÏ¿© ´ÙÀ½ÀÇ ÁÙÀ» ÷°¡Ç϶ó.
	
		ACU term/svctag,M - ttylabel type

	      hayes¿Í ȣȯµÇ´Â ¸ðµ©¿¡ ´ëÇؼ­´Â typeÀÌ hayes°¡ µÈ´Ù.
	      ´Ù¸¥ ¸ðµ©¿¡ ´ëÇؼ­´Â /etc/uucp/Dialers¸¦ º¸¶ó.
	    10) Æ÷Æ®¸¦ »ì¸°´Ù(¾îµªÅÍ º¸µå¸¸ ´ÜÁö)
		¸¸¾à ¾ç ¹æÇâ ¼­ºñ½º¸¦ ¼³Á¤ÇÏ·Á´Â Æ÷Æ®°¡ ¾îµªÅÍ º¸µå Æ÷Æ®ÀÌ¸é ·Î±× ÀÎ ¼¼¼ÇÀº
		°³°³·Î °¢ Æ÷Æ®¿¡ ´ëÇØ ÇÒ ¼ö ÀÖ¾î¾ß¸¸ ÇÑ´Ù.

		# pmadm -e -p pmtag -s n

		nÀº Æ÷Æ®ÀÇ ¹øÈ£ÀÌ´Ù.
		·Î±× ÀÎÀ» »ì¸®±â ¿øÇÏ´Â °¢ Æ÷Æ®¿¡ ´ëÇØ ÀÌ ¸í·ÉÀ» ¹Ýº¹Ç϶ó.

2. Disks

 2.1 Instructions for setting up disks

	- how to add a secondary disk

	  1) ¹°¸®Àû ¿¬°áÀ» È®ÀÎÇ϶ó.
	  2) power¸¦ ¿Ã¸°´Ù.
	  3)
	  	 ok  boot -r

	  4) formatÀ» ¼öÇàÇ϶ó.
	  5)
		format> defect

	  6) defect menu¸¦ °Ë»çÇ϶ó.
	  7) 
		defect> primary

	  8)
		defect> commit

	  9)
		defect> quit

	  10)
		format> format

	  11)
		format> partition

	  12)
		partition> modify

	  13) 
		partition> label

	  14) q¸¦ 2¹ø Ãļ­ formatÀ» ºüÁ® ³ª¿Â´Ù.
	  15) ´ÙÀ½ ¸í·ÉÀ» ¼öÇâÇÑ´Ù.

		# prtvtoc /dev/rdsk/device

	  16) # newfs /dev/rdsk/device-partition
	  17) È­ÀÏ ½Ã½ºÅÛÀ» mountÇÑ´Ù.

3. Compact disc read-only memory devices

 3.1 instructions for adding a CD-ROM

	- how to add a CD-ROM drive

	  1) ¹°¸®Àû ¿¬°áÀ» È®ÀÎÇÑ´Ù.
	  2) Àü¿øÀ» ³Ö´Â´Ù.
	  3) 
		# shutdown
		ok boot -r

	  4) CD¸¦ µå¶óÀ̺꿡 ³Ö´Â´Ù.
	  5) # cd /
	     # mkdir /cdrom
	     # mount -F ufs -o ro /dev/dsk/c0t6d0s2 /cdrom

4. Tape drives

 4.1 instructions for adding a tape drive

	- how to add a SCSI tape drive

	  1) ¹°¸®Àû ¿¬°áÀ» È®ÀÎÇÑ´Ù.
	  2) SCSI unit ¹øÈ£¸¦ È®ÀÎÇÑ´Ù.
	  3) Àü¿øÀ» ³Ö´Â´Ù.
	  4) 
		# shutdown
		ok boot -r

5. Device drivers

 5.1 device drivers in the SunOS 5.0 operating system

	³ÐÀº ¹üÀ§ÀÇ Ç¥ÁØ µð¹ÙÀ̽º¸¦ Áö¿øÇϴµ¥ ÇÊ¿äÇÑ ¸ðµç µå¶óÀ̹öµéÀº SunOS 5.0¾È¿¡ Æ÷ÇԵǾî
	ÀÖ´Ù.
	ÀÌ µå¶óÀ̹öµéÀº /kernel/drv¿¡ ÀÖ´Ù.

 5.2 adding drivers

	µð¹ÙÀ̽º µå¶óÀ̹öµéÀ» ÷°¡Çϴµ¥´Â 3°¡Áö ÀýÂ÷°¡ ÀÖ´Ù.

	* Àû´çÇÑ µå¶óÀ̺꿡 media¸¦ ³Ö´Â´Ù.
	* pkgadd ¸í·ÉÀ» »ç¿ëÇÑ´Ù.
	* ºÎÆÃÀ» ÇÑ´Ù.

 5.3 instructions for adding and removing device drivers

	- how to add a device drivers

	  1) Å×ÀÌÇÁ,µð½ºÄÏ,CD-ROM¿¡ Àû´çÇÑ media¸¦ ³Ö´Â´Ù.
	  2) # pkgadd -d device packagename
	  3)
		# shutdown
		ok boot -r

	- how to remove a device drivers

	  # rem_drv drivername

A. The Service Access Facility

	¿©±â¿¡´Â SunOS 5.0ÀÇ SAF(Service Access Facility)¿¡ °üÇØ ½Ã½ºÅÛÀ̳ª ³×Æ®¿öÅ© °ü¸®ÀÚ°¡
	¾Ë¾Æ¾ß ÇÒ ¸ðµç °ÍÀ» ¼³¸íÇÑ´Ù.
	SAF´Â Å͹̳¯,¸ðµ©,´Ù¸¥ ³×Æ®¿öÅ© Àåºñ¸¦ °ü¸®Çϴµ¥ »ç¿ëµÇ´Â µµ±¸ÀÌ´Ù.
	Ưº°È÷ SAF´Â ´ÙÀ½À» Çϵµ·Ï ÇÑ´Ù.

	* ttymon°ú listen port monitorÀ» ´õÇÏ°í °ü¸®ÇÑ´Ù.(sacadm ¸í·ÉÀ» »ç¿ëÇÑ´Ù)
	* ttymon port monitor serviceÀ» ´õÇÏ°í °ü¸®ÇÑ´Ù.(pmadm°ú ttyadm ¸í·ÉÀ» »ç¿ëÇÑ´Ù)
	* listen port monitor serviceÀ» ´õÇÏ°í °ü¸®ÇÑ´Ù.(pmadm°ú nlsadmin ¸í·ÉÀ» »ç¿ëÇÑ´Ù)
	* TTY deviceÀÇ °íÀåÀ» ¼ö¸®ÇÏ°í °ü¸®ÇÑ´Ù.
	* ÇÁ¸°Æà ¼­ºñ½º¿¡ ´ëÇÑ µé¾î¿À´Â ³×Æ®¿öÅ© ¿ä±¸¸¦ °ü¸®ÇÏ°í ¼ö¸®ÇÑ´Ù.
	* Service Access Controller¸¦ °ü¸®ÇÏ°í ¼ö¸®ÇÑ´Ù.(sacadm ¸í·ÉÀ» »ç¿ëÇÑ´Ù)

 A.1 overview of the Service Access Facility

	Service Access Facility(SAF)´Â TTY µð¹ÙÀ̽ºµé°ú LANs¸¦ ÅëÇØ ½Ã½ºÅÛ°ú ³×Æ®¿öÅ© ÀÚ¿øÀÇ
	Á¢±ÙÀ» Á¦¾îÇÏ´Â open system solutionÀÌ´Ù.
	SAF´Â »õ·Î¿î Ư¼ºÀ» ÷°¡Çϱ⠽±°Ô ¸¸µé°í ÀÖ´Â °ÍÀ» ½±°Ô ¼³Á¤Çϵµ·Ï ÇÏ´Â Àß Á¤ÀǵÈ
	ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÑ´Ù.
	SAF´Â ÇÁ·Î±×·¥ÀÌ ¾Æ´Ï´Ù.
	ÀÌ°ÍÀº °ü¸® ¸í·É°ú ¹é±×¶ó¿îµå ÇÁ·Î¼¼¼­µéÀÇ °èÃþÀû ±¸Á¶ÀÌ´Ù.
	¸Ç À§ÀÇ SAF ÇÁ·Î±×·¥Àº Service Access Controller(SAC)ÀÌ´Ù.
	SAC´Â sacadm ¸í·ÉÀ» ÅëÇØ °ü¸®ÇÏ´Â port monitor¸¦ Á¦¾îÇÑ´Ù.
	°¢ port monitor´Â Çϳª³ª ±× ÀÌ»óÀÇ Æ÷Æ®µéÀ» ´Ù·ê ¼ö ÀÖ´Ù.
	»ç¿ëÀÚ´Â pmadm ¸í·ÉÀ» ÅëÇØ Æ÷Æ®¿¡ ¿¬°üµÈ ¼­ºñ½º¸¦ °ü¸®ÇÑ´Ù.
	SAC¸¦ ÅëÇØ Á¦°øµÈ ¼­ºñ½ºµéÀº ³×Æ®¿öÅ©¸¶´Ù ´Ù¸£³ª SAC°ú °ü¸® ÇÁ·Î±×·¥ÀÎ sacadm°ú pmadmÀº
	³×Æ®¿öÅ©¿¡ µ¶¸³ÀûÀÌ´Ù.
	Ç¥ A-1Àº SAF Á¦¾î °èÃþÀ» º¸¿©ÁØ´Ù.
	sacadm ¸í·ÉÀº ttymon°ú listen port monitor¸¦ Á¦¾îÇÏ´Â SAC¸¦ °ü¸®Çϱâ À§ÇÏ¿© »ç¿ëµÈ´Ù.
	ttymon°ú listenÀÇ ¼­ºñ½º´Â pmadm¿¡ ÀÇÇØ Á¦¾îµÈ´Ù.
	³ªÁß¿¡ º¸°ÚÁö¸¸ ttymonÀÇ ÇÑ ¿¹´Â ¿©·¯ °³ÀÇ Æ÷Æ®µéÀ» ¼­ºñ½º ÇÒ ¼ö ÀÖ°í listenÀÇ ÇÑ ¿¹´Â
	³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º¿¡ ¿©·¯°³ÀÇ ¼­ºñ½ºµéÀ» Áö¿øÇÒ ¼ö ÀÖ´Â °ÍÀÌ´Ù.

	ǥ A-1
	+-----------------------+---------------+---------------------------------------+
	| function		| program	| description				|
	+-----------------------+---------------+---------------------------------------+
	| Àüü °ü¸®		| sacadm	| port monitor¸¦ ´õÇÏ°í Á¦°ÅÇÏ´Â ¸í·É	|
	| SAC			| sac		| SAFÀÇ master program			|
	| port monitor		| ttymon	| ½Ã¸®¾ó Æ÷Æ® ·Î±× ÀÎ ¿ä±¸¸¦ ¸ð´ÏÅÍÇÑ´Ù	|
	|			| listen	| ³×Æ®¿öÅ© ¼­ºñ½ºÀÇ ¿ä±¸¸¦ ¸ð´ÏÅÍÇÑ´Ù	|
	| port monitor service	| pmadm		| port monitorÀÇ Á¦¾î¸¦ À§ÇÑ ¸í·É	|
	|  administrator	|		|					|
	| services		|login;remote	| SAF°¡ Á¢±ÙÀ» Áö¿øÇÏ´Â ¼­ºñ½ºµé	|
	|			| procedure	|					|
	|			|calls;other	|					|
	+-----------------------+---------------+---------------------------------------+

   A.1.1 Overall administration: sacadm command

	sacadm ¸í·ÉÀº SAFÀÇ °¡Àå À­ ·¹º§À» ³ªÅ¸³½´Ù.
	sacadm ¸í·ÉÀº ÁÖ·Î ttymon°ú listen°ú °°Àº port monitor¸¦ ´õÇÏ°í Á¦°ÅÇϱâ À§ÇÏ¿© 
	»ç¿ëµÈ´Ù.
	´Ù¸¥ sacadm ±â´ÉÀº port monitorµéÀÇ »óŸ¦ º¼ ¼ö ÀÖ°í port monitor configuration
	scriptµéÀ» °ü¸®ÇÑ´Ù.

   A.1.2 Service Access Controller: sac program

	Service Access Controller program(sac)´Â ¸ðµç port monitorÀÇ °¨µ¶ÀÚÀÌ´Ù.
	¿öÅ©½ºÅ×À̼ÇÀ̳ª ¼­¹ö´Â ÀÚµ¿ÀûÀ¸·Î ¿©·¯ »ç¿ëÀÚ ¸ðµå·Î °¥¶§ sacÀ» ½ÃÀÛÇÑ´Ù.
	sacÀÌ ºÒ·ÁÁú¶§ óÀ½¿¡ sacÀÌ ±×°ÍÀÇ È¯°æÀ» ¼³Á¤ÇÏ´Â per-system configuration script¸¦
	ã°í Çؼ®ÇÑ´Ù.
	sac ȯ°æ¿¡ ¼öÁ¤µÈ °ÍÀº ¸ðµç sacÀÇ ÀڽĿ¡ ¹°·ÁÁø´Ù.
	ÀÌ ¹°·ÁÁø ȯ°æÀº Àڽĵ鿡 ÀÇÇØ ¼öÁ¤µÉ ¼öµµ ÀÖ´Ù.
	per-system configuration script¸¦ ã°í Çؼ®ÇÑ ÈÄ¿¡ ±×°ÍÀÇ °ü¸® È­ÀÏÀ» Àаí ÁöÁ¤µÈ
	port monitor¸¦ ½ÃÀÛÇÑ´Ù.
	°¢ port monitor¿¡ ´ëÇØ sacÀº ÀÚ½ÅÀÇ º¹»çº»À» ¼öÇàÇÑ´Ù.(±â¼úÀûÀ¸·Î ¸»Çϸé sac´Â "forks
	a child process")
	°¢ ÀڽĵéÀº ±×°ÍÀÇ  per-system configuration scriptÀÌ ¸¸¾à ÀÖ´Ù¸é ±×°ÍÀ» Çؼ®ÇÑ´Ù.
	¸¶Áö¸·À¸·Î ÀÚ½Ä ÇÁ·Î¼¼¼­´Â sac °ü¸® È­ÀÏ¿¡¼­ ¹ß°ßÇÒ ¼ö ÀÖ´Â ¸í·ÉÀ» »ç¿ëÇÏ¿© port
	monitor programÀ» ¼öÇàÇÑ´Ù.

	- SAC initialization process

	  ´ÙÀ½Àº sacÀÌ Ã³À½ ½ÃÀ۵ɶ§ ÀϾ´Â °ÍÀ» ¿ä¾àÇß´Ù.

	  1. sac ÇÁ·Î±×·¥Àº run level 2¿¡¼­ init¿¡ ÀÇÇØ ºÒ·ÁÁø´Ù(spawn).
	  2. sac ÇÁ·Î±×·¥Àº /etc/saf/_sacconfig,per-system configuration script,¸¦ Àд´Ù.
	  3. sac ÇÁ·Î±×·¥Àº /etc/saf/_sactab,SAC administrative file,À» Àд´Ù.
	  4. sac ÇÁ·Î±×·¥Àº ±×°ÍÀÌ ½ÃÀÛÇÏ´Â °¢ port monitor¸¦ À§ÇÑ ÀÚ½Ä ÇÁ·Î¼¼¼­¸¦ forkÇÑ´Ù.
	  5. °¢ port monitor´Â /etc/saf/pmtag/_config,per-port  configuration script,¸¦ Àд´Ù.

   A.1.3 port monitor service administrator: pmadm command

	pmadm ¸í·ÉÀº port monitorÀÇ ¼­ºñ½ºµéÀ» °ü¸®Çϵµ·Ï ÇÑ´Ù.
	Ưº°È÷ ¼­ºñ½º¸¦ ´õÇϰųª Á¦°ÅÇÏ°í ¼­ºñ½º¸¦ Çϰųª ÇÏÁö ¾Êµµ·ÏÇϱâ À§ÇÏ¿© pmadm ¸í·ÉÀ»
	»ç¿ëÇÑ´Ù.
	»ç¿ëÀÚ´Â per-service scriptµéÀ» ¹ö²Ù°Å³ª ¼³Ä¡ÇÒ ¼ö Àְųª ¼­ºñ½º¿¡ °üÇÑ Á¤º¸¸¦ º¼ ¼ö 
	ÀÖ´Ù.
	°¢ ¼­ºñ½ºÀÇ °æ¿ì´Â port monitor¿Í port¿¡ ÀÇÇØ À¯ÀÏÇÏ°Ô ±¸º°µÇ¾î¾ß¸¸ ÇÑ´Ù.
	¼­ºñ½º¸¦ °ü¸®Çϱâ À§ÇÏ¿© pmadm ¸í·ÉÀ» »ç¿ëÇÒ¶§ pmtag¸¦ ÅëÇØ Æ¯Á¤ÇÑ port monitor¿Í
	svctag¸¦ ÅëÇØ Æ¯Á¤ÇÑ port¸¦ ÁöÁ¤ÇÑ´Ù.
	°¢ port monitorÀÇ ÇüÅ¿¡ ´ëÇØ SAF´Â port monitor-specific configuration data¸¦ ¸¸µé±â
	À§ÇÏ¿© ƯÁ¤ÇÑ ¸í·ÉÀ» ¿ä±¸ÇÑ´Ù.
	ÀÌ µ¥ÀÌŸ´Â pmadm ¸í·É¿¡ ÀÇÇØ »ç¿ëµÈ´Ù.
	ttymon°ú listen type port monitor¿¡ ´ëÇØ ÀÌ Æ¯Á¤µÈ ¸í·ÉÀº °¢°¢ ttymon°ú nlsadminÀÌ´Ù.

	- port initialization process

	  ttymonÀÌ ASC¿¡ ÀÇÇØ ºÒ·ÁÁú¶§ ttymonÀº ±× Æ÷Æ®µéÀÇ ¸ð´ÏÅ͸¦ ½ÃÀÛÇÑ´Ù.
	  °¢ Æ÷Æ®¿¡ ´ëÇØ ttymonÀº óÀ½ ¶óÀÎ ±Ô¾à(line discipline),¸¸¾à ±×µéÀÌ ÁöÁ¤µÇ¾î ÀÖ´Ù¸é,
	  ,¼Óµµ¿Í Å͹̳¯ ¼³Á¤À» ÃʱâÈ­ ÇÑ´Ù.
	  ÃʱâÈ­¿¡ »ç¿ëµÈ °ªµéÀº /etc/ttydefs¾ÈÀÇ Àû´çÇÑ ¿£Æ®¸®¿¡¼­ ÃëÇØÁø´Ù.
	  ttymon port monitor´Â ÇÁ·ÒÇÁÆ®¸¦ ¾²°í »ç¿ëÀÚ ÀÔ·ÂÀ» ±â´Ù¸°´Ù.
	  ¸¸¾à »ç¿ëÀÚ°¡ Break key¸¦ ´©¸§À¸·Î ¼Óµµ°¡ ºÎÀû´çÇÏ´Ù°í °¡¸£Å°¸é ttymonÀº ´ÙÀ½ ¼Óµµ·Î
	  ½ÃµµÇÏ°í ´Ù½Ã ÇÁ·ÒÇÁÆ®¸¦ ¾´´Ù.
	  ¸¸¾à °¢ Æ÷Æ®¿¡ autobaud°¡ µÇ¸é ttymonÀº ÀÚµ¿ÀûÀ¸·Î Æ÷Æ®¿¡ ¼Óµµ¸¦ °áÁ¤ÇÏ·Á ÇÒ °ÍÀÌ´Ù.
	  »ç¿ëÀÚ´Â ttymonÀÌ ¼Óµµ¸¦ ÀνÄÇÏ°í ÇÁ·ÒÇÁÆ®¸¦ ÇÁ¸°Æ®Çϱâ Àü¿¡ ¹Ýµå½Ã ReturnÀ» ÃľßÇÑ´Ù.
	  ±âº»À¸·Î autobaud¿¡ ÀÇÇØ °áÁ¤ÇÒ ¼ö ÀÖ´Â ¼Óµµ´Â 110,1200,2400,4800°ú 9600ÀÌ´Ù.
	  (»ç¿ëÀÚ´Â ÀÌ ±âº» °ªÀ» /etc/ttydefs¸¦ ¼öÁ¤ÇϹǷΠ¹Ù²Ü ¼ö ÀÖ´Ù)
	  ºÐ¸íÇÑ ÀÔ·ÂÀÌ ¹Þ¾ÆÁú¶§ ttymonÀº ±× Æ÷Æ®¿¡ ´ëÇÑ per-service configuration file¸¦
	  Çؼ®ÇÏ¿© ¸¸¾à Çϳª°¡ Á¸ÀçÇÏ¸é ¿ä±¸¿¡µû¶ó /etc/utmp ¿£Æ®¸®¸¦ ¸¸µé°í ¼­ºñ½º ȯ°æÀ»
	  ¼³Á¤ÇÏ°í ±× Æ÷Æ®¿¡ °ü·ÃµÈ ¼­ºñ½º¸¦ »ì¸°´Ù.
	  ¸íÈ®ÇÑ ÀÔ·ÂÀº Àû¾îµµ ÇϳªÀÇ non-Newline ±ÛÀÚ·Î ±¸¼ºµÇ¾î ÀÖ°í ReturnÀ¸·Î ³¡¸¶ÃÄÁ®¾ß ÇÑ´Ù.
	  ¼­ºñ½º°¡ ³¡³­ ÈÄ¿¡ ttymonÀº /etc/utmp ¿£Æ®¸®¸¦ ±ú²ýÀÌ ÇÏ°í ¸¸¾à Çϳª°¡ Á¸ÀçÇÏ¸é ±×
	  Æ÷Æ®¸¦ óÀ½ »óÅ·Πµ¹¸°´Ù.

	- bidirectional service

	  Æ÷Æ®°¡ ¾ç¹æÇâ ¼­ºñ½º·Î µÇ¾îÀÖÀ¸¸é ttymonÀº ´ÙÀ½°ú °°Àº ÀÏÀ» ÇÒ °ÍÀÌ´Ù.

	  * »ç¿ëÀÚµéÀÌ ¼­ºñ½º¿¡ ¿¬°áµÇµµ·Ï ÇÑ´Ù.
	  * uucico,cu³ª ct°¡ dialing outÀ» À§ÇØ ±× Æ÷Æ®¸¦ »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÑ´Ù.
	  * ÇÁ·ÒÇÁÆ®¸¦ ¾²±â Àü¿¡ ±ÛÀÚ¸¦ ÀбâÀ§ÇØ ±â´Ù¸°´Ù.
	  * Æ÷Æ®¿¡ °ü·ÃµÈ ¼­ºñ½º¸¦ »ì¸°´Ù - ÇÁ·ÒÇÁÆ® ¸Þ¼¼Áö¸¦ º¸³»Áö ¾Ê°í - ¿¬°áÀÌ ¿ä±¸µÉ¶§(¸¸¾à
	    connect-on-carrier falg°¡ ¼³Á¤ µÇ¾ú´Ù¸é)

   A.1.4 port monitor: TTY monitor and network listner

	SAF°¡ third-party port monitorµé°ú ¹Ì·¡ÀÇ °ÍÀ» °ü¸®Çϱâ À§ÇÑ ÀϹÝÀûÀÎ ¼ö´ÜÀ»Á¦°øÇÔ¿¡µµ
	ºÒ±¸ÇÏ°í Áö±ÝÀº ´ÜÁö 2°¡Áö°¡ SunOS 5.0¿¡¼­ ¼öÇàµÈ´Ù: ttymon°ú listen

	- TTY port monitor: ttymon

	  ttymon port monitor´Â STREAMS-basedÀÌ´Ù.
	  ÀÌ°ÍÀº Æ÷Æ®µéÀ» ¸ð´ÏÅÍÇÑ´Ù; Å͹̳¯ ¸ðµå,¼Óµµ,¶ó´× ±Ô¾àÀ» ¼³Á¤ÇÏ°í ·Î±× ÀÎ ÇÁ·Î¼¼¼­¸¦ 
	  »ì¸°´Ù.
	  ÀÌ°ÍÀº ¾ÕÀÇ SunOS ¹öÁ¯ÇÏ¿¡¼­ getty°¡ Çß´ø °°Àº ÀÏÀ» Á¦°øÇÑ´Ù.
	  ttymon port monitor´Â sac ÇÁ·Î±×·¥ÇÏ¿¡¼­ ½ÇÇàÇÑ´Ù.
	  ÀÌ°ÍÀº sacadm ¸í·ÉÀ» »ç¿ëÇÏ¿© ¼³Á¤(configure)µÈ´Ù.
	  ttymon´Â ¿©·¯°³ÀÇ Æ÷Æ®µéÀ» ¸ð´ÏÅÍ ÇÒ ¼ö ÀÖ´Ù.
	  ÀÌ Æ÷Æ®µéÀº port monitorÀÇ °ü¸® È­ÀÏ¿¡ ÁöÁ¤µÈ´Ù.
	  ÀÌ °ü¸® È­ÀÏÀº pmadm°ú ttyadm ¸í·ÉÀ» »ç¿ëÇÏ¿© ¼³Á¤(configure)µÈ´Ù.

	- special ttymon-specific administrative command: ttyadm

	  port monitorÀÇ °ü¸® È­ÀÏÀº sacadm°ú omadm¿¡ ÀÇÇØ °»½ÅµÉ »Ó¸¸ ¾Æ´Ï¶ó port-monitorÀÇ
	  ƯÁ¤µÈ Ưº°ÇÑ °ü¸® ¸í·É¿¡ ÀÇÇØ °»½ÅµÈ´Ù.
	  ttyadm ¸í·ÉÀº ttymon port monitorÀÇ Æ¯º°ÇÑ °ü¸® ¸í·ÉÀÌ´Ù.
	  ttyadm ¸í·ÉÀº ttymon-specific Á¤º¸¸¦ ¸¸µé°í ±×°ÍÀ» standard output¿¡ ¾²°í ¸¸µé¾îÁø
	  ttymon-specific µ¥ÀÌŸ¸¦ sacadm°ú pmadm ¸í·É¿¡ ³ªÅ¸³»´Â ¼ö´ÜÀ» Á¦°øÇÑ´Ù.
	  ±×·¡¼­ ttyadmÀº Á÷Á¢ ttymonÀ» °ü¸®ÇÏÁö ¾Ê´Â´Ù.
	  ¿ÀÈ÷·Á ÀϹÝÀûÀÎ °ü¸® ¸í·ÉÀÎ sacadm°ú pmadmÀ» ¼öÇàÇϴµ¥ ºÀ»çÇÑ´Ù.
	  
	- network listen service: listen

	  listen port monitor´Â sacÇÏ¿¡¼­ ½ÇÇàÇÑ´Ù.
	  ÀÌ°ÍÀº ³×Æ®¿öÅ©¿¡¼­ ¼­ºñ½º ¿ä±¸¸¦ µè°í("listen") ±×µéÀÌ µµÂøÇÏ¸é ¿ä±¸¸¦ ¹Þ¾ÆµéÀÌ°í 
	  ±× ¼­ºñ½º ¿ä±¸¿¡ ¹ÝÀÀÇÏ¿© ¼­¹ö¸¦ »ì¸°´Ù.
	  listen port monitor´Â sacadm ¸í·ÉÀ» »ç¿ëÇÏ¿© ¼³Á¤ÇÑ´Ù.
	  °¢ listenÀº ¿©·¯°³ÀÇ ¼­ºñ½º¸¦ Áö¿øÇÒ ¼ö ÀÖ´Ù.
	  ÀÌ ¼­ºñ½ºµéÀº port monitorÀÇ °ü¸® È­ÀÏ¿¡ ÁöÁ¤µÈ´Ù.
	  ÀÌ °ü¸® È­ÀÏÀº pmadm°ú nlsadmin ¸í·ÉÀ» »ç¿ëÇÏ¿© ¼³Á¤µÈ´Ù.
	  network listener process´Â Transport Layer Interface(TLI) specification¿¡ ÀÏÄ¡ÇÏ´Â
	  connection-oriented transport provider¿Í ÇÔ²² »ç¿ëµÉ ¼ö ÀÖ´Ù.
	  SunOS 5.0¿¡¼­´Â listen port monitor´Â ÇÁ¸°Æ® ¼­ºñ½º¿Í °°Àº inetd¿¡ ÀÇÇØ Á¦°øµÇÁö
	  ¾Ê´Â ³×Æ®¿öÅ© ¼­ºñ½ºµµ Á¦°øÇÑ´Ù.

	- special listen-specific administrative command: nlsadmin

	  port monitorÀÇ °ü¸® È­ÀÏÀº sacadm°ú pmadm¿¡ ÀÇÇØ °»½ÅµÉ °»½ÅµÉ »Ó¸¸ ¾Æ´Ï¶ó 
	  port monitor-specificÇÑ Æ¯º°ÇÑ °ü¸® ¸í·É¿¡ ÀÇÇؼ­µµ °»½ÅµÈ´Ù.
	  nlsadmin ¸í·ÉÀº listen port monitorÀÇ Æ¯º°ÇÑ °ü¸® ¸í·ÉÀÌ´Ù.
	  nlsadmin ¸í·ÉÀº listen-specific Á¤º¸¸¦ ¸¸µé°í ±×°ÍÀ» standard output¿¡ ¾²°í ¸¸µé¾îÁø
	  listen-specific µ¥ÀÌŸ¸¦ sacadm°ú pmadm ¸í·É¿¡ ³ªÅ¸³»´Â ¼ö´ÜÀ» Á¦°øÇÑ´Ù.
	  ±×·¡¼­ nlsadminÀº Á÷Á¢ listenÀ» °ü¸®ÇÏÁö ¾Ê´Â´Ù.
	  ¿ÀÈ÷·Á ÀϹÝÀûÀÎ °ü¸® ¸í·ÉÀÎ sacadm°ú pmadmÀ» ¼öÇàÇϴµ¥ ºÀ»çÇÑ´Ù.
	  °¢ ³×Æ®¿öÅ©Àº Àû¾îµµ ±×°Í¿¡ °ü·ÃµÈ network listen process¸¦ °®´Â´Ù.
	  °¢ ³×Æ®¿öÅ©Àº °³º°ÀûÀ¸·Î ¼³Á¤µÈ´Ù.
	  nlsadmin ¸í·ÉÀº listen port monitorÀÇ µ¿ÀÛ »óŸ¦ Á¦¾îÇÑ´Ù.
	  nlsadmin ¸í·ÉÀº ÁÖ¾îÁø ³×Æ®¿öÅ©¿¡ listen port monitor¸¦ ¼º¸³ÇÒ ¼ö ÀÖ°í ±× port monitor¿¡
	  ÁöÁ¤µÈ Ư¼ºÀ» ¼³Á¤ÇÏ°í monitor¸¦ »ì¸®°Å³ª Á×ÀÏ ¼ö ÀÖ´Ù.
	  nlsadmin ¸í·ÉÀº ¶ÇÇÑ ±â°è¿¡ listen port monitor¿¡ º¸°í¸¦ ÇÒ ¼ö ÀÖ´Ù.

A.2 Administering ttymon port monitors

	ttymon port monitorÀÇ »óŸ¦ º¸°í,½ÇÇàÇÏ°í,¾ÈÇÏ°í,½ÃÀÛÇÏ°í,³¡³»°í,Á×ÀÌ°í,Á¦°ÅÇÏ°í,´õÇϱâ
	À§ÇÏ¿© sacadm ¸í·ÉÀ» »ç¿ëÇÑ´Ù.

	- adding a ttymon port monitor

	  ttymon port monitor¸¦ ´õÇϱâ À§Çؼ­´Â 

	  # sacadm -a -p ttymon_mb -t ttymon -c /usr/lib/saf/ttymon -v `ttymon -V`
	    -y "TTY ports a & b"

	  -a	port monitor flag¸¦ ´õÇÑ´Ù.
	  -p	port monitor flag·Î pmtag ttymon_mb¸¦ ÁöÁ¤ÇÑ´Ù.
	  -t	port monitor type¸¦ ttymonÀ¸·Î ÁöÁ¤ÇÑ´Ù.
	  -c	port monitor¸¦ ½ÃÀÛÇϱâ À§ÇÏ¿© »ç¿ëµÇ´Â ¸í·ÉÀ» Á¤ÀÇÇÑ´Ù.
	  -v	port monitorÀÇ ¹öÁ¯ ¹øÈ£¸¦ ÁöÁ¤ÇÑ´Ù.
	  -y	port monitor¸¦ ¼³¸íÇϱâ À§ÇÑ ÁÖ¼®À» Á¤ÀÇÇÑ´Ù.

	- listing ttymon port monitor status

	  ttymon port monitorÀÇ ¸ñ·Ï »óŸ¦ ¾ò±â À§ÇÏ¿©

	  # sacadm -l -p ttymon_mb

	  -l	port monitor status flagÀÇ ¸ñ·Ï
	  -p	port monitor flag·Î pmtag ttymon_mb¸¦ ÁöÁ¤ÇÑ´Ù.

	- killing a ttymon port monitor

	  # sacadm -k -p ttymon_mb

	  -k	port monitor status flag¸¦ Á×ÀδÙ.
	  -p	port monitor flag·Î pmtag ttymon_mb¸¦ ÁöÁ¤ÇÑ´Ù.

	- starting a ttymon port monitor

	  # sacadm -s -p ttymon_mb

	  -s	port monitor status flag¸¦ ½ÃÀÛÇÑ´Ù.
	  -p	port monitor flag·Î pmtag ttymon_mb¸¦ ÁöÁ¤ÇÑ´Ù.

	- disabling a ttymon port monitor

	  ÀÖ´Â ¼­ºñ½º¿¡ ¿µÇâ¾øÀÌ port monitor°¡ »õ·Î¿î ¼­ºñ½º¸¦ ½ÃÀÛÇÏÁö ¾Êµµ·Ï ÇÑ´Ù.

	  # sacadm -d -p ttymon_mb

	  -d	port monitor status flag¸¦ ÇÏÁö ¾Êµµ·Ï ÇÑ´Ù.
	  -p	port monitor flag·Î pmtag ttymon_mb¸¦ ÁöÁ¤ÇÑ´Ù.

	- enabling a ttymon port monitor

	  »õ·Î¿î ¼­ºñ½º¸¦ ÇÒ ¼ö ÀÖµµ·Ï ÇÑ´Ù.
	
	  # sacadm -e -p ttymon_mb

	  -e	port monitor status flag¸¦ ÇÒ ¼ö ÀÖµµ·Ï ÇÑ´Ù.
	  -p 	port monitor flag·Î pmtag ttymon_mb¸¦ ÁöÁ¤ÇÑ´Ù.

	- removing a ttymon port monitor

	  ttymon port monitor¸¦ Á¦°ÅÇÑ´Ù.

	  # sacadm -r -p ttymon_mb

	  -r	port monitor status flag¸¦ Á¦°Å»óÅ·Π³õ´Â´Ù.
	  -p    port monitor flag·Î pmtag ttymon_mb¸¦ ÁöÁ¤ÇÑ´Ù.

 A.3 Administering ttymon services

	port monitor¿Í °ü·ÃµÈ Çϳª ÀÌ»óÀÇ ¼­ºñ½º¸¦ º¸°í,´õÇÏ°í,ÇÒ ¼ö ÀÖ°í,¾øµµ·Ï Çϱâ À§ÇÏ¿©
	pmadmÀ» »ç¿ëÇÑ´Ù.

	- adding a service

	  ttymon_mb port monitor¿¡ Ç¥ÁØ Å͹̳¯ ¼­ºñ½º¸¦ ´õÇÑ´Ù.

	  # pmadm -a -p ttymon_mb -s a -o root -v `ttymon -V` -m "`ttyadm -i 'Terminal disabled.'
	    -l contty -m ldterm,ttcompat -d /dev/term/a -s /usr/bin/login`"

	  -a	´õÇÑ´Ù(add)
	  -p	pmtag ttymon_mb¸¦ port monitor flag·Î ÁöÁ¤ÇÑ´Ù.
	  -s	port monitor service tag¸¦ svctag a·Î ÁöÁ¤ÇÑ´Ù.
	  -i	½ÇÇàµÉ¶§ svctag¿¡ ÇÒ´çµÇ¾îÁú identity¸¦ ÁöÁ¤ÇÑ´Ù.
	  -v	port monitorÀÇ ¹öÁ¯ ¹øÈ£¸¦ ÁöÁ¤ÇÑ´Ù.
	  -m	ttyadm¿¡ ÀÇÇØ ¸¸µé¾îÁø ttymon-specific configuration data¸¦ ÁöÁ¤ÇÑ´Ù.

	- syntax for the ttyadm command

	  À§ÀÇ pmadm ¸í·ÉÀº ³»ºÎ¿¡ ttyadm ¸í·ÉÀ» Æ÷ÇÔÇÑ´Ù.
	
	   -b	bidirectional port flag
	   -i	inactive(disabled) response message¸¦ ÁöÁ¤ÇÑ´Ù.
	   -l	»ç¿ëÇÏ´Â /dev/ttydefs¾ÈÀÇ TTY label¸¦ ÁöÁ¤ÇÑ´Ù.
	   -m	ÀÌ ¼­ºñ½º¸¦ »ì¸®±â Àü¿¡ µé¾î°¡´Â STREAMS modules¸¦ ÁöÁ¤ÇÑ´Ù.
	   -d	TTY port¸¦ »ç¿ëÇϱâ À§ÇÑ µð¹ÙÀ̽º¿¡ ´ëÇÑ Àý´ë °æ¸¦ ÁöÁ¤ÇÑ´Ù.
	   -s	¿¬°á ¿ä±¸¸¦ ¹ÞÀ»¶§ »ì·ÁÁö´Â ¼­ºñ½ºÀÇ Àý´ë °æ¸¦ ÁöÁ¤ÇÑ´Ù.;¸¸¾à ¾Æ±Ô¸ÕÆ®°¡
		¿ä±¸µÇ¸é ¸í·É°ú ¾Æ±Ô¸ÕÆ®¸¦ quotation marks(")·Î µÑ·¯½Ñ´Ù.

	- listing the status of a TTY port service

	  TTY portÀÇ »óŸ¦ º¸°Å³ª port monitor¿¡ °ü·ÃµÈ ¸ðµç Æ÷Æ®ÀÇ »óŸ¦ º¸±â À§ÇÏ¿©
	  pmadm ¸í·ÉÀ» »ç¿ëÇÑ´Ù.
	  
	  * listing one service

	    - port monitorÀÇ ÇϳªÀÇ ¼­ºñ½º¸¦ º¸±â À§ÇÏ¿©

	      # pmadm -l -p ttymon_mb -s a

		-l	¼­ºñ½º Á¤º¸ÀÇ ¸ñ·Ï¿¡ ´ëÇÑ ÇÁ·¡±×(flag)
	  	-p	pmtag ttymon_mb¸¦ port monitor flag·Î ÁöÁ¤ÇÑ´Ù.
	  	-s	port monitor service tag¸¦ svctag a·Î ÁöÁ¤ÇÑ´Ù.

	  * port monitorÀÇ ¸ðµç ¼­ºñ½º¸¦ º¸±â À§ÇÏ¿©

	      # pmadm -l -p ttymon_mb

		-l	¼­ºñ½º Á¤º¸ÀÇ ¸ñ·Ï¿¡ ´ëÇÑ ÇÁ·¡±×(flag)
		-p	pmtag ttymon_mb¸¦ port monitor flag·Î ÁöÁ¤ÇÑ´Ù.

	  * ¸ðµç port monitorÀÇ ¸ðµç ¼­ºñ½º¸¦ º¸±â À§ÇÏ¿©

	      # pmadm -l

		-l      ¼­ºñ½º Á¤º¸ÀÇ ¸ñ·Ï¿¡ ´ëÇÑ ÇÁ·¡±×(flag)

	- enabling a port monitor service

		# pmadm -e -p ttymon_mb -s a

		-e 	enable flag
		-p	pmtag ttymon_mb¸¦ port monitor flag·Î ÁöÁ¤ÇÑ´Ù.
		-s	port monitor service tag¸¦ svctag a·Î ÁöÁ¤ÇÑ´Ù.

	- disabling a port monitor service

		# pmadm -d -p ttymon_mb -s a

		-d 	disable flag

 A.4 Administering listen port monitors

	listen port monitorÀÇ »óŸ¦ °Ë»çÇÏ°í,enable,disable,kill,start,remove,add¸¦ Çϱâ
	À§ÇÏ¿© sacadm ¸í·ÉÀ» »ç¿ëÇÑ´Ù.

	- adding a listen port monitor

		# sacadm -a -p tcp -t listen -c /usr/lib/saf/listen -v `nlsadmin -V`
		  -y "le0 ethernet"

	- listing listen port monitor status

		# sacadm -l -p tcp

	- killing a listen port monitor

		# sacadm -k -p tcp

	- starting a listen port monitor

		# sacadm -s -p tcp

	- enabling a listen port monitor

		# sacadm -e -p tcp

	- disabling a listen port monitor

		# sacadm -d -p tcp

	- removing a listen port monitor

		# sacadm -r -p tcp

 A.5 Admonistering listen port monitor services

	listen port monitor¿¡ °ü·ÃµÈ ¼­ºñ½º¸¦ list,disable,enable,add Çϱâ À§ÇÏ¿© pmadm ¸í·ÉÀ»
	»ç¿ëÇÑ´Ù.

	- adding a listen port monitor service

		# pmadm -a -p tcp -s lp -i root -v `nlsadmin -V` -m "`nlsadmin -o 
		  /var/spool/lp/fifos/listenS5 `"

	- listening listen port monitor service

		# pmadm -l -p tcp

	- enabling a listen port monitor service

		# pmadm -e -p tcp -s lp

	- disabling a listen port monitor service

		# pmadm -d -p tcp -s lp

 A.6 Reference material for Service Access Facility administration

	- files associated with SAF

	  SAF´Â sacadm°ú pmadm ¸í·ÉÀ» »ç¿ëÇÏ¿© ¼öÁ¤ÇÒ ¼ö ÀÖ´Â ¸î°³ÀÇ configuration È­ÀϵéÀ»
	  »ç¿ëÇÑ´Ù.
	  ¼ÕÀ¸·Î ±×µéÀ» ÆíÁý ÇÒ ÇÊ¿ä´Â ¾ø´Ù.

	   ǥ A-2 SAF-associated files
	  ------------------------------------------------------------------------------
	  file name				description
	  ------------------------------------------------------------------------------
	  /etc/saf/_sysconfig		per-system configuration script
	  /etc/saf/_sactab		SAC °ü¸® È­ÀÏ;SAC¸¦ Á¦¾îÇÏ´Â oprt monitor¸¦ À§ÇÑ
					configuration data¸¦ Æ÷ÇÔÇÑ´Ù.
	  /etc/saf/pmtag		port monitor pmtag¸¦ À§ÇÑ È¨ µð·ºÅ丮
	  /etc/saf/pmtag/_config	port monitor pmtag¸¦ À§ÇÑ per-port monitor
					configuration script
	  /etc/saf/pmtag/_pmtab		port monitor pmtagÀÇ °ü¸® È­ÀÏ;pmtag ¼­ºñ½º¸¦ Áö¿øÇϱâ
					À§ÇÑ port monitor-specific configuration  data¸¦
					Æ÷ÇÔÇÑ´Ù.
	  /etc/saf/pmtag/svctag		service svctag¸¦ À§ÇÑ per-service configuration script
	  /etc/saf/log			SACÀÇ log file
	  /var/saf/pmtag		pmtag¿¡ ÀÇÇØ ¸¸µé¾îÁø È­ÀϵéÀ» À§ÇÑ µð·ºÅ丮;¿¹·Î 
					log files
	  ------------------------------------------------------------------------------

	- service states

	  sacadm ¸í·ÉÀº ¼­ºñ½ºÀÇ »óŸ¦ Á¦¾îÇÑ´Ù.
	  °¡´ÉÇÑ »óÅ´ ¾Æ·¡¿Í °°´Ù.

	  ------------------------------------------------------------------------------
		state			notes
	  ------------------------------------------------------------------------------
	  Enabled		default state - port monitor°¡ ´õÇØÁú¶§ ¼­ºñ½º°¡ µ¿ÀÛÇÑ´Ù.
	  Disabled		default state - port monitor°¡ Á¦°ÅµÉ¶§ ¼­ºñ½º°¡ ¸ØÃá´Ù.
	  ------------------------------------------------------------------------------

	  ƯÁ¤ÇÑ ¼­ºñ½ºÀÇ »óŸ¦ °áÁ¤Çϱâ À§ÇÏ¿© pmadm -l -p portmon_name -s svctag¸¦ »ç¿ëÇÑ´Ù.

	- port monitor states

	  sacadm ¸í·ÉÀº ttymon°ú listen port monitorÀÇ »óŸ¦ Á¦¾îÇÑ´Ù.
	  °¡´ÉÇÑ »óÅ´ ¾Æ·¡¿Í °°´Ù.

	  ------------------------------------------------------------------------------
	  	state				notes
	  ------------------------------------------------------------------------------
	  Started	default state - port monitor°¡ ´õÇØÁú¶§ ÀÚµ¿À¸·Î ½ÃÀÛÇÑ´Ù.
	  Enabled	default state - port monitor°¡ ´õÇØÁú¶§ ÀÚµ¿À¸·Î ¼­ºñ½º¿¡ ´ëÇÑ
			¿ä±¸¸¦ ¹ÞÀ» Áغñ°¡ µÈ´Ù.
	  Stopped	default state - port monitor°¡ Á¦°ÅµÉ¶§ ÀÚµ¿À¸·Î ¸ØÃá´Ù.
	  Disabled	default state - port monitor°¡ Á¦°ÅµÉ¶§ ÀÚµ¿À¸·Î ÀÖ´Â ¼­ºñ½º´Â
			°è¼ÓÇÏ°í »õ·Î¿î ¼­ºñ½ºµéÀ» ´õÇÏ´Â °ÍÀ» °ÅÀýÇÑ´Ù.
	  Starting	intermediate state - port monitor°¡ ½ÃÀÛÇÏ´Â °úÁ¤¿¡ ÀÖ´Ù.
	  Stopping	intermediate state -  port monitor°¡ ¼ÕÀ¸·Î ¸ØÃçÁö³ª ±×°ÍÀÇ shutdown
			ÇÁ·Î½ÃÁ®¸¦ ³¡³»Áö ¾Ê´Â´Ù.
			ÀÌ°ÍÀº notrunningÀÌ µÇ´Â °úÁ¤¿¡ ÀÖ´Ù.
	  Notrunning	inactive state - port monitor°¡ Á״´Ù.
			Àü¿¡ ¸ð´ÏÅÍµÈ ¸ðµç Æ÷Æ®´Â Á¢±Ù ÇÒ ¼ö ¾ø´Ù.
			¹ÛÀÇ »ç¿ëÀÚ´Â ÀÌ Æ÷Æ®°¡ disabled°Å³ª notrunningÀÎÁö ¸»ÇÒ ¼ö ¾ø´Ù.
	  Failed	inactive state - port monitor°¡ ½ÃÀÛÇÒ ¼ö ¾ø°í ½ÇÇàµÈä·Î ³²¾ÆÀÖ´Ù.
	  ------------------------------------------------------------------------------

	  ƯÁ¤ÇÑ ¼­ºñ½ºÀÇ »óŸ¦ °áÁ¤Çϱâ À§ÇÏ¿© sacadm -l -p portmon_nameÀ» »ç¿ëÇÑ´Ù.

	- port state

	  Serial(ttymon) port states

		Enabled
		Disabled

	  Network(listen) port states

	 	Enabled
		Disabled


Revision History
Created        on Jan  21 ,1993