YaST SCR Agents


Table of Contents

1. .anyxml
2. .audio
3. .autoyast2.desktop
4. .background
5. .backup.file_append
6. .backup.free_space
7. .barexml
8. .boot.vmlinuz_version
9. .bootloader
10. .complain
11. .content
12. .content_file
13. .crack
14. .cron
15. .cups
16. .curl
17. .dev.tty
18. .dns.named
19. .dns.named-forwarders
20. .dns.named_conf_convert
21. .dns.zone
22. .drbd
23. .dummy
24. .etc.cryptotab
25. .etc.cups.client_conf
26. .etc.cups.cupsd_conf
27. .etc.cups.printers_conf
28. .etc.default.passwd
29. .etc.default.useradd
30. .etc.defaultdomain
31. .etc.dhcpd_conf
32. .etc.exports
33. .etc.fstab
34. .etc.hosts
35. .etc.idmapd_conf
36. .etc.ietd
37. .etc.imapd_conf
38. .etc.inetd_conf
39. .etc.inittab
40. .etc.install_inf
41. .etc.install_inf_alias
42. .etc.install_inf_options
43. .etc.iscsid
44. .etc.iscsid
45. .etc.krb5_conf
46. .etc.ldap_conf
47. .etc.login_defs
48. .etc.mtab
49. .etc.multipath
50. .etc.nsswitch_conf
51. .etc.ntp_conf
52. .etc.pam_pkcs11_conf
53. .etc.passwd
54. .etc.policykit
55. .etc.resolv_conf
56. .etc.security
57. .etc.security_winbind
58. .etc.slp
59. .etc.slp.reg
60. .etc.smb
61. .etc.squid
62. .etc.ssh.ssh_config
63. .etc.ssh.sshd_config
64. .etc.xinetd_conf
65. .etc.xinetd_d.tftp
66. .etc.yp_conf
67. .genprof
68. .http_server
69. .init.insserv_conf
70. .init.scripts
71. .isdn
72. .kadmin
73. .kdc_conf
74. .kickstart
75. .kiwi
76. .krb5_conf
77. .ldap
78. .ldapserver
79. .logparse
80. .logprof
81. .mail.aliases
82. .mail.cyrusconf
83. .mail.fetchmail
84. .mail.ldaptable
85. .mail.postfix.auth
86. .mail.postfix.main
87. .mail.postfix.mastercf
88. .mail.postfix.saslpasswd
89. .mail.postfix.sendercanonical
90. .mail.postfix.virtual
91. .mail.sendmail.auth
92. .mail.sendmail.generics
93. .mail.sendmail.virtuser
94. .modinfo
95. .modprobe_blacklist
96. .modprobe_newid
97. .modprobe_sound
98. .modprobe_tv
99. .modules
100. .net.hostnames
101. .net.showexports
102. .net.ypserv
103. .network
104. .nis
105. .packages_descr
106. .passwd
107. .pattern
108. .phone-services
109. .ping
110. .ppd
111. .ppd.file.modify
112. .probe
113. .proc.cmdline
114. .proc.cpuinfo
115. .proc.dasddev
116. .proc.filesystems
117. .proc.meminfo
118. .proc.modules
119. .proc.mounts
120. .proc.partitions
121. .proc.serial.devices
122. .proc.swaps
123. .process
124. .product.features
125. .providers
126. .pure-ftpd
127. .reports_confined
128. .reports_ess
129. .reports_parse
130. .reports_sched
131. .resolver
132. .root.curlrc
133. .root.wgetrc
134. .routes
135. .run.df
136. .run.get.suseconfig.modules
137. .run.ifconfig
138. .run.ypwhich_m
139. .scpm
140. .sdconf
141. .slp
142. .smb.queues
143. .smt_conf
144. .smt_cron
145. .subdomain
146. .subdomain_profiles
147. .sudo
148. .support.key
149. .sysconfig.SuSEfirewall2
150. .sysconfig.add-on-creator
151. .sysconfig.amavis
152. .sysconfig.apache
153. .sysconfig.apache2
154. .sysconfig.autoinstall
155. .sysconfig.bootloader
156. .sysconfig.bootsplash
157. .sysconfig.casa-ats
158. .sysconfig.clock
159. .sysconfig.console
160. .sysconfig.dhcpd
161. .sysconfig.displaymanager
162. .sysconfig.fam
163. .sysconfig.fetchmail
164. .sysconfig.firstboot
165. .sysconfig.gpm
166. .sysconfig.hardware
167. .sysconfig.hotplug
168. .sysconfig.ide
169. .sysconfig.irda
170. .sysconfig.joystick
171. .sysconfig.kdump
172. .sysconfig.kernel
173. .sysconfig.keyboard
174. .sysconfig.language
175. .sysconfig.ldap
176. .sysconfig.lirc
177. .sysconfig.locate
178. .sysconfig.mail
179. .sysconfig.mouse
180. .sysconfig.named
181. .sysconfig.network.config
182. .sysconfig.network.dhcp
183. .sysconfig.network.providers
184. .sysconfig.nfs
185. .sysconfig.ntp
186. .sysconfig.onlineupdate
187. .sysconfig.openafs-client
188. .sysconfig.openldap
189. .sysconfig.postfix
190. .sysconfig.printer
191. .sysconfig.product-creator
192. .sysconfig.proxy
193. .sysconfig.scpm
194. .sysconfig.security
195. .sysconfig.sendmail
196. .sysconfig.slmodemd
197. .sysconfig.sound
198. .sysconfig.storage
199. .sysconfig.suse_register
200. .sysconfig.suseconfig
201. .sysconfig.sysctl
202. .sysconfig.windowmanager
203. .sysconfig.ypbind
204. .sysconfig.ypserv
205. .target
206. .tftp
207. .thinkfinger
208. .udev_persistent
209. .uid
210. .var.yp.makefile
211. .var.yp.securenets
212. .var.yp.ypservers
213. .vsftpd
214. .x_version
215. .xauth
216. .xawtvrc
217. .xml
218. .xmlrepos
219. .yast2.desktop
220. .yast2.groups
221. .you.config
222. .you.password
223. .zypp_repos

Abstract

Attention! API of all SCR Agents is still marked unstable and could change without any preceding warning.

1. .anyxml

Agent for reading any XML files.

1.1. Description

File Name: /usr/share/YaST2/scrconf/anyxml.scr

1.2. Usage

Example 1. 

SCR::Read (.anyxml, "/root/some_file.xml")


2. .audio

Agent for reading / writing audio device

2.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/audio.scr

2.2. Usage

Example 2. 

Dir(.etc.chandev_conf)
(["qeth0", "lcs1", "ctc0", "escon0", "hsi7"])
Read(.etc.chandev_conf.ctc0)
("0x0600,0x0601,0,0")
Write(.etc.chandev_conf.ctc0, "0x0600,0x0601,0,1")
(true)


3. .autoyast2.desktop

Agent for reading/writing yast2 menuentries

3.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/autoinstall.scr

3.2. Usage

Example 3. 

Dir(.yast2.menuentry)
(["lan", "modem", "isdn", ...])
Read(.yast2.menuentry.lan)
("3")


4. .background

SCR Agent for executing processes on the background

4.1. Description

Access type: read/execute

File Name: /usr/share/YaST2/scrconf/background.scr

4.2. Usage

Example 4. 

Execute(.run_output, "/bin/date") -> (true)
Read(.newlines) -> (1)
Read(.newout) -> [ "Tue Oct 16 09:21:18 CEST 2001" ]
Read(.newlines) -> (0)
Read(.isrunning) -> (false)
Read(.status) -> (0)
This script executes programm on background. Reading full
subprocess STDOUT or only number of output lines is possible while
programm is running.


5. .backup.file_append

Agent for appending strings to the file

5.1. Description

Access type: write

File Name: /usr/share/YaST2/scrconf/cfg_backup.scr

6. .backup.free_space

Agent for getting the free space in the directory (in 1K blocks)

6.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/cfg_backup_freespace.scr

6.2. Usage

Example 5. 

	Read(.backup.free_space, "/tmp")
	(3752236)
	Read(.backup.free_space, "/abcd1")
	(-1) // Directory does not exist or is not a directory
	Read(.backup.free_space, "/abcd2")
	(-1) // Cannot find '/bin/df' binary
 Agent calls command '/bin/df $directory' and returns the available space
 in 1K blocks. -1 is returned in case of any error, such as 'Directory does
 not exist', 'Object is not a directory', '/bin/df does not exist on the
 system' or 'Directory not defined'. Every error should appear in the y2log.


7. .barexml

Agent for reading any XML files. It's buggy in case of comments in the XML file.

7.1. Description

File Name: /usr/share/YaST2/scrconf/barexml.scr

7.2. Usage

Example 6. 

SCR::Read (.barexml, "/root/some_file.xml")


8. .boot.vmlinuz_version

Agent for reading /etc/exports

8.1. Description

Returns the version of the kernel image given as the second argument

Access type: read/write

File Name: /usr/share/YaST2/scrconf/boot_vmlinuz_version.scr

8.2. Usage

Example 7. 

Read(.boot.vmlinuz_version, "/boot/vmlinuz")
("2.2.18")


9. .bootloader

SCR Agent for accessing bootloader configuration

9.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/bootloader.scr

See: libscr

10. .complain

10.1. Description

File Name: /usr/share/YaST2/scrconf/complain.scr

11. .content

Agent for reading/writing /content

11.1. Description

Access type: read only

File Name: /usr/share/YaST2/scrconf/content.scr

11.2. Usage

Example 8. 

Dir(.content)
(["PRODUCT", "VERSION", ...])
Read(.content.PRODUCT)
("8.1")


12. .content_file

SCR Agent for parsing content file

12.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/contentfile.scr

See: libscr

12.2. Usage

Example 9. 

map contentmap = (map)SCR::Read(.content_file, path_to_content_file);


13. .crack

Agent for testing passwords witch cracklib library

13.1. Description

Access type: read-only

File Name: /usr/share/YaST2/scrconf/crack.scr

See: cracklib: /usr/share/doc/cracklib

13.2. Usage

Example 10. 

  Read(.crack, password)
  ("OK")
  Read(.crack, "qqqqq")
  ("it doeas not contain enough DIFFERENT characters")
Return value:
  error message if password is not strong enough, "OK" when OK


14. .cron

SCR Agent for reading cron files

14.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cron.scr

See: libscr

14.2. Usage

Example 11. 

Read(.cron,$[..])


15. .cups

SCR Agent for reading/writing the cups configuration using the rc-agent

15.1. Description

Read/Sets various configuration files for cups. See its own documentation for details.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cups.scr

See: source/y2a_cups/doc/cups.html y2a_cups/index.html libscr man cupsd man cupsd.conf man printers.conf

15.2. Usage

Example 12. 


16. .curl

Curl agent

16.1. Description

Access type: execute-only

File Name: /usr/share/YaST2/scrconf/curl.scr

See: curl(1), libcurl(3)

16.2. Usage

Example 13. 

Dir(.curl)
(["WHAT", "EVER", "YOU", "GET"])
Read(.curl)
("WHAT_EVER_YOU_GET")
Write(.curl, value)
(true)


17. .dev.tty

SCR Agent for reading/writing using readline

17.1. Description

Reads and writes /dev/tty using the Term::Readline Perl module. Supported paths are .dev.tty (Read and Write) for the readline, .dev.tty.prompt (Write) for setup of the prompt. TTY() in initialization is to make the Perl agent happy

Access type: read/write

File Name: /usr/share/YaST2/scrconf/tty.scr

See: anyagent libscr

18. .dns.named

Agent for rading and writing of /etc/named.conf file

18.1. Description

Access type: read, write

File Name: /usr/share/YaST2/scrconf/dns_named.scr

19. .dns.named-forwarders

Agent for rading and writing of DNS zone files

