YaST SCR Agents


Table of Contents

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

1.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

1.2. Description

Agent is using Perl XML::Simple library. Write access is supported, but check the limitations at XML-Simple page (e.g. order of elements is lost in the maps)

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/anyxml.scr

See also:

http://search.cpan.org/dist/XML-Simple/lib/XML/Simple.pm

1.3. Usage

Example 1. 

 Read a file /tmp/in.xml into YCP map:
 map config	= (map)SCR::Read (.anyxml, "/tmp/in.xml")
 Using the agent this way, these default options of XML::Simple library
 will be used for reading:
	ForceContent	=> 1
	ForceArray	=> 1
	KeepRoot	=> 1,
	KeyAttr		=> [],
 Find the description of these arguments in the XML::Simple documentaion.
 For example, ForceArray set to 1 "forces nested elements to be represented
 as arrays even when there is only one".
 Alternative way of reading is using the argument map. This way it is
 possible to specify non-default read options in the "args" submap:
 map config	= (map)SCR::Read (.anyxml, $[
	"file"  : "/tmp/in.xml",
	"args"	: $[
		"ForceArray"	: 0,
		"KeepRoot"	: 1
	]
 ])
 Writing with the default options:
 Write (.anyxml, $[
	"file"  : "/tmp/config.xml",
	"xml"   : config,
 ])
 Non-default write options could be used by passing extra submap with
 "args" key in the write map:
 Write (.anyxml, $[
	"file"	: "c.xml",
	"xml"	: config,
	"args	: $[
		"XMLDecl"	: <?xml version="123456789"?>,
		"RootName"	: "test"
	]
 ]);


2. .audio

Agent for reading / writing audio device

2.1. Authors

  • Daniel Meszaros <dmeszar@suse.cz>

  • Michal Svec <msvec@suse.cz>

2.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/audio.scr

2.3. 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. .auditd

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

3.1. Authors

  • Gabriele Mohr <gs@suse.de>

3.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/auditd.scr

3.3. Usage

Example 3. 

  Dir(.auditd)
  (["log_file", "log_format", "priority_boost", "flush", ...])
  Read(.auditd.log_format)
  (["RAW"])
  Write(.auditd.max_log_file, 5)
  (true)
$Id: auditd.scr


4. .autoyast2.desktop

Agent for reading/writing yast2 menuentries

4.1. Authors

  • Michal Svec <msvec@suse.cz>

  • Anas Nashif <nashif@suse.de>

4.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/autoinstall.scr

4.3. Usage

Example 4. 

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


5. .background

SCR Agent for executing processes on the background

5.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

5.2. Description

Access type: read/execute

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/background.scr

5.3. Usage

Example 5. 

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.


6. .backup.file_append

Agent for appending strings to the file

6.1. Authors

  • Lukas Ocilka <locilka@suse.cz>

6.2. Description

Access type: write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_backup.scr

7. .backup.free_space

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

7.1. Authors

  • Lukas Ocilka <locilka@suse.cz>

7.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_backup_freespace.scr

7.3. Usage

Example 6. 

	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.


8. .boot.vmlinuz_version

Agent for reading /etc/exports

8.1. Authors

  • Klaus Kaempf <kkaempf@suse.de>

8.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/boot_vmlinuz_version.scr

8.3. Usage

Example 7. 

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


9. .bootloader

SCR Agent for accessing bootloader configuration

9.1. Authors

  • Jiri Srain <jsrain@suse.cz>

9.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/bootloader.scr

See also:

libscr

10. .complain

10.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/complain.scr

11. .content

Agent for reading/writing /content

11.1. Authors

  • Klaus Kaempf <kkaempf@suse.de>

11.2. Description

Access type: read only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/content.scr

11.3. Usage

Example 8. 

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


12. .content_file

SCR Agent for parsing content file

12.1. Authors

  • Unknown <yast2-hacker@suse.de>

12.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/contentfile.scr

See also:

libscr

12.3. 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. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

13.2. Description

Access type: read-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/crack.scr

See also:

cracklib: /usr/share/doc/cracklib

13.3. 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. Authors

  • Anas Nashif <nashif@suse.de>

14.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cron.scr

See also:

libscr

14.3. Usage

Example 11. 

Read(.cron,$[..])


15. .curl

Curl agent

15.1. Authors

  • Anas Nashif <nashif@suse.de>

15.2. Description

Access type: execute-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/curl.scr

See also:

curl(1), libcurl(3)

15.3. Usage

Example 12. 

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


16. .dev.tty

SCR Agent for reading/writing using readline

16.1. Authors

  • Stanislav Visnovsky <visnov@suse.cz>

16.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/tty.scr

See also:

anyagent
libscr

17. .dns.named

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

17.1. Authors

  • Jiri Srain <jsrain@suse.cz>

17.2. Description

Access type: read, write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/dns_named.scr

18. .dns.named-forwarders

Agent for rading and writing of DNS zone files

18.1. Authors

  • Jiri Srain <jsrain@suse.cz>

18.2. Description

Access type: read, write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/named_forwarders.scr

19. .dns.named_conf_convert

Agent for converting named.conf into the readable format

19.1. Authors

  • Lukas Ocilka <locilka@suse.cz>

19.2. Description

Access type: execute

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/convert_named_conf.scr

20. .dns.zone

Agent for rading and writing of DNS zone files

20.1. Authors

  • Jiri Srain <jsrain@suse.cz>

20.2. Description

Access type: read, write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/dns_zone.scr

21. .drbd

21.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/drbd.scr

22. .dummy

SCR Agent for testing

22.1. Authors

  • Unknown <yast2-hacker@suse.de>

22.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/dummy.scr

See also:

libscr

22.3. Usage

Example 13. 

`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)


23. .etc.cryptotab

SCR Agent for reading/writing /etc/cryptotab

23.1. Authors

  • Johannes Buchhold <jbuch@suse.de>

23.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_cryptotab.scr

See also:

anyagent
man mount

23.3. Usage

Example 14. 

   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)


24. .etc.default.passwd

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

24.1. Description

Access type: r/w

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_default_passwd.scr

25. .etc.default.useradd

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

25.1. Description

Access type: r/w

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_default_useradd.scr

26. .etc.defaultdomain

Agent for reading/writing /etc/defaultdomain

26.1. Authors

  • Martin Vidner <mvidner@suse.cz>

26.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_defaultdomain.scr

26.3. Usage

Example 15. 

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


27. .etc.dhcpd_conf

Agent for rading and writing of DNS zone files

27.1. Authors

  • Jiri Srain <jsrain@suse.cz>

27.2. Description

Access type: read, write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_dhcpd_conf.scr

28. .etc.exports

SCR Agent for reading/writing /etc/exports

28.1. Authors

  • Unknown <yast2-hacker@suse.de>

28.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_exports.scr

See also:

anyagent
libscr
man exports

28.3. Usage

Example 16. 

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)


29. .etc.fstab

SCR Agent for reading/writing /etc/fstab

29.1. Authors

  • Unknown <yast2-hacker@suse.de>

29.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_fstab.scr

See also:

anyagent
libscr
man fstab
man mount

29.3. Usage

Example 17. 

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)


30. .etc.ha_d.authkeys

Agent for reading/writing /etc/ha.d/authkeys

30.1. Authors

  • Martin Lazar <mlazar@suse.cz>

30.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_ha_d_authkeys.scr

See also:

heartbeat(8)

31. .etc.ha_d.ha_cf

Agent for reading/writing /etc/ha.d/ha.cf

31.1. Authors

  • Martin Lazar <mlazar@suse.cz>

31.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_ha_d_ha_cf.scr

See also:

heartbeat(8)

32. .etc.ha_d.haresources

Agent for reading/writing /etc/ha.d/haresources

32.1. Authors

  • Martin Lazar <mlazar@suse.cz>

32.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_ha_d_haresources.scr

See also:

heartbeat(8)

33. .etc.hosts

Agent for reading/writing /etc/hosts

33.1. Authors

  • Michal Svec <msvec@suse.cz>

33.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_hosts.scr

See also:

hosts(5)

33.3. Usage

Example 18. 

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)


34. .etc.idmapd_conf

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

34.1. Authors

  • Chakravarthi P <pchakravarthi@novell.com>

34.2. Description

Access type: Currently only write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_idmapd_conf.scr

See also:

anyagent
libscr
man idmapd.conf

34.3. Usage

Example 19. 

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)


35. .etc.ietd

35.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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/ietd.scr

36. .etc.imapd_conf

Agent for reading/writing /etc/imapd_conf

36.1. Authors

  • Peter Varkoly <varkoly@suse.de>

36.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_imapd_conf.scr

See also:

imapd.conf(5)

36.3. Usage

Example 20. 

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


37. .etc.inetd_conf

37.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_inetd.scr

38. .etc.inittab

Agent for reading/writing /etc/inittab

38.1. Authors

  • Petr Blahos <pblahos@suse.cz>

  • Michal Svec <msvec@suse.cz>

38.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_inittab.scr

See also:

initttab(5)

38.3. Usage

Example 21. 

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


39. .etc.install_inf

Agent for reading/writing /etc/install.inf

39.1. Authors

  • Michal Svec <msvec@suse.cz>

39.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_install_inf.scr

39.3. Usage

Example 22. 

  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.


40. .etc.install_inf_alias

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

40.1. Authors

  • Martin Vidner <mvidner@suse.cz>

40.2. Description

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

Access type: read only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_install_inf_alias.scr

40.3. Usage

Example 23. 

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


41. .etc.install_inf_options

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

41.1. Authors

  • Martin Vidner <mvidner@suse.cz>

41.2. Description

Access type: read only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_install_inf_options.scr

41.3. Usage

Example 24. 

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


42. .etc.iscsid

42.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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/iscsid.scr

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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/isnsd.scr

44. .etc.krb5_conf

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

44.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_krb5_conf.scr

45. .etc.ldap_conf

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

45.1. Authors

  • Petr Blahos <pblahos@suse.cz>

45.2. Description

.etc.ldap_conf

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/ldap_conf.scr

See also:

yast2-agent-ini
libscr
man ldap.conf

45.3. Usage

Example 25. 

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)


46. .etc.login_defs

Agent for reading/writing /etc/login.defs

46.1. Authors

  • Michal Svec <msvec@suse.cz>

46.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_login_defs.scr

46.3. Usage

Example 26. 

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


47. .etc.mtab

SCR Agent for reading /etc/mtab

47.1. Authors

  • Unknown <yast2-hacker@suse.de>

47.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_mtab.scr

See also:

anyagent
libscr
man mount

47.3. Usage

Example 27. 

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"], 
  ...
 ])


48. .etc.multipath

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

48.1. Authors

  • Coly Li <coyli@novell.com>

48.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_multipath.scr

49. .etc.nsswitch_conf

Agent for reading/writing /etc/nsswitch.conf

49.1. Authors

  • Petr Blahos <pblahos@suse.cz>

49.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_nsswitch.scr

49.3. Usage

Example 28. 

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


50. .etc.ntp_conf

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

50.1. Authors

  • Jiri Srain <jsrain@suse.cz>

50.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_ntp.scr

51. .etc.pam_pkcs11_conf

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

51.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_pam_pkcs11_conf.scr

52. .etc.passwd

SCR Agent for reading /etc/passwd

52.1. Authors

  • Unknown <yast2-hacker@suse.de>

52.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_passwd.scr

See also:

anyagent
libscr
man passwd(5)

52.3. Usage

Example 29. 

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",
  ... 
])


53. .etc.pm-profiler

53.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_pm-profiler.scr

54. .etc.pm-profiler.profiles

54.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_pm-profiler_profiles.scr

55. .etc.policykit

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

55.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

55.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_policykit.scr

55.3. Usage

Example 30. 

Read list of available files


56. .etc.resolv_conf

Agent for reading/writing /etc/resolv.conf

56.1. Authors

  • Michal Svec <msvec@suse.cz>

56.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_resolv_conf.scr

See also:

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

56.3. Usage

Example 31. 

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)


57. .etc.security

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

57.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

57.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_security.scr

57.3. Usage

Example 32. 

   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)


58. .etc.security_winbind

58.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_security_winbind.scr

59. .etc.slp

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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/slp_conf.scr

60. .etc.slp.reg

60.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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/slp_reg.scr

61. .etc.smb

61.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_smbconf.scr

62. .etc.squid

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

62.1. Authors

  • Daniel Fiser <dfiser@suse.cz>

62.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/squid.scr

62.3. Usage

Example 33. 

  `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"]
              ]
    )
)