19.1. Description

Access type: read, write

File Name: /usr/share/YaST2/scrconf/named_forwarders.scr

20. .dns.named_conf_convert

Agent for converting named.conf into the readable format

20.1. Description

Access type: execute

File Name: /usr/share/YaST2/scrconf/convert_named_conf.scr

21. .dns.zone

Agent for rading and writing of DNS zone files

21.1. Description

Access type: read, write

File Name: /usr/share/YaST2/scrconf/dns_zone.scr

22. .drbd

22.1. Description

File Name: /usr/share/YaST2/scrconf/drbd.scr

23. .dummy

SCR Agent for testing

23.1. Description

Test agent. Returns the default (second arg to DataMap) for relative root (.dummy) or looks up the path in the map (first arg to DataMap)

Access type: read/write

File Name: /usr/share/YaST2/scrconf/dummy.scr

See: libscr

23.2. Usage

Example 14. 

`ag_dummy (
  DataMap($["a":1,"b":$["c":2, "d":3]], 0)
)
Read(.dummy)
(0)
Read(.dummy.a)
(1)
Read(.dummy.b)
($["c":2, "d":3])
Read(.dummy.b.d)
(3)


24. .etc.cryptotab

SCR Agent for reading/writing /etc/cryptotab

24.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_cryptotab.scr

See: anyagent man mount

24.2. Usage

Example 15. 

   Original /etc/cryptotab:
     /dev/loop0  /dev/hda3       /abuild  reiserfs  twofish  noatime
     /dev/loop1  /tmp/cryptfile  /mnt     ext2      twofish  noatime
     ...
   Read(.etc.cryptotab)
   ([$["file":"/dev/hda3", "loop":"/dev/loop0",
	 "vfstype":"reiserfs", "mount":"/abuild", "opt1":"twofish" ,
	  "opt2", "noatime" ]
     ...
   ])
   (0)


25. .etc.cups.client_conf

Agent for reading /etc/cups/client.conf file

25.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/etc_cups_client_conf.scr

26. .etc.cups.cupsd_conf

Agent for reading /etc/cups/printers.conf file

26.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/etc_cups_cupsd_conf.scr

27. .etc.cups.printers_conf

Agent for reading /etc/cups/printers.conf file

27.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/etc_cups_printers_conf.scr

28. .etc.default.passwd

SCR Agent for reading/writing /etc/defaults/passwd

28.1. Description

Access type: r/w

File Name: /usr/share/YaST2/scrconf/etc_default_passwd.scr

29. .etc.default.useradd

SCR Agent for reading/writing /etc/defaults/useradd

29.1. Description

Access type: r/w

File Name: /usr/share/YaST2/scrconf/etc_default_useradd.scr

30. .etc.defaultdomain

Agent for reading/writing /etc/defaultdomain

30.1. Description

Returns the domain name for NIS (and some other services)

Access type: read / write

File Name: /usr/share/YaST2/scrconf/etc_defaultdomain.scr

30.2. Usage

Example 16. 

Read(.etc.defaultdomain)
("suse.cz")


31. .etc.dhcpd_conf

Agent for rading and writing of DNS zone files

31.1. Description

Access type: read, write

File Name: /usr/share/YaST2/scrconf/etc_dhcpd_conf.scr

32. .etc.exports

SCR Agent for reading/writing /etc/exports

32.1. Description

Returns/Takes a list of maps containing the mountpoints and their options. Keys for the maps are: "mountpoint" and "allowed".

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_exports.scr

See: anyagent libscr man exports

32.2. Usage

Example 17. 

Original /etc/exports:
  /projects       proj*.local.domain(rw)
  /usr            *.local.domain(ro) @trusted(rw)
  /pub            (ro,insecure,all_squash)
Read(.etc.exports)
([$["allowed":["proj*.local.domain(rw)"], 
    "mountpoint":"/projects"], 
  $["allowed":["*.local.domain(ro)", "@trusted(rw)"], 
    "mountpoint":"/usr"], 
  $["allowed":["(ro,insecure,all_squash)"], 
    "mountpoint":"/pub"]])
Write(.etc.exports, $["allowed":["(ro,insecure,all_squash)"],
                      "mountpoint":"/pub"]]))
(true)


33. .etc.fstab

SCR Agent for reading/writing /etc/fstab

33.1. Description

Returns/Takes a list of maps. Each map (list-entry) corresponds with one file system. Keys for the maps are: "spec", "file", "vfstype", "mntops", "freq", "passno"

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_fstab.scr

See: anyagent libscr man fstab man mount

33.2. Usage

Example 18. 

Original /etc/fstab:
  /dev/sda2       swap    swap    defaults 0 2
  /dev/sda3       /       ext2    defaults 1 1
  proc            /proc   proc    defaults 0 0
  ...
Read(.etc.fstab)
([$["file":"swap", "freq":0, "mntops":"defaults", "passno":2,
    "spec":"/dev/sda2", "vfstype":"swap"],
  $["file":"/", "freq":1, "mntops":"defaults", "passno":1,
    "spec":"/dev/sda3", "vfstype":"ext2"],
  $["file":"/proc", "freq":0, "mntops":"defaults", "passno":0,
    "spec":"proc", "vfstype":"proc"],
  ...
])
Write(.etc.fstab, ([$["file":"/", "freq":1, "mntops":"defaults",
                    "passno":1, "spec":"/dev/sda3",
                    "vfstype":"ext2"]]))
(0)


34. .etc.hosts

Agent for reading/writing /etc/hosts

34.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_hosts.scr

See: hosts(5)

34.2. Usage

Example 19. 

Dir(.etc.hosts)
(["127.0.0.1", "::1"])
Read(.etc.hosts."127.0.0.1")
("localhost")
Write(.etc.hosts."10.20.1.29", "beholder.suse.cz beholder")
(true)


35. .etc.idmapd_conf

SCR Agent for reading/writing /etc/idmapd.conf

35.1. Description

Access type: Currently only write

File Name: /usr/share/YaST2/scrconf/etc_idmapd_conf.scr

See: anyagent libscr man idmapd.conf

35.2. Usage

Example 20. 

Partial /etc/idmapd.conf:
[General]
Verbosity=0
Pipefs-Directory=/var/lib/nfs/rpc_pipefs
Domain=abc.com
[<Another Section>]
<name>=<value>
Read(.etc.idmapd_conf, "Domain")
(abc.com)
Read(.etc.idmapd_conf, "Verbosity")
(0)
Write(.etc.idmapd_conf, $["Domain", "doodahh"])
(false)
Write(.etc.idmapd_conf, $["Verbosity", "4"])
(true)


36. .etc.ietd

36.1. Description

Write(.ietd.Compression, "no") (true) Fore more information about possible keys and values consult with the slp_config man pages `man slp_config`.

File Name: /usr/share/YaST2/scrconf/ietd.scr

37. .etc.imapd_conf

Agent for reading/writing /etc/imapd_conf

37.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_imapd_conf.scr

See: imapd.conf(5)

37.2. Usage

Example 21. 

Dir(.etc.imapd_conf)
(["configdirectory", "unixhierarchysep", "quotawarn", ... ])
Read(.etc.imapd_conf.configdirectory)
("/var/lib/imap")
Write(.etc.imapd_conf.configdirectory, "/var/lib/imap")
(true)


38. .etc.inetd_conf

38.1. Description

File Name: /usr/share/YaST2/scrconf/etc_inetd.scr

39. .etc.inittab

Agent for reading/writing /etc/inittab

39.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_inittab.scr

See: initttab(5)

39.2. Usage

Example 22. 

Dir(.etc.inittab)
(["id", "si", "l0", "l1", "l2", "~~" ... ])
Read(.etc.inittab.id)
("5:initdefault:")
Write(.etc.inittab.id, "3:initdefault:")
(true)


40. .etc.install_inf

Agent for reading/writing /etc/install.inf

40.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/etc_install_inf.scr

40.2. Usage

Example 23. 

  Dir(.etc.install_inf)
  (["IP", "Nameserver"])
  Read(.etc.install_inf.IP)
  ("1.2.3.4")
  Write(.etc.install_inf.IP, "5.6.7.8")
  (true)
WARNING! Ini agent cannot handle multiple entries with the same name,
such as Alias in install.inf. Use .etc.install_inf_alias instead.


41. .etc.install_inf_alias

Agent for reading/writing module aliases in /etc/install.inf

41.1. Description

Bug #24836: ini agent cannot handle multiple Alias entries.

Access type: read only

File Name: /usr/share/YaST2/scrconf/etc_install_inf_alias.scr

41.2. Usage

Example 24. 

Dir(.etc.install_inf_alias)
(["eth0", "eth1"])
Read(.etc.install_inf_alias.eth0)
("pcnet32")


42. .etc.install_inf_options

Agent for reading/writing module options in /etc/install.inf

42.1. Description

Access type: read only

File Name: /usr/share/YaST2/scrconf/etc_install_inf_options.scr

42.2. Usage

Example 25. 

Dir(.etc.install_inf_options)
(["3c59x"])
Read(.etc.install_inf_options.eth0)
("debug=6")


43. .etc.iscsid

43.1. Description

Write(.ietd.Compression, "no") (true) Fore more information about possible keys and values consult with the slp_config man pages `man slp_config`.

File Name: /usr/share/YaST2/scrconf/iscsid.scr

44. .etc.iscsid

44.1. Description

Write(.ietd.Compression, "no") (true) Fore more information about possible keys and values consult with the slp_config man pages `man slp_config`.

File Name: /usr/share/YaST2/scrconf/isnsd.scr

45. .etc.krb5_conf

SCR Agent for reading/writing /etc/krb5.conf using the ini-agent

45.1. Description

Read/Sets the values defined in /etc/krb5.conf. Warning! The file has 2 type of sections!

File Name: /usr/share/YaST2/scrconf/etc_krb5_conf.scr

46. .etc.ldap_conf

SCR Agent for reading/writing /etc/ldap.conf using the ini-agent

46.1. Description

.etc.ldap_conf

Access type: read/write

File Name: /usr/share/YaST2/scrconf/ldap_conf.scr

See: yast2-agent-ini libscr man ldap.conf

46.2. Usage

Example 26. 

Dir(.etc.ldap_conf.v."/etc/ldap.conf")
(["base", "host"])
Read(.etc.ldap_conf.v."/etc/ldap/conf".host)
("10.10.0.149")
Write(.etc.ldap_conf.v."/etc/ldap/conf".base, "dc=myodmain, dc=com")
(true)


47. .etc.login_defs

Agent for reading/writing /etc/login.defs

47.1. Description

Read/Sets the values defined in /etc/login.defs in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/etc_login_defs.scr

47.2. Usage

Example 27. 

Dir(.etc.login_defs)
(["FAIL_DELAY", "FAILLOG_ENAB", ...])
Read(.etc.login_defs.FAIL_DELAY)
("3")
Write(.etc.login_defs.FAIL_DELAY, "1")
(true)


48. .etc.mtab

SCR Agent for reading /etc/mtab

48.1. Description

Returns a list of maps. Each map (list-entry) corresponds to i one mount. Keys for the maps are: "spec", "file", "vfstype", "mntops", "freq", "passno"

Access type: read-only

File Name: /usr/share/YaST2/scrconf/etc_mtab.scr

See: anyagent libscr man mount

48.2. Usage

Example 28. 

Read(.etc.mtab)
([$["file":"/", 
    "freq":0, 
    "mntops":"rw", 
    "passno":0, 
    "spec":"/dev/root", 
    "vfstype":"reiserfs"], 
  $["file":"/proc", 
    "freq":0, 
    "mntops":"rw", 
    "passno":0, 
    "spec":"proc", 
    "vfstype":"proc"], 
  ...
 ])


49. .etc.multipath

SCR Agent for reading/writing /etc/multipath.conf using the ini-agent

49.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_multipath.scr

50. .etc.nsswitch_conf

Agent for reading/writing /etc/nsswitch.conf

50.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/etc_nsswitch.scr

50.2. Usage

Example 29. 

Dir(.etc.nsswitch_conf)
(["passwd", "group", "hosts", "networks", "services"])
Read(.etc.nsswitch_conf.passwd)
("compat")
Write(.etc.nsswitch_conf.passwd, "files ldap")
(true)


51. .etc.ntp_conf

Agent for reading /etc/cups/printers.conf file

51.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/etc_ntp.scr

52. .etc.pam_pkcs11_conf

SCR Agent for reading/writing /etc/pam_pkcs11/pam_pkcs11.conf

52.1. Description

Read/Sets the values defined in /etc/pam_pkcs11/pam_pkcs11.conf.

File Name: /usr/share/YaST2/scrconf/etc_pam_pkcs11_conf.scr

53. .etc.passwd

SCR Agent for reading /etc/passwd

53.1. Description

Returns a list of maps. Each map (list-entry) corresponds with one user. Keys for the maps are: "username", "password", "uid", "gid", "fullname", "home" and "shell".

Access type: read-only

File Name: /usr/share/YaST2/scrconf/etc_passwd.scr

See: anyagent libscr man passwd(5)

53.2. Usage

Example 30. 

Read(.etc.passwd)
([$["fullname":"root", "gid":0, "home":"/root", "password":"x",
    "shell":"/bin/bash", "uid":0, "username":"root"], 
  $["fullname":"bin", "gid":1, "home":"/bin", "password":"x",
    "shell":"/bin/bash", "uid":1, "username":"bin"],
  $["fullname":"daemon", "gid":2,"home":"/sbin", "password":"x",
  ... 
])


54. .etc.policykit

SCR Agent for reading/writing /etc/PolicyKit/privilege.d/*.privilege files using the ini-agent

54.1. Description

Read list of sections in a file Read list of options in a section Read an option Write an option Flush the changes Fore more information see the INI-agent documentation

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_policykit.scr

54.2. Usage

Example 31. 

Read list of available files


55. .etc.resolv_conf

Agent for reading/writing /etc/resolv.conf

55.1. Description

The target agent is the SCR interface to /etc/resolv.conf, the resolver (name server) configuration file. Using "search, "nameserver", "domain", "sortlist" and "options" as subpaths, the respective values can be read/written. Info paths can be read/written using "modified", "backup", "process", "process_id", "script" and "info" as subpaths of .etc.resolv_conf. For more information see the agent's own documentation.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/etc_resolv_conf.scr

See: resolv.conf(5) source/core/agent-resolver/doc/resolveragent.txt

55.2. Usage

Example 32. 

Read(.etc.resolv_conf.domain)
("suse.de")
Read(.etc.resolv_conf.nameserver)
(["10.10.0.1", "10.10.10.1", "10.10.11.1"])
Write(.etc.resolv_conf.domain, "suse.de")
(true)


56. .etc.security

Agent for reading/writing /etc/security/pam_*.conf

56.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/etc_security.scr

56.2. Usage

Example 33. 

   Dir(.etc.security.section)
   (["/etc/security/pam_pwcheck.conf", "/etc/security/pam_unix2.conf"])
   Read(.etc.security.v."/etc/security/pam_pwcheck.conf".password)
   (["nullok", "cracklib")
   Write(.etc.security.v."/etc/security/pam_pwcheck.conf".password,
	"cracklib md5")
   (true)


57. .etc.security_winbind

57.1. Description

File Name: /usr/share/YaST2/scrconf/etc_security_winbind.scr

58. .etc.slp

58.1. Description

Write(.slp.Compression, "no") (true) Fore more information about possible keys and values consult with the slp_config man pages `man slp_config`.

File Name: /usr/share/YaST2/scrconf/slp_conf.scr

59. .etc.slp.reg

59.1. Description

Write(.slp.Compression, "no") (true) Fore more information about possible keys and values consult with the slp_config man pages `man slp_config`.

File Name: /usr/share/YaST2/scrconf/slp_reg.scr

60. .etc.smb

60.1. Description

File Name: /usr/share/YaST2/scrconf/cfg_smbconf.scr

61. .etc.squid

SCR agent for reading/writing /etc/squid/squid.conf using ini-agent

61.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/squid.scr

61.2. Usage

Example 34. 

  `Dir(.squid)
  (["http_port", "hierarchy_stoplist", "acl", "cache", "acl", ... ])
  `Read(.squid.http_port)
  (["3128 transparent"])
  `Write(.squid.http_port,"3128 accel")
  true