63. .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).

63.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_ssh_ssh_config.scr

64. .etc.ssh.sshd_config

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

64.1. Authors

  • Lukas Ocilka <locilka@suse.cz>

64.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_ssh_sshd_config.scr

64.3. Usage

Example 34. 

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


65. .etc.supportconfig

65.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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/supportconfig.scr

66. .etc.xinetd_conf

66.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_xinetd.scr

67. .etc.xinetd_d.tftp

67.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_xinetd_d_tftp.scr

68. .etc.yp_conf

SCR Agent for accessing /etc/yp.conf

68.1. Authors

  • Martin Vidner <mvidner@suse.cz>

68.2. Description

Returns the NIS servers to bind to.

Access type: r/w

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/yp_conf.scr

68.3. Usage

Example 35. 

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


69. .fprint

FPrint agent

69.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

69.2. Description

Access type: read / write / execute

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/fprint.scr

69.3. Usage

Example 36. 

FIXME


70. .genprof

70.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/genprof.scr

71. .http_server

SCR Agent for reading/writing Apache2 configuration

71.1. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_http_server.scr

See also:

anyagent
libscr

72. .init.insserv_conf

SCR Agent for reading LSB system facilites definition.

72.1. Authors

  • Martin Vidner <mvidner@suse.cz>

72.2. Description

Access type: read-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/insserv_conf.scr

See also:

yast2-agent-any/anyagent.html

72.3. Usage

Example 37. 

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


73. .init.scripts

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

73.1. Authors

  • Petr Blahos <pblahos@suse.cz>

73.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/initscripts.scr

73.3. Usage

Example 38. 

Dir(.init.scripts)


74. .isdn

74.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/isdn.scr

75. .kadmin

SCR Agent for kadmin commands

75.1. Description

Execute kadmin commands.

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/kadmin.scr

76. .kdc_conf

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

76.1. Description

Read/Sets the values defined in kdc.conf.

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/kdc_conf.scr

77. .kickstart

SCR Agent for doing a ping

77.1. Authors

  • Unknown <yast2-hacker@suse.de>

77.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/ksimport.scr

See also:

libscr

77.3. Usage

Example 39. 

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


78. .krb5_conf

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

78.1. Description

Read/Sets the values defined in krb5.conf.

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/krb5_conf.scr

79. .ldap

Ldap agent

79.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

79.2. Description

Access type: read / write / execute

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/ldap.scr

See also:

man ldap.conf (5), agent autodocs

79.3. 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)


80. .ldapserver

SCR Agent for reading/writing slapd.conf

80.1. Authors

  • Andreas Bauer <abauer@suse.>

80.2. Description

Access type: read,write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/ldapserver.scr

80.3. Usage

Example 41. 

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


81. .logparse

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

81.1. Authors

  • Unknown <yast2-hacker@suse.de>

81.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/logparse.scr

See also:

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

81.3. 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")


82. .logprof