.etc.squid

`ag_ini(
    `IniAgent("/etc/squid/squid.conf",
              $["params" : [
                    $["match" : ["^[ \t]*([^ \t]+)[ \t]+(.+)[ \t]*$", "%s %s"]]
                ],
                "comments" : ["#.*$", "^[ \t]*$"],
                "options" : ["flat", "repeat_names", "global_values"]
              ]
    )
)


62. .etc.ssh.ssh_config

SCR Agent for reading/writing /etc/ssh/ssh_config using the ini-agent For the config file format, see man ssh (1).

62.1. Description

Read/Sets the values defined in /etc/ssh/ssh_config.

File Name: /usr/share/YaST2/scrconf/etc_ssh_ssh_config.scr

63. .etc.ssh.sshd_config

SCR Agent for reading/writing /etc/ssh/sshd_config using the ini-agent

63.1. Description

For more information about possible keys and values consult with the sshd_config man pages `man sshd_config`.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/etc_ssh_sshd_config.scr

63.2. Usage

Example 35. 

Dir(.sshd)
(["Port", "X11Forwarding", "Compression", "MaxAuthTries", "PermitRootLogin"])
Read(.etc.ssh.sshd_config.Compression)
(["yes"])
Write(.etc.ssh.sshd_config.Compression, "no")
(true)


64. .etc.xinetd_conf

64.1. Description

File Name: /usr/share/YaST2/scrconf/etc_xinetd.scr

65. .etc.xinetd_d.tftp

65.1. Description

File Name: /usr/share/YaST2/scrconf/etc_xinetd_d_tftp.scr

66. .etc.yp_conf

SCR Agent for accessing /etc/yp.conf

66.1. Description

Returns the NIS servers to bind to.

Access type: r/w

File Name: /usr/share/YaST2/scrconf/yp_conf.scr

66.2. Usage

Example 36. 

  Read(.etc.yp_conf.servers)
(["10.20.0.2", "10.20.1.3"])


67. .genprof

67.1. Description

File Name: /usr/share/YaST2/scrconf/genprof.scr

68. .http_server

SCR Agent for reading/writing Apache2 configuration

68.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_http_server.scr

See: anyagent libscr

69. .init.insserv_conf

SCR Agent for reading LSB system facilites definition.

69.1. Description

Access type: read-only

File Name: /usr/share/YaST2/scrconf/insserv_conf.scr

See: yast2-agent-any/anyagent.html

69.2. Usage

Example 37. 

   Read(.init.insserv_conf)
	$[
		"$local_fs":["boot"],
		"$network":["network", "pcmcia", "hotplug"],
		"$remote_fs":["$local_fs", "nfs"],
		...
	]
 


70. .init.scripts

Agent for reading contents of scripts in /etc/init.d/

70.1. Description

Reads contents of init scripts, processes paths .init.scripts.runlevels and .init.scripts.comments See /usr/lib/YaST2/servers_non_y2/ag_initscripts for deeper documentation.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/initscripts.scr

70.2. Usage

Example 38. 

Dir(.init.scripts)


71. .isdn

71.1. Description

File Name: /usr/share/YaST2/scrconf/isdn.scr

72. .kadmin

SCR Agent for kadmin commands

72.1. Description

Execute kadmin commands.

File Name: /usr/share/YaST2/scrconf/kadmin.scr

73. .kdc_conf

SCR Agent for reading/writing kdc.conf using the ini-agent

73.1. Description

Read/Sets the values defined in kdc.conf.

File Name: /usr/share/YaST2/scrconf/kdc_conf.scr

74. .kickstart

SCR Agent for doing a ping

74.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/ksimport.scr

See: libscr

74.2. Usage

Example 39. 

Read(.ping,["www.suse.de"])


75. .kiwi

Agent for accessing kiwi config.xml file

75.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/kiwi.scr

76. .krb5_conf

SCR Agent for reading/writing krb5.conf using the ini-agent

76.1. Description

Read/Sets the values defined in krb5.conf.

File Name: /usr/share/YaST2/scrconf/krb5_conf.scr

77. .ldap

Ldap agent

77.1. Description

Access type: read / write / execute

File Name: /usr/share/YaST2/scrconf/ldap.scr

See: man ldap.conf (5), agent autodocs

77.2. Usage

Example 40. 

Execute (.ldap.init, $[
    "hostname": "localhost",
    "port":	389])
(true)
Execute (.ldap.bind, $[
    "bind_dn":	"uid=manager,dc=suse,dc=cz",
    "bind_pw":	password])