82.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/logprof.scr

83. .mail.aliases

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

83.1. Authors

  • Martin Vidner <mvidner@suse.cz>

83.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_aliases.scr

See also:

yast2-config-mail/ag_mailtable.html

83.3. Usage

Example 43. 

Read (.mail.aliases.table)


84. .mail.cyrusconf

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

84.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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_cyrusconf.scr

84.2. Usage

Example 44. 

Read (.mail.cyrusconf)


85. .mail.fetchmail

SCR Agent for reading/writing the Fetchmail configuration file

85.1. Authors

  • Martin Vidner <mvidner@suse.cz>

85.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_fetchmail.scr

See also:

yast2-config-mail/fetchmailrc.txt

85.3. Usage

Example 45. 

Read (.mail.fetchmail.accounts)


86. .mail.ldaptable

Agent for rading and writing of LDAP tables for postfix

86.1. Authors

  • Peter Varkoly <varkoly@suse.de>

86.2. Description

Access type: read, write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_ldaptable.scr

87. .mail.postfix.auth

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

87.1. Authors

  • Martin Vidner <mvidner@suse.cz>

87.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_p_auth.scr

87.3. Usage

Example 46. 

Read (.mail.postfix.auth.accounts)


88. .mail.postfix.main

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

88.1. Authors

  • Peter Varkoly <peter@varkoly.de>

88.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_maincf.scr

See also:

yast2-config-mail/ag_mailtable.html

88.3. Usage

Example 47. 

Read (.mail.postfix.main)


89. .mail.postfix.mastercf

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

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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_mastercf.scr

89.2. Usage

Example 48. 

Read (.mail.postfix.mastercf)


90. .mail.postfix.saslpasswd

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

90.1. Authors

  • Peter Varkoly <peter@varkoly.de>

90.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_saslpasswd.scr

See also:

yast2-config-mail/ag_mailtable.html

90.3. Usage

Example 49. 

Read (.mail.postfix.main)


91. .mail.postfix.sendercanonical

SCR Agent for reading/writing the Postfix sender_canonical table

91.1. Authors

  • Martin Vidner <mvidner@suse.cz>

91.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_p_canonical.scr

See also:

yast2-config-mail/ag_mailtable.html

91.3. Usage

Example 50. 

Read (.mail.postfix.sendercanonical.table)


92. .mail.postfix.virtual

SCR Agent for reading/writing the Postfix virtual domain table

92.1. Authors

  • Martin Vidner <mvidner@suse.cz>

92.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_p_virtual.scr

See also:

yast2-config-mail/ag_mailtable.html

92.3. Usage

Example 51. 

Read (.mail.postfix.virtual.table)


93. .mail.sendmail.auth

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

93.1. Authors

  • Martin Vidner <mvidner@suse.cz>

93.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_s_auth.scr

93.3. Usage

Example 52. 

Read (.mail.sendmail.auth.accounts)


94. .mail.sendmail.generics

SCR Agent for reading/writing the Sendmail genericstable

94.1. Authors

  • Martin Vidner <mvidner@suse.cz>

94.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_s_generics.scr

See also:

yast2-config-mail/ag_mailtable.html

94.3. Usage

Example 53. 

Read (.mail.sendmail.generics.table)


95. .mail.sendmail.virtuser

SCR Agent for reading/writing the Sendmail virtusertable

95.1. Authors

  • Martin Vidner <mvidner@suse.cz>

95.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/mail_s_virtuser.scr

See also:

yast2-config-mail/ag_mailtable.html

95.3. Usage

Example 54. 

Read (.mail.sendmail.virtuser.table)


96. .modinfo

SCR Agent for reading modinfo

96.1. Authors

  • Jan Holesovsky <kendy@suse.cz>

96.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/modinfo.scr

See also:

yast2-config-tv

96.3. Usage

Example 55. 

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


97. .modprobe_blacklist

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

97.1. Authors

  • Ladislav SlezĂĄk <lslezak@novell.com>

97.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/modprobe_blacklist.scr

See also:

modprobe.conf(5), modules.html

97.3. 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.


98. .modprobe_newid

SCR agent for /etc/modprobe.d/newid

98.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

98.2. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/modprobe_newid.scr

99. .modprobe_sound

SCR agent for /etc/modprobe.d/sound

99.1. Authors

  • Michal Svec <msvec@suse.cz>, Daniel Vesely <dan@suse.cz>

99.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/modprobe_sound.scr

See also:

modprobe.conf(5), modules.html

99.3. 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)


100. .modprobe_tv

SCR agent for /etc/modprobe.d/tv

100.1. Authors

  • Michal Svec <msvec@suse.cz>, Daniel Vesely <dan@suse.cz>

100.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/modprobe_tv.scr

See also:

modprobe.conf(5), modules.html

100.3. 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)


101. .modules

SCR agent for /etc/modprobe.conf

101.1. Authors

  • Michal Svec <msvec@suse.cz>, Daniel Vesely <dan@suse.cz>

101.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/modules.scr

See also:

modprobe.conf(5), modules.html

101.3. 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)


102. .multipath

102.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/multipath.scr

103. .net.hostnames

Agent for reading hostnames on the local network

103.1. Authors

  • Michal Svec, Martin Vidner

103.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/net_hostnames.scr

See also:

ping(8), nslookup(8)

103.3. 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)


104. .net.showexports

104.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/net_showexports.scr

105. .net.ypserv

SCR Agent for finding NIS servers.

105.1. Authors

  • Martin Vidner <mvidner@suse.cz>

105.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/ypserv.scr

105.3. Usage

Example 61. 

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


106. .network

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

106.1. Authors

  • Michal Svec <msvec@suse.cz>

106.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/network.scr

See also:

sysconfig.rpm

107. .nis

107.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/nis.scr

108. .openais

108.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/openais.scr

109. .packages_descr

109.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/packages_descr.scr

110. .pam_mount

Agent for accessing /etc/security/pam_mount.conf.xml file

110.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

110.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/pam_mount.scr

111. .passwd

111.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/passwd.scr

112. .pattern

112.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/pattern.scr

113. .phone-services

Agent for answer machine config file

113.1. Authors

  • Karsten Keil

113.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/phone-services.scr

114. .ping

SCR Agent for doing a ping

114.1. Authors

  • Unknown <yast2-hacker@suse.de>

114.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/ping.scr

See also:

libscr

114.3. Usage

Example 62. 

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


115. .probe

SCR Agent for reading probing information.

115.1. Authors

  • Unknown <yast2-hacker@suse.de>

115.2. Description

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

Access type: read-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/probe.scr

See also:

libscr
y2a_hwpb/hwprobe.html

115.3. 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", 
    ...
    ]
  ]
 )


116. .proc.cmdline

Agent for reading /proc/cmdline

116.1. Authors

  • Klaus Kaempf <kkaempf@suse.de>

116.2. Description

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

Access type: read-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_cmdline.scr

116.3. Usage

Example 64. 

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


117. .proc.cpuinfo

SCR Agent for reading /proc/cpuinfo

117.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

117.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_cpuinfo.scr

117.3. 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+")


118. .proc.dasddev

SCR Agent for reading dasd device information

118.1. Authors

  • Thomas Fehr <fehr@suse.de>

118.2. Description

Access type: read-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_dasddev.scr

See also:

anyagent
libscr
cat /proc/dasd/devices on S390

118.3. Usage

Example 66. 

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


119. .proc.filesystems

SCR Agent for reading /proc/filesystems

119.1. Authors

  • Unknown <yast2-hacker@suse.de>

119.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_filesystems.scr

See also:

anyagent
libscr

119.3. 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"
 ])


120. .proc.meminfo

SCR Agent for reading /proc/meminfo

120.1. Authors

  • Unknown <yast2-hacker@suse.de>

120.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_meminfo.scr

See also:

anyagent
libscr

120.3. 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
   	]


121. .proc.modules

SCR Agent for reading /proc/modules

121.1. Authors

  • Unknown <yast2-hacker@suse.de>

121.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_modules.scr

See also:

anyagent
libscr

121.3. Usage

Example 69. 

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


122. .proc.mounts

SCR Agent for reading /proc/mounts

122.1. Authors

  • Unknown <yast2-hacker@suse.de>

122.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_mounts.scr

See also:

anyagent
libscr
man mount

122.3. 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"], 
  ...
 ])


123. .proc.partitions

SCR Agent for reading /proc/swaps

123.1. Authors

  • Johannes Buchhold <jbuch@suse.de>

123.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_partitions.scr

123.3. 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"], 

    ...
  ])


124. .proc.swaps

SCR Agent for reading /proc/swaps

124.1. Authors

  • Johannes Buchhold <jbuch@suse.de>

124.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_swaps.scr

124.3. Usage

Example 72. 

/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"], 

    ...
  ])


125. .process

Process agent - run multiple processes in background

125.1. Authors

  • Ladislav SlezĂĄk <lslezak@novell.com>

125.2. Description

$Id$

Access type: read / write / execute

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/process.scr

See also:

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

125.3. Usage

Example 73. 

	// 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).


126. .product.features

126.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_features.scr

127. .providers

Agent for predefined (system) providers

127.1. Authors

  • Petr Blahos <pblahos@suse.cz>, Michal Svec <msvec@suse.cz>

127.2. Description

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

Access type: read-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/providers.scr

See also:

providers.rpm

128. .pure-ftpd

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

128.1. Authors

  • Jozef Uhliarik <juhliarik@suse.cz>

128.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/pure-ftpd.scr

129. .reports_confined

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

129.1. Authors

  • Unknown <yast2-hacker@suse.de>

129.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/reports_confined.scr

See also:

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

129.3. Usage

Example 74. 

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_ess

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

130.1. Authors

  • Unknown <yast2-hacker@suse.de>

130.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/reports_ess.scr

See also:

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

130.3. 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")


131. .reports_parse

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

131.1. Authors

  • Unknown <yast2-hacker@suse.de>

131.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/reports_parse.scr

See also:

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

131.3. 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")


132. .reports_sched

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

132.1. Authors

  • Unknown <yast2-hacker@suse.de>

132.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/reports_sched.scr

See also:

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

132.3. 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")


133. .resolver

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

133.1. Authors

  • Unknown <yast2-hacker@suse.de>

133.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/resolv.scr

See also:

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