(true)
Read (.ldap.search, $[
    "base_dn":  "ou=people,dc=suse,dc=cz",
    "filter":   "objectClass=posixAccount",
    "attrs":    [ "uid", "cn" ],
    "scope":    2, // = sub ])
(list of maps)


78. .ldapserver

SCR Agent for reading/writing slapd.conf

78.1. Description

Access type: read,write

File Name: /usr/share/YaST2/scrconf/ldapserver.scr

78.2. Usage

Example 41. 

Read (.ldapserver.global)
Write (.ldapserver.database, string dbsuffix, map options)


79. .logparse

SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.

79.1. Description

The target-agent is used for various actions on the target system. The Execute Interface can be used to execute some predefined commands like mount, umount, mkdir, remove, modprobe ... or arbitrary commands using the bash, bash_output or bash_background. The Read and Write interface can be used to access the target filesystem, most prominent reading or writing whole files using the "string" subpath. For more information see the agent's own documentation.

Access type: read/write/execute

File Name: /usr/share/YaST2/scrconf/logparse.scr

See: libscr man bash source/y2a_system/doc/systemagent.txt

79.2. Usage

Example 42. 

Execute (.target.bash, "uname -a")
(0)
Execute (.target.bash_output, "uname -a")
(
  $[
    "exit":0,
    "stderr":"",
    "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  ]
)
Read(.target.dir, "/")
(["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
Write(.target.string, "/tmp/target.1", "Some Test\n")
(true)
Read(.target.string, "/tmp/target.1")
("Some Test\n")


80. .logprof

80.1. Description

File Name: /usr/share/YaST2/scrconf/logprof.scr

81. .mail.aliases

SCR Agent for reading/writing the user-defined alias table

81.1. Description

An agent for a unified alias table. There are slight differences between MTAs in that Postfix does not allow to escape a newline character to continue an entry, while Sendmail does. We solve it by allowing the escape, because that makes our syntax a larger language than the actual one, not smaller. The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_aliases.scr

See: yast2-config-mail/ag_mailtable.html

81.2. Usage

Example 43. 

Read (.mail.aliases.table)


82. .mail.cyrusconf

SCR Agent for reading/writing the cyrus-imapd configurations file /etc/cyrus.conf

82.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_cyrusconf.scr

82.2. Usage

Example 44. 

Read (.mail.cyrusconf)


83. .mail.fetchmail

SCR Agent for reading/writing the Fetchmail configuration file

83.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_fetchmail.scr

See: yast2-config-mail/fetchmailrc.txt

83.2. Usage

Example 45. 

Read (.mail.fetchmail.accounts)


84. .mail.ldaptable

Agent for rading and writing of LDAP tables for postfix

84.1. Description

Access type: read, write

File Name: /usr/share/YaST2/scrconf/mail_ldaptable.scr

85. .mail.postfix.auth

SCR Agent for reading/writing the Postfix SMTP-AUTH secrets

85.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "server": "smtp.example.com", "user": "joe", "password": "cleartext" ] There are other map keys which must be preserved! The file is only written after a flush: Write (.mail.postfix.auth, nil)

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_p_auth.scr

85.2. Usage

Example 46. 

Read (.mail.postfix.auth.accounts)


86. .mail.postfix.main

SCR Agent for reading/writing the Postfix configurations files like main.cf virtual ... tables

86.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_maincf.scr

See: yast2-config-mail/ag_mailtable.html

86.2. Usage

Example 47. 

Read (.mail.postfix.main)


87. .mail.postfix.mastercf

SCR Agent for reading/writing the Postfix configurations file /etc/postfix/master.cf

87.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_mastercf.scr

87.2. Usage

Example 48. 

Read (.mail.postfix.mastercf)


88. .mail.postfix.saslpasswd

SCR Agent for reading/writing the Postfix configurations files like main.cf virtual ... tables

88.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_saslpasswd.scr

See: yast2-config-mail/ag_mailtable.html

88.2. Usage

Example 49. 

Read (.mail.postfix.main)


89. .mail.postfix.sendercanonical

SCR Agent for reading/writing the Postfix sender_canonical table

89.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_p_canonical.scr

See: yast2-config-mail/ag_mailtable.html

89.2. Usage

Example 50. 

Read (.mail.postfix.sendercanonical.table)


90. .mail.postfix.virtual

SCR Agent for reading/writing the Postfix virtual domain table

90.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_p_virtual.scr

See: yast2-config-mail/ag_mailtable.html

90.2. Usage

Example 51. 

Read (.mail.postfix.virtual.table)


91. .mail.sendmail.auth

SCR Agent for reading/writing the Sendmail SMTP-AUTH secrets

91.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "server": "smtp.example.com", "user": "joe", "password": "cleartext" ] There are other map keys which must be preserved! The file is only written after a flush: Write (.mail.sendmail.auth, nil)

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_s_auth.scr

91.2. Usage

Example 52. 

Read (.mail.sendmail.auth.accounts)


92. .mail.sendmail.generics

SCR Agent for reading/writing the Sendmail genericstable

92.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_s_generics.scr

See: yast2-config-mail/ag_mailtable.html

92.2. Usage

Example 53. 

Read (.mail.sendmail.generics.table)


93. .mail.sendmail.virtuser

SCR Agent for reading/writing the Sendmail virtusertable

93.1. Description

The file specifies a map, but we represent it as a list to preserve preceding comments and the order of entries. list entries are" $[ "comment": " foo\n bar\n", "key": "root", "value": "joe, \\root" ] that is, comments have the leading '#' stripped but not the newline.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/mail_s_virtuser.scr

See: yast2-config-mail/ag_mailtable.html

93.2. Usage

Example 54. 

Read (.mail.sendmail.virtuser.table)


94. .modinfo

SCR Agent for reading modinfo

94.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/modinfo.scr

See: yast2-config-tv

94.2. Usage

Example 55. 

Dir(.modinfo.kernel.drivers.media.video)
Read(.modinfo.kernel.drivers.media.video.bttv)


95. .modprobe_blacklist

SCR agent for accessing /etc/modprobe.d/blacklist file

95.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/modprobe_blacklist.scr

See: modprobe.conf(5), modules.html

95.2. Usage

Example 56. 

  Dir(.modprobe_blacklist)
  (["alias", "blacklist", "install"])
  Dir(.modprobe_blacklist.blacklist)
  (["act2000", "ad1889", "ali5455", ... "vmware", "ymfpci"])
  Write(.modprobe_blacklist.blacklist.act2000, nil)
  Dir(.modprobe_blacklist.alias)
  (["pci:v0000109Ed0000036Esv00000000sd00000000bc04sc00i00", "pci:v0000109Ed00000878sv00000000sd00000000bc04sc80i00"])
  Read(.modprobe_blacklist.alias."pci:v0000109Ed0000036Esv00000000sd00000000bc04sc00i00")
  ("bttv_skip_it")
  Write(.modprobe_blacklist.alias."pci:v0000109Ed0000036Esv00000000sd00000000bc04sc00i00", nil)
Reads/writes /etc/modprobe.d/blacklist. For more details see man modprobe.conf.


96. .modprobe_newid

SCR agent for /etc/modprobe.d/newid

96.1. Description

File Name: /usr/share/YaST2/scrconf/modprobe_newid.scr

97. .modprobe_sound

SCR agent for /etc/modprobe.d/sound

97.1. Description

Reads/writes /etc/modprobe.conf. For more detail see its own documentation.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/modprobe_sound.scr

See: modprobe.conf(5), modules.html

97.2. Usage

Example 57. 

Read(.modules)
(["alias", "options", "include", "install", "remove"])
Read(.modules.options)
(["agpgart", "cipcb", "dummy0", "dummy1", "parport_pc", "vtx"])
Read(.modules.options, "agpgart")
($["agp_try_unsupported":"1"])
Write(.modules.options, $["agp_try_unsupported":"0"], "agpgart")
(true)


98. .modprobe_tv

SCR agent for /etc/modprobe.d/tv

98.1. Description

Reads/writes /etc/modprobe.conf/tv. For more detail see its own documentation.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/modprobe_tv.scr

See: modprobe.conf(5), modules.html

98.2. Usage

Example 58. 

Read(.modules)
(["alias", "options", "include", "install", "remove"])
Read(.modules.options)
(["agpgart", "cipcb", "dummy0", "dummy1", "parport_pc", "vtx"])
Read(.modules.options, "agpgart")
($["agp_try_unsupported":"1"])
Write(.modules.options, $["agp_try_unsupported":"0"], "agpgart")
(true)


99. .modules

SCR agent for /etc/modprobe.conf

99.1. Description

Reads/writes /etc/modprobe.conf. For more detail see its own documentation.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/modules.scr

See: modprobe.conf(5), modules.html

99.2. Usage

Example 59. 

Read(.modules)
(["alias", "options", "include", "install", "remove"])
Read(.modules.options)
(["agpgart", "cipcb", "dummy0", "dummy1", "parport_pc", "vtx"])
Read(.modules.options, "agpgart")
($["agp_try_unsupported":"1"])
Write(.modules.options, $["agp_try_unsupported":"0"], "agpgart")
(true)


100. .net.hostnames

Agent for reading hostnames on the local network

100.1. Description

Script that reads a list of host reachable on the local network by pinging the broadcast address and then doing a nslookup of the addresses found. It can read hostnames that are reachable on the local network, samba servers or servers with some port opened.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/net_hostnames.scr

See: ping(8), nslookup(8)

100.2. Usage

Example 60. 

Read(.net.hostnames)
(["Snell.suse.de", "Steiner.suse.de", "Mandelbrot.suse.de", ...])
Read(.net.hostnames.515)
Read(.net.hostnames.631)
Read(.net.hostnames.samba)


101. .net.showexports

101.1. Description

File Name: /usr/share/YaST2/scrconf/net_showexports.scr

102. .net.ypserv

SCR Agent for finding NIS servers.

102.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/ypserv.scr

102.2. Usage

Example 61. 

Read (.net.ypserv.find.mydomain)
(
  [
    "192.168.1.1",
    "192.168.1.11",
  ]
)


103. .network

Agent for /etc/sysconfig/network/ifcfg-*

103.1. Description

General syntax: # comment0 VAR1=val1 # comment1 VAR2="val 2 #blah" # comment2 VAR3='val3 x #blah2' # comment3 Reads/writes /etc/sysconfig/network/ifcfg-*. For more details see its own documentation.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/network.scr

See: sysconfig.rpm

104. .nis

104.1. Description

File Name: /usr/share/YaST2/scrconf/nis.scr

105. .packages_descr

105.1. Description

File Name: /usr/share/YaST2/scrconf/packages_descr.scr

106. .passwd

106.1. Description

File Name: /usr/share/YaST2/scrconf/passwd.scr

107. .pattern

107.1. Description

File Name: /usr/share/YaST2/scrconf/pattern.scr

108. .phone-services

Agent for answer machine config file

108.1. Description

General syntax: # comment [section/user name] # comment key=value Reads and writes /etc/capisuit/*.conf.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/phone-services.scr

109. .ping

SCR Agent for doing a ping

109.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/ping.scr

See: libscr

109.2. Usage

Example 62. 

Read(.ping,["www.suse.de"])


110. .ppd

SCR Agent for reading/writing settings from/to PPD files and handling database of PPD files

110.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/ppd.scr

111. .ppd.file.modify

Agent for modifying PPD files

111.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/ppd_file_modify.scr

112. .probe

SCR Agent for reading probing information.

112.1. Description

This agent allows access to the libhd hardware autoprobe library. See its own documentation for more details.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/probe.scr

See: libscr y2a_hwpb/hwprobe.html

112.2. Usage

Example 63. 

Read(.probe)
($["architecture":"i386", 
   "bios_video":[$["attached_to":$["baseclass":"Bridge", 
                                   "bus":"PCI", 
                                   ...
                                 ], 
                   "baseclass":"Display controller", 
                   "bus":"PCI", 
                   "cardtype":"AGP", 
                   ...
                 ]
                 ...
                ]
   ...
 ]
)
Read(.probe.cdrom)
(
 [
  $["attached_to":$["baseclass":"Mass storage controller", 
                    "bus":"PCI", 
                    "device":"AHA-2940U2/W / 7890", 
                    "device_id":65567, 
                    "module":[ $["active":true, ... ] ],
                    "resource":$["io":[ $["active":true, ... ] ], 
                                 "irq":[ $["count":0, ...  ] ], 
                                 "mem":[ $["active":true, ... ] ]
                               ], 
                    "sub_device":"2940U2W SCSI Controller", 
                    ...
                    ], 
    "baseclass":"Mass Storage Device", 
    "bus":"SCSI", 
    "cdtype":"dvd", 
    ...
    ]
  ]
 )


113. .proc.cmdline

Agent for reading /proc/cmdline

113.1. Description

Returns a list of arguments given to the kernal at boottime. (might have been set by lilo, ...)

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_cmdline.scr

113.2. Usage

Example 64. 

Read(.proc.cmdline)
(["auto", "BOOT_IMAGE=linux", "ro", "root=801", "BOOT_FILE=/boot/vmlinuz"])


114. .proc.cpuinfo

SCR Agent for reading /proc/cpuinfo

114.1. Description

Reads /proc/cpuinfo file, each processor is in separate section. Note: Keys and values are architecture dependent! (For example i386 has key "cpu MHz" and value "1400.072", but PPC has "clock" with value "668MHz"!)

Access type: read

File Name: /usr/share/YaST2/scrconf/proc_cpuinfo.scr

114.2. Usage

Example 65. 

    read list of processors:  Dir(.proc.cpuinfo.section)
		=> (["0"])
    read available keys:  Dir(.proc.cpuinfo.value.0)
		=> (["vendor_id", "cpu family", "model", ... ])
    read value: Read(.cpu.value.0."model name")
		=> ("AMD Athlon(tm) XP 1600+")


115. .proc.dasddev

SCR Agent for reading dasd device information

115.1. Description

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_dasddev.scr

See: anyagent libscr cat /proc/dasd/devices on S390

115.2. Usage

Example 66. 

Read(.proc.dasddev)
([$["address":"0150", 
    "major": 94, 
    "minor": 0, 
    "name": "dasda", 
    "state": "active", 
    "blocksize": 4096, 
    "blocks": 600660], 
 ...
])


116. .proc.filesystems

SCR Agent for reading /proc/filesystems

116.1. Description

Returns a map of filesystems. The fs-type is the key, the value is the additional info from /proc/filesystems, usually "\t" or "nodev".

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_filesystems.scr

See: anyagent libscr

116.2. Usage

Example 67. 

Read(.proc.filesystems)
($["autofs":"nodev", 
   "devpts":"nodev", 
   "ext2":"\t", 
   "iso9660":"\t", 
   "minix":"\t", 
   "msdos":"\t", 
   "nfs":"nodev", 
   "proc":"nodev", 
   "reiserfs":"\t", 
   "umsdos":"\t", 
   "vfat":"\t"
 ])


117. .proc.meminfo

SCR Agent for reading /proc/meminfo

117.1. Description

Returns a map. Keys for the map are: "active", "buffers", "cached", "highfree", "hightotal", "inactive", "lowfree", "lowtotal", "memfree", "memtotal", "swapcached", "swapfree", and "swaptotal". Values for all but "mem", "swap" are the respective size in kB.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_meminfo.scr

See: anyagent libscr

117.2. Usage

Example 68. 

   Read (.proc.meminfo)
	-> $[
		"active":804312,
		"buffers":71292,
		"cached":254736,
		"highfree":0,
		"hightotal":0,
		"inactive":140676,
		"lowfree":9960,
		"lowtotal":1028088,
		"memfree":9960,
		"memtotal":1028088,
		"swapcached":30172,
		"swapfree":2037508,
		"swaptotal":2104472
   	]


118. .proc.modules

SCR Agent for reading /proc/modules

118.1. Description

Returns a mapi. Keys are the module names, values are maps. Keys of those maps are: "size", "used"

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_modules.scr

See: anyagent libscr

118.2. Usage

Example 69. 

Read(.proc.modules)
($["aic7xxx":$["size":129600, "used":"3"], 
   "autofs4":$["size":9344, "used":"4"], 
   "de4x5":$["size":40320, "used":"1"], 
   ...
])


119. .proc.mounts

SCR Agent for reading /proc/mounts

119.1. Description

Returns a list of maps. Each map (list-entry) corresponds to i one mount. Keys for the maps are: "spec", "file", "vfstype", "mntops", "freq", "passno"

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_mounts.scr

See: anyagent libscr man mount

119.2. Usage

Example 70. 

Read(.proc.mounts)
([$["file":"/", 
    "freq":0, 
    "mntops":"rw", 
    "passno":0, 
    "spec":"/dev/root", 
    "vfstype":"reiserfs"], 
  $["file":"/proc", 
    "freq":0, 
    "mntops":"rw", 
    "passno":0, 
    "spec":"proc", 
    "vfstype":"proc"], 
  ...
 ])


120. .proc.partitions

SCR Agent for reading /proc/swaps

120.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/proc_partitions.scr

120.2. Usage

Example 71. 

/proc/swaps
  Filename                        Type            Size    Used    Priority
 /dev/hda2                       partition       136544  82256   -1 
    ...
  Read(.proc.swaps)
  ([ $["file":"/dev/hda2", "type": "partition", "size":"136544",
       "used": "82256" ,  "priority": "-1"], 

    ...
  ])


121. .proc.serial.devices

SCR Agent for reading information from /proc/tty/driver/serial

121.1. Description

Returns a list serial device-files (/dev/ttyS*).

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_serial_devices.scr

See: anyagent libscr

121.2. Usage

Example 72. 

Read(.proc.serial.devices)
(["/dev/ttyS0", 
  "/dev/ttyS1"
])


122. .proc.swaps

SCR Agent for reading /proc/swaps

122.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/proc_swaps.scr

122.2. Usage

Example 73. 

/proc/swaps
  Filename                        Type            Size    Used    Priority
 /dev/hda2                       partition       136544  82256   -1 
    ...
  Read(.proc.swaps)
  ([ $["file":"/dev/hda2", "type": "partition", "size":"136544",
       "used": "82256" ,  "priority": "-1"], 

    ...
  ])


123. .process

Process agent - run multiple processes in background

123.1. Description

$Id$

Access type: read / write / execute

File Name: /usr/share/YaST2/scrconf/process.scr

See: anyagent libscr MANPAGE(1) file/relative/to/doc_home/file.html

123.2. Usage

Example 74. 

	// start a process using default locale
	`Execute(.process.start_shell, "/bin/date")
	(14896)
	`Read(.process.read, 14896)
	("PĂĄ Ăşno 15 07:15:24 CET 2008\n")
	`Read(.process.running, 14896)
	(false)
	`Read(.process.status, 14896)
	(0)
	// start a process in C locale, in a terminal, set the environment
	`Execute(.process.start_shell, "/bin/date", $["C_locale":true, "tty":true, "env":$["FOOVAR":"FOO"]])
	(14899)
	`Read(.process.read, 14899)
	("Fri Feb 15 07:18:02 CET 2008\r\n")
	// list processes
	`Dir(.process)
	([14896, 14899])
	// release process (free allocated buffers...)
	`Execute(.process.release, 14896)
	(true)
	`Dir(.process)
	([14858, 14899])
	// read/write lines example
	`Execute(.process.start_shell, "cat")
	(14900)
	`Write(.process, 14900,"the first line\nthe second line\n")
	(true)
	`Read(.process.read_line, 14900)
	("the first line")
	`Read(.process.read_line, 14900)
	("the second line")
	`Read(.process.read_line, 14900)
	(nil)
	// read complete output
	// check whether the buffer (output) is empty
	// (even if process is dead, buffer might contain something)
	`Write(.process, 14900,"the first line\nthe second line\n")
	(true)
	// buffer is not empty
	`Read (.process.buffer_empty, 14900)
	(false)
	`Read(.process.read, 14900)
	("the first line\nthe second line\n")
	// buffer is empty after .read
	`Read (.process.buffer_empty, 14900)
	(true)
	// close input/output
	`Read(.process.running, 14900)
	(true)
	`Execute(.process.close, 14900)
	(0)
	`Read(.process.running, 14900)
	(false)
 The process agent can run multiple subprocesses in backgroung with full interaction
 (reading stdout/stderr, writing to stdin).
 It is possible to run a subprocess in terminal (instead of piped output/input).
 This agent obsoletes the background agent (ag_background).


124. .product.features

124.1. Description

File Name: /usr/share/YaST2/scrconf/cfg_features.scr

125. .providers

Agent for predefined (system) providers

125.1. Description

General syntax: # comment [provider_name] key=value Reads providers from files /usr/share/providers/*.conf.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/providers.scr

See: providers.rpm

126. .pure-ftpd

SCR Agent for reading/writing /etc/pure-ftpd/pure-ftpd.conf using the ini-agent

126.1. Description

Fore more information about possible keys and values consult with the pure-ftpd.conf or man pages `man pure-ftpd`.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/pure-ftpd.scr

127. .reports_confined

SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.

127.1. Description

The target-agent is used for various actions on the target system. The Execute Interface can be used to execute some predefined commands like mount, umount, mkdir, remove, modprobe ... or arbitrary commands using the bash, bash_output or bash_background. The Read and Write interface can be used to access the target filesystem, most prominent reading or writing whole files using the "string" subpath. For more information see the agent's own documentation.

Access type: read/write/execute

File Name: /usr/share/YaST2/scrconf/reports_confined.scr

See: libscr man bash source/y2a_system/doc/systemagent.txt

127.2. Usage

Example 75. 

Execute (.target.bash, "uname -a")
(0)
Execute (.target.bash_output, "uname -a")
(
  $[
    "exit":0,
    "stderr":"",
    "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  ]
)
Read(.target.dir, "/")
(["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
Write(.target.string, "/tmp/target.1", "Some Test\n")
(true)
Read(.target.string, "/tmp/target.1")
("Some Test\n")


128. .reports_ess

SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.

128.1. Description

The target-agent is used for various actions on the target system. The Execute Interface can be used to execute some predefined commands like mount, umount, mkdir, remove, modprobe ... or arbitrary commands using the bash, bash_output or bash_background. The Read and Write interface can be used to access the target filesystem, most prominent reading or writing whole files using the "string" subpath. For more information see the agent's own documentation.

Access type: read/write/execute

File Name: /usr/share/YaST2/scrconf/reports_ess.scr

See: libscr man bash source/y2a_system/doc/systemagent.txt

128.2. Usage

Example 76. 

Execute (.target.bash, "uname -a")
(0)
Execute (.target.bash_output, "uname -a")
(
  $[
    "exit":0,
    "stderr":"",
    "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  ]
)
Read(.target.dir, "/")
(["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
Write(.target.string, "/tmp/target.1", "Some Test\n")
(true)
Read(.target.string, "/tmp/target.1")
("Some Test\n")


129. .reports_parse

SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.

129.1. Description

The target-agent is used for various actions on the target system. The Execute Interface can be used to execute some predefined commands like mount, umount, mkdir, remove, modprobe ... or arbitrary commands using the bash, bash_output or bash_background. The Read and Write interface can be used to access the target filesystem, most prominent reading or writing whole files using the "string" subpath. For more information see the agent's own documentation.

Access type: read/write/execute

File Name: /usr/share/YaST2/scrconf/reports_parse.scr

See: libscr man bash source/y2a_system/doc/systemagent.txt

129.2. Usage

Example 77. 

Execute (.target.bash, "uname -a")
(0)
Execute (.target.bash_output, "uname -a")
(
  $[
    "exit":0,
    "stderr":"",
    "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  ]
)
Read(.target.dir, "/")
(["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
Write(.target.string, "/tmp/target.1", "Some Test\n")
(true)
Read(.target.string, "/tmp/target.1")
("Some Test\n")


130. .reports_sched

SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.

130.1. Description

The target-agent is used for various actions on the target system. The Execute Interface can be used to execute some predefined commands like mount, umount, mkdir, remove, modprobe ... or arbitrary commands using the bash, bash_output or bash_background. The Read and Write interface can be used to access the target filesystem, most prominent reading or writing whole files using the "string" subpath. For more information see the agent's own documentation.

Access type: read/write/execute

File Name: /usr/share/YaST2/scrconf/reports_sched.scr

See: libscr man bash source/y2a_system/doc/systemagent.txt

130.2. Usage

Example 78. 

Execute (.target.bash, "uname -a")
(0)
Execute (.target.bash_output, "uname -a")
(
  $[
    "exit":0,
    "stderr":"",
    "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  ]
)
Read(.target.dir, "/")
(["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
Write(.target.string, "/tmp/target.1", "Some Test\n")
(true)
Read(.target.string, "/tmp/target.1")
("Some Test\n")


131. .resolver

SCR Agent for interfacing accessing /etc/resolv.conf, the resolver (name server) configuration file.

131.1. Description

The target agent is the SCR interface to /etc/resolv.conf, the resolver (name server) configuration file. Using "search, "nameserver", "domain", "sortlist" and "options" as subpaths, the respective values can be read/written. Info paths can be read/written using "modified", "backup", "process", "process_id", "script" and "info" as subpaths of .resolver. For more information see the agent's own documentation.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/resolv.scr

See: libscr man resolv.conf man resolver source/y2scr/ag_resolver/doc/resolveragent.txt

131.2. Usage

Example 79. 

Read(.resolver.domain)
("suse.de")
Read(.resolver.nameserver)
(["10.10.0.1", "10.10.10.1", "10.10.11.1"])
Write(.resolver.domain, "suse.de")
(true)


132. .root.curlrc

Agent for reading/writing /root/.curlrc

132.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/root_curlrc.scr

See: wget(1)

132.2. Usage

Example 80. 

Dir(.root.curlrc)
(["proxy_user", "proxy_user"])
Read(.root.curlrc.proxy_user)
("olduser")
Write(.root.curlrc.proxy_user, "newuser")
(true)


133. .root.wgetrc

Agent for reading/writing /root/.wgetrc

133.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/root_wgetrc.scr

See: wget(1)

133.2. Usage

Example 81. 

Dir(.root.wgetrc)
(["proxy_user", "proxy_user"])
Read(.root.wgetrc.proxy_user)
("olduser")
Write(.root.wgetrc.proxy_user, "newuser")
(true)


134. .routes

Agent for /etc/sysconfig/network/routes

134.1. Description

General syntax: 10.10.0.0 0.0.0.0 255.255.0.0 eth0 default 10.10.0.8 0.0.0.0 eth0 ... Read(.routes) -> [ $[ "destination":"10.10.0.0", "device":"eth0", "gateway":"0.0.0.0", "netmask":"255.255.0.0" ], $[ "destination":"default", "gateway":"10.10.0.8" ], ... ] Reads/writes /etc/sysconfig/network/routes. For more details see its own documentation. Returns/Takes a list of maps. Each map (list-entry) corresponds with one entry in the file. Keys for the maps are: "destination", "gateway", "netmask", "device" Warning! The additional parameters to route are not supported by this agent (for details see routes(5)).

Access type: read / write

File Name: /usr/share/YaST2/scrconf/routes.scr

See: sysconfig.rpm

135. .run.df

SCR Agent for reading the result from /bin/df -P

135.1. Description

Returns a list of maps. Each map (list-entry) corresponds with one mount. Keys for the maps are: "spec", "whole", "used", "free", "prz", "name", "dummy"

Access type: read-only

File Name: /usr/share/YaST2/scrconf/run_df.scr

See: anyagent libscr man df

135.2. Usage

Example 82. 

Read(.run.df)
([$["dummy":"on", 
    "free":"Available", 
    "name":"Mounted", 
    "prz":"Capacity", 
    "spec":"Filesystem", 
    "used":"Used", 
    "whole":"1024-blocks"], 
  $["free":"2170396", 
    "name":"/", 
    "prz":"75%", 
    "spec":"/dev/sda3", 
    "used":"6496372", 
    "whole":"8666768"], 
  $["free":"18715", 
    "name":"/boot", 
    "prz":"16%", 
    "spec":"/dev/sda1", 
    "used":"3382", 
    "whole":"23300"], 
])


136. .run.get.suseconfig.modules

SCR Agent that returns all SuSEconfig modules

136.1. Description

Returns a list of SuSEconfig modules.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/run_get_suseconfig_modules.scr

See: anyagent libscr man ls

136.2. Usage

Example 83. 

Read(.run.get.suseconfig.modules)
(["fonts", "kdm2", "pam", "pcmcia", ... , "ypclient"])


137. .run.ifconfig

SCR Agent for reading the result from /sbin/ifconfig

137.1. Description

AnyAgent for reading ip address, broadcast and netmask (as the ip4numbers) of running network interfaces from ifconfig output Returns a list of maps. Each map (list-entry) corresponds with one network interface.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/run_ifconfig.scr

See: anyagent libscr man ifconfig

137.2. Usage

Example 84. 

Read(.run.ifconfig)
([$["name":"eth0",
    "value":$["flags":["UP", "BROADCAST", "RUNNING", "MULTICAST",
                       " MTU:1500", " Metric:1"],
              "inet":$["addr":168427678,
                       "bcast":168493055,
                       "mask":4294901760],
              "link":"Link encap:Ethernet  HWaddr 00:00:1C:B5:A8:5A  "
            ]
  ],
  $["name":"lo",
    "value":$["flags":["UP", "LOOPBACK", "RUNNING",
                       " MTU:3924", " Metric:1"],
              "inet":$["addr":2130706433,
                       "mask":4278190080],
              "link":"Link encap:Local Loopback  "]
            ]
])


138. .run.ypwhich_m

SCR Agent for reading the result from /usr/bin/ypwhich -m

138.1. Description

Returns a list of maps and hosts

Access type: read-only

File Name: /usr/share/YaST2/scrconf/run_ypwhich_m.scr

138.2. Usage

Example 85. 

Read(.run.ypwhich_m)
([$["map" : "services.byname", "host" : "chimera.suse.cz"]])


139. .scpm

SCPM agent

139.1. Description

SOME USEFUL INFORMATION ON THE AGENT

Access type: read / write / execute

File Name: /usr/share/YaST2/scrconf/scpm.scr

See: MANPAGE(1) http://www.blah.com

139.2. Usage

Example 86. 

Dir(.scpm)
(["WHAT", "EVER", "YOU", "GET"])
Read(.scpm)
("WHAT_EVER_YOU_GET")
Write(.scpm, value)
(true)


140. .sdconf

SCR Agent for configuring subdomain

140.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/sdconf.scr

See: libscr

140.2. Usage

Example 87. 

Read(.cron,$[..])


141. .slp

Slp agent

141.1. Description

SOME USEFUL INFORMATION ON THE AGENT

Access type: read / write / execute OR read-only OR execute-only

File Name: /usr/share/YaST2/scrconf/slp.scr

See: anyagent libscr MANPAGE(1) file/relative/to/doc_home/file.html

141.2. Usage

Example 88. 

Dir(.slp)
(["WHAT", "EVER", "YOU", "GET"])
Read(.slp)
("WHAT_EVER_YOU_GET")
Write(.slp, value)
(true)


142. .smb.queues

SCR Agent for reading print queues from remote samba server.

142.1. Description

Returns list of samba queues on remote host.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/smb_queues.scr

See: anyagent libscr

142.2. Usage

Example 89. 

Read(.smb.queues, "samba.suse.de")
(["lp", "recycled", "duplex", "preprinted", ])


143. .smt_conf

SCR Agent for reading/writing /etc/smt.conf using the ini-agent

143.1. Description

Read/Sets the values defined in /etc/smt.conf.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/smt_conf.scr

143.2. Usage

Example 90. 

Read (.smt_conf.value.NU.NUUser)
("john_the_fish")
Write (.smt_conf.value.NU.NUUser, "Howard")
(true)


144. .smt_cron

SCR Agent for reading/writing /etc/smt.d/novell.com-smt using the any-agent

144.1. Description

Read/Sets the values defined in /etc/smt.d/novell.com-smt linked from /etc/cron.d/novell.com-smt

Access type: read/write

File Name: /usr/share/YaST2/scrconf/smt_cron.scr

145. .subdomain

SCR Agent for configuring subdomain

145.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/subdomain.scr

See: libscr

145.2. Usage

Example 91. 

Read(.cron,$[..])


146. .subdomain_profiles

SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.

146.1. Description

The target-agent is used for various actions on the target system. The Execute Interface can be used to execute some predefined commands like mount, umount, mkdir, remove, modprobe ... or arbitrary commands using the bash, bash_output or bash_background. The Read and Write interface can be used to access the target filesystem, most prominent reading or writing whole files using the "string" subpath. For more information see the agent's own documentation.

Access type: read/write/execute

File Name: /usr/share/YaST2/scrconf/subdomain_profiles.scr

See: libscr man bash source/y2a_system/doc/systemagent.txt

146.2. Usage

Example 92. 

Execute (.target.bash, "uname -a")
(0)
Execute (.target.bash_output, "uname -a")
(
  $[
    "exit":0,
    "stderr":"",
    "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  ]
)
Read(.target.dir, "/")
(["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
Write(.target.string, "/tmp/target.1", "Some Test\n")
(true)
Read(.target.string, "/tmp/target.1")
("Some Test\n")


147. .sudo

SCR Agent for reading/writing /etc/sudoers

147.1. Description

Fore more information about possible keys and values consult with the sudoers man pages `man sudoers`.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/sudo.scr

147.2. Usage

Example 93. 

   Dir(.sudo)
	(["User_Alias","Runas_Alias","Host_Alias","ALL", "%wheel"] )
   Read(.sudo.User_Alias)
   (["WEBMASTERS = will, wendy, wim"])
   Write(.sudo.Host_Alias, "SERVERS = master, mail, www, ns")
   (true)


148. .support.key

148.1. Description

File Name: /usr/share/YaST2/scrconf/cfg_support.scr

149. .sysconfig.SuSEfirewall2

Agent for reading/writing /etc/sysconfig/SuSEfirewall2

149.1. Description

Read/Sets the values defined in /etc/sysconfig/SuSEfirewall2 in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/sysconfig_SuSEfirewall2.scr

149.2. Usage

Example 94. 

Dir(.sysconfig.SuSEfirewall2)
(["FW_ROUTE", ...])
Read(.sysconfig.SuSEfirewall2.FW_ROUTE)
("yes")
Write(.sysconfig.SuSEfirewall2.FW_ROUTE, "no")
(true)
// Don't forget to write nil to sync the settings!
Write(.sysconfig.SuSEfirewall2, nil)


150. .sysconfig.add-on-creator

SCR Agent for reading/writing /etc/sysconfig/add-on-creator using the sysconfig-agent

150.1. Description

Read/Sets the values defined in /etc/sysconfig/add-on-creator in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_add-on-creator.scr

151. .sysconfig.amavis

SCR Agent for reading/writing /etc/sysconfig/amavis using the ini-agent

151.1. Description

Read/Sets the values defined in /etc/sysconfig/amavis in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_amavis.scr

See: yast2-agent-ini/ini.html libscr

151.2. Usage

Example 95. 

Read(.sysconfig.amavis.USE_AMAVIS)
("no")
Write(.sysconfig.amavis.USE_AMAVIS, "yes")
(true)


152. .sysconfig.apache

SCR Agent for reading/writing /etc/sysconfig/apache using the sysconfig-agent

152.1. Description

Read/Sets the values defined in /etc/sysconfig/apache in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_apache.scr

153. .sysconfig.apache2

SCR Agent for reading/writing /etc/sysconfig/apache2 using the sysconfig-agent

153.1. Description

Read/Sets the values defined in /etc/sysconfig/apache2 in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_apache2.scr

154. .sysconfig.autoinstall

SCR Agent for reading/writing /etc/sysconfig/autoinstall using the sysconfig-agent

154.1. Description

Read/Sets the values defined in /etc/sysconfig/autoinstall in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_autoinstall.scr

155. .sysconfig.bootloader

SCR Agent for reading/writing /etc/sysconfig/bootloader using the sysconfig-agent

155.1. Description

Read/Sets the values defined in /etc/sysconfig/bootloader in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_bootloader.scr

156. .sysconfig.bootsplash

SCR Agent for reading/writing /etc/sysconfig/bootsplash using the sysconfig-agent

156.1. Description

Read/Sets the values defined in /etc/sysconfig/bootsplash in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_bootsplash.scr

157. .sysconfig.casa-ats

SCR Agent for reading/writing /etc/sysconfig/casa-ats using the sysconfig-agent

157.1. Description

Read/Sets the values defined in /etc/sysconfig/casa-ats in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_casa-ats.scr

158. .sysconfig.clock

SCR Agent for reading/writing /etc/sysconfig/clock using the sysconfig-agent $$

158.1. Description

Read/Sets the values defined in /etc/sysconfig/clock in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_clock.scr

159. .sysconfig.console

SCR Agent for reading/writing /etc/sysconfig/console using the sysconfig-agent

159.1. Description

Read/Sets the values defined in /etc/sysconfig/console in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_console.scr

160. .sysconfig.dhcpd

Agent for reading/writing /etc/sysconfig/named

160.1. Description

Read/Sets the values defined in /etc/sysconfig/named in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_dhcpd.scr

161. .sysconfig.displaymanager

SCR Agent for reading/writing /etc/sysconfig/displaymanager using the sysconfig-agent

161.1. Description

Read/Sets the values defined in /etc/sysconfig/displaymanager in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_displaymanager.scr

162. .sysconfig.fam

SCR Agent for reading/writing /etc/sysconfig/windowmanager using the sysconfig-agent

162.1. Description

Read/Sets the values defined in /etc/sysconfig/windowmanager in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_fam.scr

163. .sysconfig.fetchmail

SCR Agent for reading/writing /etc/sysconfig/fetchmail using the sysconfig-agent

163.1. Description

Read/Sets the values defined in /etc/sysconfig/fetchmail in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_fetchmail.scr

163.2. Usage

Example 96. 

Dir(.sysconfig.fetchmail)
(["DEVICE"])
Read(.sysconfig.fetchmail.OPTIONS)
("-t psaux")
Write(.sysconfig.fetchmail.OPTIONS, "-t ms")
(true)


164. .sysconfig.firstboot

SCR Agent for reading/writing /etc/sysconfig/autoinstall using the sysconfig-agent

164.1. Description

Read/Sets the values defined in /etc/sysconfig/autoinstall in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_firstboot.scr

165. .sysconfig.gpm

SCR Agent for reading/writing /etc/sysconfig/gpm using the sysconfig-agent

165.1. Description

Read/Sets the values defined in /etc/sysconfig/gpm in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_gpm.scr

165.2. Usage

Example 97. 

Dir(.sysconfig.gpm)
(["DEVICE"])
Read(.sysconfig.gpm.OPTIONS)
("-t psaux")
Write(.sysconfig.gpm.OPTIONS, "-t ms")
(true)


166. .sysconfig.hardware

Agent for /etc/sysconfig/hardware/*

166.1. Description

General syntax: # comment0 VAR1=val1 # comment1 VAR2="val 2 #blah" # comment2 VAR3='val3 x #blah2' # comment3 Reads/writes /etc/sysconfig/hardware/hwcfg-*. For more details see its own documentation.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_hardware.scr

167. .sysconfig.hotplug

SCR Agent for reading/writing /etc/sysconfig/hotplug using the sysconfig-agent

167.1. Description

Read/Sets the values defined in /etc/sysconfig/hotplug in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_hotplug.scr

168. .sysconfig.ide

Agent for reading/writing /etc/sysconfig/ide

168.1. Description

Read/Writes the values defined in /etc/sysconfig/ide in an easy manner.

Access type: Read / Write

File Name: /usr/share/YaST2/scrconf/cfg_ide.scr

168.2. Usage

Example 98. 

Read(.sysconfig.ide.DEVICES_FORCE_IDE_DMA)
("/dev/hdc:udma2")
Write(.sysconfig.ide.DEVICES_FORCE_IDE_DMA, "/dev/hdd:off")
(true)


169. .sysconfig.irda

SCR Agent for reading/writing /etc/sysconfig/irda using the sysconfig-agent

169.1. Description

Read/Sets the values defined in /etc/sysconfig/irda in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_irda.scr

170. .sysconfig.joystick

SCR Agent for reading/writing /etc/sysconfig/joystick using the rc-agent

170.1. Description

Read/Sets the values defined in /etc/sysconfig/joystick in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_joystick.scr

See: y2a_rcnf/rcagent.txt libscr

170.2. Usage

Example 99. 

Dir(.joystick)
(["GAMEPORT_MODULE_0", "JOYSTICK_MODULE_0", ... ]) **
Read(.joystick.GAMEPORT_MODULE_0)
("emu10k1-gp")
Write(.joystick.GAMEPORT_MODULE_0, "emu10k1-gp")
(true)


171. .sysconfig.kdump

SCR Agent for reading/writing /etc/sysconfig/kdump using the sysconfig-agent

171.1. Description

Read/Sets the values defined in /etc/sysconfig/kdump in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_kdump.scr

172. .sysconfig.kernel

Agent for reading/writing /etc/sysconfig/kernel

172.1. Description

Read/Sets the values defined in /etc/sysconfig/kernel in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_kernel.scr

173. .sysconfig.keyboard

SCR Agent for reading/writing /etc/sysconfig/keyboard using the sysconfig-agent

173.1. Description

Read/Sets the values defined in /etc/sysconfig/keyboard in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_keyboard.scr

174. .sysconfig.language

SCR Agent for reading/writing /etc/sysconfig/language using the sysconfig-agent

174.1. Description

Read/Sets the values defined in /etc/sysconfig/lang in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_language.scr

174.2. Usage

Example 100. 

Dir(.sysconfig.language)
(["lang"])
Read(.sysconfig.language.LANG)
("-t psaux")
Write(.sysconfig.language.LANG, "language")
(true)


175. .sysconfig.ldap

SCR Agent for reading/writing /etc/sysconfig/ldap using the sysconfig-agent

175.1. Description

Read/Sets the values defined in /etc/sysconfig/ldap in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_ldap.scr

176. .sysconfig.lirc

SCR Agent for reading/writing /etc/sysconfig/lirc using the sysconfig-agent

176.1. Description

Read/Sets the values defined in /etc/sysconfig/lirc in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_lirc.scr

177. .sysconfig.locate

Agent for reading/writing /etc/sysconfig/locate

177.1. Description

Read/Sets the values defined in /etc/sysconfig/locate in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_locate.scr

177.2. Usage

Example 101. 

Dir(.sysconfig.locate)
(["PERMISSION_RUN_UPDATEDB_AS", ...])
Read(.sysconfig.locate.RUN_UPDATEDB_AS)
("root")
Write(.sysconfig.locate.RUN_UPDATEDB_AS, "root")
(true)


178. .sysconfig.mail

SCR Agent for reading/writing /etc/sysconfig/mail using the ini-agent

178.1. Description

Read/Sets the values defined in /etc/sysconfig/mail in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_mail.scr

See: yast2-agent-ini/ini.html libscr

178.2. Usage

Example 102. 

Read(.sysconfig.mail.FROM_HEADER)
("mycompany.com")
Write(.sysconfig.mail.FROM_HEADER, "MyCompany.com")
(true)


179. .sysconfig.mouse

SCR Agent for reading/writing /etc/sysconfig/mouse using the sysconfig-agent

179.1. Description

Read/Sets the values defined in /etc/sysconfig/mouse in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_mouse.scr

179.2. Usage

Example 103. 

Dir(.sysconfig.mouse)
(["DEVICE"])
Read(.sysconfig.mouse.DEVICE)
("/dev/psaux")
Write(.sysconfig.mouse.DEVICE, "/dev/input/mouse")
(true)


180. .sysconfig.named

Agent for reading/writing /etc/sysconfig/named

180.1. Description

Read/Sets the values defined in /etc/sysconfig/named in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_named.scr

181. .sysconfig.network.config

Agent for reading/writing /etc/sysconfig/network/config

181.1. Description

Read/Sets the values defined in /etc/sysconfig/network/config in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_network.scr

181.2. Usage

Example 104. 

Dir(.sysconfig.network.config)
(["CHECK_FOR_MASTER", ...])
Read(.sysconfig.network.config.CHECK_FOR_MASTER)
("yes")
Write(.sysconfig.network.config.CHECK_FOR_MASTER, "no")
(true)


182. .sysconfig.network.dhcp

Agent for reading/writing /etc/sysconfig/network/dhcp

182.1. Description

Read/Sets the values defined in /etc/sysconfig/network/dhcp in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_dhcp.scr

182.2. Usage

Example 105. 

Dir(.sysconfig.dhcp)
(["DHCLIENT_SET_HOSTNAME", ...])
Read(.sysconfig.dhcp.DHCLIENT_SET_HOSTNAME)
("yes")
Write(.sysconfig.dhcp.DHCLIENT_SET_HOSTNAME, "no")
(true)


183. .sysconfig.network.providers

Agent for reading/writing /etc/sysconfig/network/providers/*

183.1. Description

General syntax: # comment [provider_name] key=value Reads dialup providers from files /etc/sysconfig/network/providers/*.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_providers.scr

184. .sysconfig.nfs

Agent for reading/writing /etc/sysconfig/nfs

184.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_nfs.scr

185. .sysconfig.ntp

Agent for reading/writing /etc/sysconfig/ntp

185.1. Description

Read/Sets the values defined in /etc/sysconfig/ntp in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_ntp.scr

186. .sysconfig.onlineupdate

SCR Agent for reading/writing /etc/sysconfig/onlineupdate using the sysconfig-agent

186.1. Description

Read/Sets the values defined in /etc/sysconfig/onlineupdate in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_onlineupdate.scr

186.2. Usage

Example 106. 

Read(.sysconfig.onlineupdate.YAST2_LOADFTPSERVER)


187. .sysconfig.openafs-client

SCR Agent for reading/writing /etc/sysconfig/openafs-client using the sysconfig-agent

187.1. Description

Read/Sets the values defined in /etc/sysconfig/openafs-client in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_openafs-client.scr

188. .sysconfig.openldap

SCR Agent for reading/writing /etc/sysconfig/openldap using the ini-agent

188.1. Description

Read/Sets the values defined in /etc/sysconfig/openldap (formerly /etc/rc.config.d/openldap.rc.config) in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_openldap.scr

See: yast2-agent-ini/ini.html libscr

188.2. Usage

Example 107. 

Read(.sysconfig.openldap.SOMETHING)
("no")
Write(.sysconfig.openldap.SOMETHING, "yes")
(true)


189. .sysconfig.postfix

SCR Agent for reading/writing /etc/sysconfig/postfix using the ini-agent

189.1. Description

Read/Sets the values defined in /etc/sysconfig/postfix (formerly /etc/rc.config.d/postfix.rc.config) in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_postfix.scr

See: yast2-agent-ini/ini.html libscr man postfix

189.2. Usage

Example 108. 

Read(.sysconfig.postfix.SOMETHING)
("no")
Write(.sysconfig.postfix.SOMETHING, "yes")
(true)


190. .sysconfig.printer

Agent for reading/writing /etc/sysconfig/printer

190.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_printer.scr

190.2. Usage

Example 109. 

  Dir(.sysconfig.printer)
  (["DEFAULT_PRINTER", ...])
Read/Sets the values defined in /etc/sysconfig/printer
in an easy manner.


191. .sysconfig.product-creator

SCR Agent for reading/writing /etc/sysconfig/product-creator using the sysconfig-agent

191.1. Description

Read/Sets the values defined in /etc/sysconfig/product-creator in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_product-creator.scr

192. .sysconfig.proxy

Agent for reading/writing /etc/sysconfig/proxy

192.1. Description

Read/Sets the values defined in /etc/sysconfig/proxy in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_proxy.scr

192.2. Usage

Example 110. 

Dir(.sysconfig.proxy)
(["HTTP_PROXY"])
Read(.sysconfig.proxy.HTTP_PROXY)
("yes")
Write(.sysconfig.proxy.HTTP_PROXY, "ppp")
(true)


193. .sysconfig.scpm

SCR Agent for reading/writing /etc/scpm.conf

193.1. Description

Read/Sets the values defined in /etc/scpm.conf in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_scpm.scr

193.2. Usage

Example 111. 

Dir(.scpm)
(["DEBUG", "VERBOSE", "SWITCH_MODE", "RESOURCE_SET", "BOOT_MODE"])
Read(.scpm.VERBOSE)
("yes")
Write(.scpm.VERBOSE, "no")
(true)


194. .sysconfig.security

Agent for reading/writing /etc/sysconfig/security

194.1. Description

Read/Sets the values defined in /etc/sysconfig/security in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_security.scr

194.2. Usage

Example 112. 

Dir(.sysconfig.security)
(["PERMISSION_SECURITY", ...])
Read(.sysconfig.security.PERMISSION_SECURITY)
("easy")
Write(.sysconfig.security.PERMISSION_SECURITY, "easy")
(true)


195. .sysconfig.sendmail

SCR Agent for reading/writing /etc/sysconfig/sendmail using the ini-agent

195.1. Description

Read/Sets the values defined in /etc/sysconfig/sendmail (formerly /etc/rc.config.d/sendmail.rc.config) in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_sendmail.scr

See: yast2-agent-ini/ini.html libscr man sendmail

195.2. Usage

Example 113. 

Dir(.sysconfig.sendmail)
(["SENDMAIL_SMARTHOST", "SENDMAIL_LOCALHOST", ... ])
Read(.sysconfig.sendmail.SENDMAIL_LOCALHOST)
("localhost")
Write(.sysconfig.sendmail.SENDMAIL_LOCALHOST, "localhost courant")
(true)


196. .sysconfig.slmodemd

Agent for reading/writing /etc/sysconfig/slmodemd

196.1. Description

Read/Sets the values defined in /etc/sysconfig/slmodemd in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_slmodemd.scr

196.2. Usage

Example 114. 

Dir(.sysconfig.slmodemd)
(["HTTP_PROXY"])
Read(.sysconfig.slmodemd.HTTP_PROXY)
("yes")
Write(.sysconfig.slmodemd.HTTP_PROXY, "ppp")
(true)


197. .sysconfig.sound

SCR Agent for reading/writing /etc/sysconfig/alsa using the rc-agent

197.1. Description

Read/Sets the values defined in /etc/sysconfig/alsa in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_sound.scr

See: y2a_rcnf/rcagent.txt libscr

197.2. Usage

Example 115. 

Dir(.alsa)
(["LOAD_ALSA_SEQ"])
Read(.alsa.LOAD_ALSA_SEQ)
("yes")
Write(.alsa.LOAD_ALSA_SEQ, "no")
(true)


198. .sysconfig.storage

SCR Agent for reading/writing /etc/sysconfig/storage

198.1. Description

$Id$ Read/Sets the values defined in /etc/sysconfig/storage in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/sysconfig_storage.scr

199. .sysconfig.suse_register

Agent to read and write /etc/sysconfig/suse_register using ini agent

199.1. Description

Read and write the settings in /etc/sysconfig/suse_register needed by installation/inst_suse_register

File Name: /usr/share/YaST2/scrconf/cfg_suse_register.scr

199.2. Usage

Example 116. 

Read(.sysconfig.suse_register.SOMETHING)
("no")
Write(.sysconfig.suse_register.SOMETHING, "yes")
(true)


200. .sysconfig.suseconfig

Agent for reading/writing /etc/sysconfig/suseconfig

200.1. Description

Read/Sets the values defined in /etc/sysconfig/suseconfig in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_suseconfig.scr

200.2. Usage

Example 117. 

Dir(.sysconfig.suseconfig)
(["IP_FORWARD", ...])
Read(.sysconfig.suseconfig.IP_FORWARD)
("yes")
Write(.sysconfig.suseconfig.IP_FORWARD, "no")
(true)


201. .sysconfig.sysctl

Agent for reading/writing /etc/sysconfig/sysctl

201.1. Description

Read/Sets the values defined in /etc/sysconfig/sysctl in an easy manner.

Access type: read / write

File Name: /usr/share/YaST2/scrconf/cfg_sysctl.scr

201.2. Usage

Example 118. 

Dir(.sysconfig.sysctl)
(["IP_FORWARD", ...])
Read(.sysconfig.sysctl.IP_FORWARD)
("yes")
Write(.sysconfig.sysctl.IP_FORWARD, "no")
(true)


202. .sysconfig.windowmanager

SCR Agent for reading/writing /etc/sysconfig/windowmanager using the sysconfig-agent

202.1. Description

Read/Sets the values defined in /etc/sysconfig/windowmanager in an easy manner.

File Name: /usr/share/YaST2/scrconf/cfg_windowmanager.scr

203. .sysconfig.ypbind

SCR Agent for reading/writing /etc/sysconfig/ypbind using the ini-agent

203.1. Description

Read/Sets the values defined in /etc/sysconfig/ypbind in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_ypbind.scr

See: yast2-agent-ini/ini.html libscr

203.2. Usage

Example 119. 

Read(.sysconfig.ypbind.YPBIND_LOCAL_ONLY)
("yes")
Write(.sysconfig.ypbind.YPBIND_OPTIONS, "-no-ping")
(true)


204. .sysconfig.ypserv

Agent for reading/writing /etc/sysconfig/ypserv

204.1. Description

Read/Sets the values defined in /etc/sysconfig/ypserv in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_ypserv.scr

204.2. Usage

Example 120. 

Dir(.sysconfig.ypserv)
([YPPWD_SRCDIR, YPPWD_CHFN, YPPWD_CHSH, ...])
Read(.sysconfig.ypserv.YPPWD_CHSH)
("yes")
Write(.sysconfig.ypserv.YPPWD_CHSH, "no")
(true)


205. .target

SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.

205.1. Description

The target-agent is used for various actions on the target system. The Execute Interface can be used to execute some predefined commands like mount, umount, mkdir, remove, modprobe ... or arbitrary commands using the bash, bash_output or bash_background. The Read and Write interface can be used to access the target filesystem, most prominent reading or writing whole files using the "string" subpath. For more information see the agent's own documentation.

Access type: read/write/execute

File Name: /usr/share/YaST2/scrconf/target.scr

See: libscr man bash source/y2a_system/doc/systemagent.txt

205.2. Usage

Example 121. 

Execute (.target.bash, "uname -a")
(0)
Execute (.target.bash_output, "uname -a")
(
  $[
    "exit":0,
    "stderr":"",
    "stdout":"Linux steiner 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown\n"
  ]
)
Read(.target.dir, "/")
(["usr", "tmp", "floppy", "var", "root", "opt", "home", "etc", ...])
Write(.target.string, "/tmp/target.1", "Some Test\n")
(true)
Read(.target.string, "/tmp/target.1")
("Some Test\n")


206. .tftp

TFTP agent

206.1. Description

Access type: execute-only

File Name: /usr/share/YaST2/scrconf/tftp.scr

206.2. Usage

Example 122. 

Read(.tftp)
(["WHAT", "EVER", "YOU", "GET"])


207. .thinkfinger

ThinkFinger agent

207.1. Description

Access type: read / write / execute

File Name: /usr/share/YaST2/scrconf/thinkfinger.scr

207.2. Usage

Example 123. 

FIXME
$Id$


208. .udev_persistent

SCR Agent for reading/writing Apache2 configuration

208.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/cfg_udev_persistent.scr

See: anyagent libscr

209. .uid

Agent for testing if UID and/or username exists in system

209.1. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/uid.scr

209.2. Usage

Example 124. 

Read (.uid.username, "root");
(true)


210. .var.yp.makefile

SCR Agent for accessing /var/yp/Makefile

210.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/yp_makefile.scr

See: libscr

210.2. Usage

Example 125. 

Read(.var.yp.makefile) -> <map>
Read(.var.yp.makefile.maps) -> <list>
Read(.var.yp.makefile.<VARIABLE>) -> <string>
Write(.var.yp.makefile.<VARIABLE>, <string>) -> <integer>
Write(.var.yp.makefile.maps, <list>) -> <integer>
Write(.var.yp.makefile, <map>) -> <integer>


211. .var.yp.securenets

SCR Agent for reading /var/yp/securenets

211.1. Description

Returns a list containing information from the securenets file.

Access type: r/w

File Name: /usr/share/YaST2/scrconf/var_yp_securenets.scr

See: anyagent libscr man exports

211.2. Usage

Example 126. 

  Read(.var.yp.securenets)
[$["comment":" securenets\tThis file defines the access rights to your NIS server", "hash":"#"], 
 $["netmask":"255.0.0.0", "network":"127.0.0.0"], 
 $["netmask":"0.0.0.0", "network":"0.0.0.0"]]


212. .var.yp.ypservers

SCR Agent for reading /var/yp/ypservers

212.1. Description

Returns a list containing information from the ypservers file.

Access type: r/w

File Name: /usr/share/YaST2/scrconf/var_yp_ypservers.scr

See: anyagent libscr man exports

212.2. Usage

Example 127. 

  Read(.var.yp.ypservers)
["chimera.suse.cz"]


213. .vsftpd

SCR Agent for reading/writing /etc/vsftpd.conf using the ini-agent

213.1. Description

Fore more information about possible keys and values consult with the vsftpd.conf or man pages `man vsftpd.conf`.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/vsftpd.scr

214. .x_version

214.1. Description

File Name: /usr/share/YaST2/scrconf/cfg_xversion.scr

215. .xauth

Agent for reading|writing xauthority information

215.1. Description

Script that reads key number of $USER from xauthority, used for correct changing hostname. Read the key BEFORE changing hostname, Write key AFTER changing hostname!

Access type: read / write

File Name: /usr/share/YaST2/scrconf/xauth.scr

See: xauth(1)

215.2. Usage

Example 128. 

Read(.xauth.key)
("/root/.Xauthority-2cmyRF")
Write(.xauth.key, "/root/.Xauthority-2cmyRF")
(true)


216. .xawtvrc

SCR Agent for reading/writing /etc/X11/xawtvrc using the ini-agent

216.1. Description

Read/Sets the values defined in /etc/X11/xawtvrc.

File Name: /usr/share/YaST2/scrconf/xawtvrc.scr

217. .xml

YaST2 SCR: Xml agent implementation

217.1. Description

SOME USEFUL INFORMATION ON THE AGENT

Access type: read/write/execute OR read-only OR execute-only

File Name: /usr/share/YaST2/scrconf/xml.scr

See: anyagent libscr man MANPAGE info INFOPAGE /usr/share/doc/packages/yast2-agent-xml/xml.html

217.2. Usage

Example 129. 

   Read(.xml, "<XML file path>")
   (["WHAT", "EVER", "YOU", "GET"])
   Write(.xml,$[  
		    "CDATA":["source"], 
		    "SystemID":"testmap", 
		    "rootElement":"testmap", 
		    "fileName":"testmap.xml",
		    "DocType":"testmap",  
		    "NameSpace":"http://www.suse.com/1.0/yast2ns" 
	         ], 
		 $[
		    "testkey":"testvalue"
		 ]
	  );
   Write testmap.xml with data from supplied map. Values mentioned in 
   CDATA list are treated as XML CDATA (i.e. source code).
 


218. .xmlrepos

Agent for reading files defined by One Clock Standard

218.1. Description

File Name: /usr/share/YaST2/scrconf/xmlrepos.scr

See: http://en.opensuse.org/Standards/One_Click_Install

218.2. Usage

Example 130. 

SCR::Read (.xmlrepos, "/root/some_file")


219. .yast2.desktop

Agent for reading/writing yast2 .desktop files

219.1. Description

Access type: read / write

File Name: /usr/share/YaST2/scrconf/yast2_desktop.scr

219.2. Usage

Example 131. 

Dir(.yast2.desktop)
(["lan", "modem", "isdn", ...])
Read(.yast2.desktop.lan)
("3")


220. .yast2.groups

Agent for reading yast2 groups .desktop files

220.1. Description

Access type: read only

File Name: /usr/share/YaST2/scrconf/yast2_groups.scr

220.2. Usage

Example 132. 

Dir(.yast2.groups)
(["lan", "modem", "isdn", ...])
Read(.yast2.groups.misc)
("3")


221. .you.config

SCR Agent for reading/writing /var/lib/YaST2/you/config using the sysconfig-agent

221.1. Description

Access type: read/write

File Name: /usr/share/YaST2/scrconf/you_config.scr

221.2. Usage

Example 133. 

  Read(.you.password.ServerLastSync)
Read/Sets the values defined in /var/lib/YaST2/you/config
in an easy manner.


222. .you.password

SCR Agent for reading/writing /var/lib/YaST2/you/password using the sysconfig-agent

222.1. Description

Read/Sets the values defined in /var/lib/YaST2/you/password in an easy manner.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/you_password.scr

222.2. Usage

Example 134. 

Read(.you.password.REG_PASSWORD)


223. .zypp_repos

Agent for reading zypp repos in a defined directory

223.1. Description

File Name: /usr/share/YaST2/scrconf/zypp_repos.scr

223.2. Usage

Example 135. 

SCR::Read (.zypp_repos, "/etc/zypp/repo.d/")