133.3. Usage

Example 78. 

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)


134. .root.curlrc

Agent for reading/writing /root/.curlrc

134.1. Authors

  • Michal Svec <msvec@suse.cz>

134.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/root_curlrc.scr

See also:

wget(1)

134.3. Usage

Example 79. 

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


135. .root.wgetrc

Agent for reading/writing /root/.wgetrc

135.1. Authors

  • Michal Svec <msvec@suse.cz>

135.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/root_wgetrc.scr

See also:

wget(1)

135.3. Usage

Example 80. 

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


136. .routes

Agent for /etc/sysconfig/network/routes

136.1. Authors

  • Michal Svec <msvec@suse.cz>

136.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/routes.scr

See also:

sysconfig.rpm

137. .run.df

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

137.1. Authors

  • Unknown <yast2-hacker@suse.de>

137.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/run_df.scr

See also:

anyagent
libscr
man df

137.3. Usage

Example 81. 

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"], 
])


138. .run.ifconfig

SCR Agent for reading the result from /sbin/ifconfig

138.1. Authors

  • Unknown <yast2-hacker@suse.de>

138.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/run_ifconfig.scr

See also:

anyagent
libscr
man ifconfig

138.3. Usage

Example 82. 

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  "]
            ]
])


139. .run.ypwhich_m

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

139.1. Authors

  • Daniel Vesely <dan@suse.cz>

139.2. Description

Returns a list of maps and hosts

Access type: read-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/run_ypwhich_m.scr

139.3. Usage

Example 83. 

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


140. .scpm

SCPM agent

140.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

140.2. Description

SOME USEFUL INFORMATION ON THE AGENT

Access type: read / write / execute

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/scpm.scr

See also:

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

140.3. Usage

Example 84. 

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


141. .sdconf

SCR Agent for configuring subdomain

141.1. Authors

  • David Drewelow <davidd@immunix.com>

141.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/sdconf.scr

See also:

libscr

141.3. Usage

Example 85. 

Read(.cron,$[..])


142. .slp

Slp agent

142.1. Authors

  • Anas Nashif <nashif@suse.de>

142.2. Description

SOME USEFUL INFORMATION ON THE AGENT

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/slp.scr

See also:

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

142.3. Usage

Example 86. 

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


143. .subdomain

SCR Agent for configuring subdomain

143.1. Authors

  • David Drewelow <davidd@immunix.com>

143.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/subdomain.scr

See also:

libscr

143.3. Usage

Example 87. 

Read(.cron,$[..])


144. .subdomain_profiles

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

144.1. Authors

  • Unknown <yast2-hacker@suse.de>

144.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/subdomain_profiles.scr

See also:

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

144.3. Usage

Example 88. 

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")


145. .sudo

SCR Agent for reading/writing /etc/sudoers

145.1. Authors

  • Bubli <kmachalkova@suse.cz>

145.2. Description

Read returns and Write accepts list of lists of strings, ordered as follows: # ["comment to this rule or alias", username | keyword, hostname | alias name, rule | csv list ] Fore more information about possible keywords, aliases and values consult with the sudoers man pages `man sudoers`.

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/sudo.scr

145.3. Usage

Example 89. 

Read(.sudo)
([
  ["#We let root and any user in group wheel run any command on any host as any user.\n", "root", "ALL", "(ALL) ALL"],
  ["", "%wheel", "ALL", "(ALL) ALL"]
  ]
 )
Write(.sudo, [ ["#first rule", "user", "HOST", "rule1"], ["#second rule", "otheruser", "HOST", "rule2"] ])
(true)


146. .sysconfig.SuSEfirewall2

Agent for reading/writing /etc/sysconfig/SuSEfirewall2

146.1. Authors

  • Lukas Ocilka <lukas.ocilka@suse.cz>

146.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/sysconfig_SuSEfirewall2.scr

146.3. Usage

Example 90. 

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)


147. .sysconfig.add-on-creator

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

147.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_add-on-creator.scr

148. .sysconfig.amavis

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

148.1. Authors

  • Martin Vidner <mvidner@suse.cz>

148.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_amavis.scr

See also:

yast2-agent-ini/ini.html
libscr

148.3. Usage

Example 91. 

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


149. .sysconfig.apache

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

149.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_apache.scr

150. .sysconfig.apache2

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

150.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_apache2.scr

151. .sysconfig.autoinstall

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

151.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_autoinstall.scr

152. .sysconfig.automatic_online_update

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

152.1. Authors

  • Jens Daniel Schmidt <jdsn@suse.de>

152.2. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_automatic_online_update.scr

153. .sysconfig.bootloader

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

153.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_bootloader.scr

154. .sysconfig.bootsplash

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

154.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_bootsplash.scr

155. .sysconfig.casa-ats

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

155.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_casa-ats.scr

156. .sysconfig.clock

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

156.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_clock.scr

157. .sysconfig.console

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

157.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_console.scr

158. .sysconfig.cron

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

158.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_cron.scr

159. .sysconfig.dhcpd

Agent for reading/writing /etc/sysconfig/named

159.1. Authors

  • Jiri Srain <jsrain@suse.cz>

159.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_dhcpd.scr

160. .sysconfig.displaymanager

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

160.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_displaymanager.scr

161. .sysconfig.fam

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

161.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_fam.scr

162. .sysconfig.fetchmail

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

162.1. Authors

  • Unknown <yast2-hacker@suse.de>

162.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_fetchmail.scr

162.3. Usage

Example 92. 

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


163. .sysconfig.firstboot

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

163.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_firstboot.scr

164. .sysconfig.gpm

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

164.1. Authors

  • Unknown <yast2-hacker@suse.de>

164.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_gpm.scr

164.3. Usage

Example 93. 

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


165. .sysconfig.hardware

Agent for /etc/sysconfig/hardware/*

165.1. Authors

  • Jiri Srain <jsrain@suse.cz>

165.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_hardware.scr

166. .sysconfig.hotplug

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

166.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_hotplug.scr

167. .sysconfig.ide

Agent for reading/writing /etc/sysconfig/ide

167.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

167.2. Description

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

Access type: Read / Write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_ide.scr

167.3. Usage

Example 94. 

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


168. .sysconfig.irda

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

168.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_irda.scr

169. .sysconfig.joystick

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

169.1. Authors

  • Dan Meszaros <dmeszar@suse.cz>

169.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_joystick.scr

See also:

y2a_rcnf/rcagent.txt
libscr

169.3. Usage

Example 95. 

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


170. .sysconfig.kdump

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

170.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_kdump.scr

171. .sysconfig.kernel

Agent for reading/writing /etc/sysconfig/kernel

171.1. Authors

  • Klaus Kaempf <kkaempf@suse.de>

171.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_kernel.scr

172. .sysconfig.keyboard

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

172.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_keyboard.scr

173. .sysconfig.language

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

173.1. Authors

  • Unknown <yast2-hacker@suse.de>

173.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_language.scr

173.3. Usage

Example 96. 

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


174. .sysconfig.ldap

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

174.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_ldap.scr

175. .sysconfig.linuxUserMgmt

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

175.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_linux_user_mgmt.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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_lirc.scr

177. .sysconfig.locate

Agent for reading/writing /etc/sysconfig/locate

177.1. Authors

  • Michal Svec <msvec@suse.cz>

177.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_locate.scr

177.3. Usage

Example 97. 

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. Authors

  • Martin Vidner <mvidner@suse.cz>

178.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_mail.scr

See also:

yast2-agent-ini/ini.html
libscr

178.3. Usage

Example 98. 

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. Authors

  • Unknown <yast2-hacker@suse.de>

179.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_mouse.scr

179.3. Usage

Example 99. 

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. Authors

  • Jiri Srain <jsrain@suse.cz>

180.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_named.scr

181. .sysconfig.network.config

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

181.1. Authors

  • Michal Svec <msvec@suse.cz>

181.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_network.scr

181.3. Usage

Example 100. 

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. Authors

  • Michal Svec <msvec@suse.cz>

182.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_dhcp.scr

182.3. Usage

Example 101. 

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. Authors

  • Michal Svec <msvec@suse.cz>

183.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_nfs.scr

185. .sysconfig.ntp

Agent for reading/writing /etc/sysconfig/ntp

185.1. Authors

  • Jiri Srain <jsrain@suse.cz>

185.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_ntp.scr

186. .sysconfig.onlineupdate

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

186.1. Authors

  • Unknown <yast2-hacker@suse.de>

186.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_onlineupdate.scr

186.3. Usage

Example 102. 

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: /tmp/full-head-x86_64/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. Authors

  • Carsten Hoeger <choeger@suse.de>

188.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_openldap.scr

See also:

yast2-agent-ini/ini.html
libscr

188.3. Usage

Example 103. 

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. Authors

  • Martin Vidner <mvidner@suse.cz>

189.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_postfix.scr

See also:

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

189.3. Usage

Example 104. 

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


190. .sysconfig.product-creator

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

190.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_product-creator.scr

191. .sysconfig.proxy

Agent for reading/writing /etc/sysconfig/proxy

191.1. Authors

  • Michal Svec <msvec@suse.cz>

191.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_proxy.scr

191.3. Usage

Example 105. 

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


192. .sysconfig.scpm

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

192.1. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_scpm.scr

192.2. Usage

Example 106. 

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


193. .sysconfig.security

Agent for reading/writing /etc/sysconfig/security

193.1. Authors

  • Michal Svec <msvec@suse.cz>

193.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_security.scr

193.3. Usage

Example 107. 

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


194. .sysconfig.sendmail

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

194.1. Authors

  • Martin Vidner <mvidner@suse.cz>

194.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_sendmail.scr

See also:

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

194.3. Usage

Example 108. 

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


195. .sysconfig.services

Agent for reading/writing /etc/sysconfig/services

195.1. Authors

  • Ladislav Slezak <lslezak@novell.com>

195.2. Description

Read/Sets the values defined in /etc/sysconfig/services

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_services.scr

195.3. Usage

Example 109. 

Dir(.sysconfig.services)
(["DISABLE_RESTART_ON_UPDATE", ...])
Read(.sysconfig.services.DISABLE_RESTART_ON_UPDATE)
("no")
Write(.sysconfig.services.DISABLE_RESTART_ON_UPDATE, "yes")
(true)


196. .sysconfig.slmodemd

Agent for reading/writing /etc/sysconfig/slmodemd

196.1. Authors

  • Michal Svec <msvec@suse.cz>

196.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_slmodemd.scr

196.3. Usage

Example 110. 

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. Authors

  • Dan Meszaros <dmeszar@suse.cz>

197.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_sound.scr

See also:

y2a_rcnf/rcagent.txt
libscr

197.3. Usage

Example 111. 

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. Authors

  • Thomas Fehr <fehr@suse.de>

198.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/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. Authors

  • Jens Daniel Schmidt <jdsn@suse.de>

199.2. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_suse_register.scr

199.3. Usage

Example 112. 

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. Authors

  • Michal Svec <msvec@suse.cz>

200.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_suseconfig.scr

200.3. Usage

Example 113. 

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. Authors

  • Michal Svec <msvec@suse.cz>

201.2. Description

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

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_sysctl.scr

201.3. Usage

Example 114. 

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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_windowmanager.scr

203. .sysconfig.xpram

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

203.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_xpram.scr

204. .sysconfig.yast2

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

204.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_yast2.scr

205. .sysconfig.ypbind

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

205.1. Authors

  • Martin Vidner <mvidner@suse.cz>

205.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_ypbind.scr

See also:

yast2-agent-ini/ini.html
libscr

205.3. Usage

Example 115. 

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


206. .sysconfig.ypserv

Agent for reading/writing /etc/sysconfig/ypserv

206.1. Authors

  • Martin Vidner <mvidner@suse.cz>

206.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_ypserv.scr

206.3. Usage

Example 116. 

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


207. .target

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

207.1. Authors

  • Unknown <yast2-hacker@suse.de>

207.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/target.scr

See also:

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

207.3. Usage

Example 117. 

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")


208. .tftp

TFTP agent

208.1. Authors

  • Anas Nashif <nashif@suse.de>

208.2. Description

Access type: execute-only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/tftp.scr

208.3. Usage

Example 118. 

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


209. .udev_persistent

SCR Agent for reading/writing Apache2 configuration

209.1. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_udev_persistent.scr

See also:

anyagent
libscr

210. .uid

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

210.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

210.2. Description

Access type: read

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/uid.scr

210.3. Usage

Example 119. 

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


211. .var.yp.makefile

SCR Agent for accessing /var/yp/Makefile

211.1. Authors

  • Unknown <dan@suse.cz>

211.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/yp_makefile.scr

See also:

libscr

211.3. Usage

Example 120. 

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>


212. .var.yp.securenets

SCR Agent for reading /var/yp/securenets

212.1. Authors

  • Daniel Vesely <dan@suse.cz>

212.2. Description

Returns a list containing information from the securenets file.

Access type: r/w

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/var_yp_securenets.scr

See also:

anyagent
libscr
man exports

212.3. Usage

Example 121. 

  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"]]


213. .var.yp.ypservers

SCR Agent for reading /var/yp/ypservers

213.1. Authors

  • Daniel Vesely <dan@suse.cz>

213.2. Description

Returns a list containing information from the ypservers file.

Access type: r/w

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/var_yp_ypservers.scr

See also:

anyagent
libscr
man exports

213.3. Usage

Example 122. 

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


214. .vsftpd

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

214.1. Authors

  • Jozef Uhliarik <juhliarik@suse.cz>

214.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/vsftpd.scr

215. .x_version

215.1. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_xversion.scr

216. .xauth

Agent for reading|writing xauthority information

216.1. Authors

  • Michal Svec <msvec@suse.cz>

216.2. 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: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/xauth.scr

See also:

xauth(1)

216.3. Usage

Example 123. 

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


217. .xawtvrc

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

217.1. Description

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/xawtvrc.scr

218. .xml

YaST2 SCR: Xml agent implementation

218.1. Authors

  • Anas Nashif <nashif@suse.de>

218.2. Description

SOME USEFUL INFORMATION ON THE AGENT

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

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/xml.scr

See also:

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

218.3. Usage

Example 124. 

   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).
 


219. .yast2.desktop

Agent for reading/writing yast2 .desktop files

219.1. Authors

  • Michal Svec <msvec@suse.cz>

219.2. Description

Access type: read / write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/yast2_desktop.scr

219.3. Usage

Example 125. 

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


220. .yast2.groups

Agent for reading yast2 groups .desktop files

220.1. Authors

  • Michal Svec <msvec@suse.cz>

220.2. Description

Access type: read only

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/yast2_groups.scr

220.3. Usage

Example 126. 

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. Authors

  • Cornelius Schumacher <cschum@suse.de>

221.2. Description

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/you_config.scr

221.3. Usage

Example 127. 

  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. Authors

  • Unknown <yast2-hacker@suse.de>

222.2. Description

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

Access type: read/write

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/you_password.scr

222.3. Usage

Example 128. 

Read(.you.password.REG_PASSWORD)


223. .zypp_repos

Agent for reading zypp repos in a defined directory

223.1. Authors

  • Lukas Ocilka <locilka@suse.cz>

223.2. Description

File Name: /tmp/full-head-x86_64/usr/share/YaST2/scrconf/zypp_repos.scr

223.3. Usage

Example 129. 

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