Table of Contents
Abstract
Attention! API of all SCR Agents is still marked unstable and could change without any preceding warning.
Agent for reading and writing simple XML files.
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
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" ] ]);
Agent for reading / writing audio device
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/audio.scr
SCR Agent for reading/writing /etc/audit/auditd.conf using the ini-agent
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/auditd.scr
Agent for reading/writing yast2 menuentries
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/autoinstall.scr
SCR Agent for executing processes on the background
Access type: read/execute
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/background.scr
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.
Agent for appending strings to the file
Agent for getting the free space in the directory (in 1K blocks)
Access type: read
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/cfg_backup_freespace.scr
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.
Agent for reading /etc/exports
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
SCR Agent for accessing bootloader configuration
Agent for reading/writing /content
Access type: read only
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/content.scr
SCR Agent for parsing content file
Access type: read
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/contentfile.scr
See also:
libscr
Agent for testing passwords witch cracklib library
Access type: read-only
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/crack.scr
See also:
cracklib: /usr/share/doc/cracklib
SCR Agent for reading cron files
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/cron.scr
See also:
libscr
Curl agent
Access type: execute-only
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/curl.scr
See also:
curl(1), libcurl(3)
SCR Agent for reading/writing using readline
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
Agent for rading and writing of /etc/named.conf file
Agent for rading and writing of DNS zone files
Agent for converting named.conf into the readable format
Agent for rading and writing of DNS zone files
SCR Agent for testing
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
SCR Agent for reading/writing /etc/cryptotab
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_cryptotab.scr
See also:
anyagent man mount
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)SCR Agent for reading/writing /etc/defaults/passwd
SCR Agent for reading/writing /etc/defaults/useradd
Agent for reading/writing /etc/defaultdomain
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
Agent for rading and writing of DNS zone files
SCR Agent for reading/writing /etc/exports
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
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)SCR Agent for reading/writing /etc/fstab
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
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)Agent for reading/writing /etc/ha.d/authkeys
Agent for reading/writing /etc/ha.d/ha.cf
Agent for reading/writing /etc/ha.d/haresources
Agent for reading/writing /etc/hosts
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_hosts.scr
See also:
hosts(5)
SCR Agent for reading/writing /etc/idmapd.conf
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
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)
Agent for reading/writing /etc/imapd_conf
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_imapd_conf.scr
See also:
imapd.conf(5)
Agent for reading/writing /etc/inittab
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_inittab.scr
See also:
initttab(5)
Agent for reading/writing /etc/install.inf
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_install_inf.scr
Agent for reading/writing module aliases in /etc/install.inf
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
Agent for reading/writing module options in /etc/install.inf
Access type: read only
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_install_inf_options.scr
SCR Agent for reading/writing /etc/krb5.conf using the ini-agent
SCR Agent for reading/writing /etc/ldap.conf using the ini-agent
.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
Agent for reading/writing /etc/login.defs
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
SCR Agent for reading /etc/mtab
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
SCR Agent for reading/writing /etc/multipath.conf using the ini-agent
Agent for reading/writing /etc/nsswitch.conf
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_nsswitch.scr
Agent for reading /etc/cups/printers.conf file
SCR Agent for reading/writing /etc/pam_pkcs11/pam_pkcs11.conf
SCR Agent for reading /etc/passwd
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)
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",
...
])SCR Agent for reading/writing /etc/PolicyKit/privilege.d/*.privilege files using the ini-agent
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
Agent for reading/writing /etc/resolv.conf
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
Agent for reading/writing /etc/security/pam_*.conf
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/etc_security.scr
SCR agent for reading/writing /etc/squid/squid.conf using ini-agent
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/squid.scr
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"]
]
)
)SCR Agent for reading/writing /etc/ssh/ssh_config using the ini-agent For the config file format, see man ssh (1).
SCR Agent for reading/writing /etc/ssh/sshd_config using the ini-agent
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
SCR Agent for accessing /etc/yp.conf
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
FPrint agent
Access type: read / write / execute
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/fprint.scr
SCR Agent for reading/writing Apache2 configuration
SCR Agent for reading LSB system facilites definition.
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
Agent for reading contents of scripts in /etc/init.d/
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
SCR Agent for kadmin commands
SCR Agent for reading/writing kdc.conf using the ini-agent
SCR Agent for doing a ping
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/ksimport.scr
See also:
libscr
SCR Agent for reading/writing krb5.conf using the ini-agent
Ldap agent
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
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)SCR Agent for reading/writing slapd.conf
Access type: read,write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/ldapserver.scr
SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.
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
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")SCR Agent for reading/writing the user-defined alias table
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
SCR Agent for reading/writing the cyrus-imapd configurations file /etc/cyrus.conf
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
SCR Agent for reading/writing the Fetchmail configuration file
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
Agent for rading and writing of LDAP tables for postfix
SCR Agent for reading/writing the Postfix SMTP-AUTH secrets
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
SCR Agent for reading/writing the Postfix configurations files like main.cf virtual ... tables
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
SCR Agent for reading/writing the Postfix configurations file /etc/postfix/master.cf
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
SCR Agent for reading/writing the Postfix configurations files like main.cf virtual ... tables
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
SCR Agent for reading/writing the Postfix sender_canonical table
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
SCR Agent for reading/writing the Postfix virtual domain table
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
SCR Agent for reading/writing the Sendmail SMTP-AUTH secrets
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
SCR Agent for reading/writing the Sendmail genericstable
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
SCR Agent for reading/writing the Sendmail virtusertable
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
SCR Agent for reading modinfo
Access type: read
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/modinfo.scr
See also:
yast2-config-tv
SCR agent for accessing /etc/modprobe.d/blacklist file
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
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.SCR agent for /etc/modprobe.d/newid
SCR agent for /etc/modprobe.d/sound
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
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)
SCR agent for /etc/modprobe.d/tv
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
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)
SCR agent for /etc/modprobe.conf
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
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)
Agent for reading hostnames on the local network
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)
SCR Agent for finding NIS servers.
Access type: read
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/ypserv.scr
Agent for /etc/sysconfig/network/ifcfg-*
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
Agent for accessing /etc/security/pam_mount.conf.xml file
Agent for answer machine config file
SCR Agent for doing a ping
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/ping.scr
See also:
libscr
SCR Agent for reading probing information.
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
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",
...
]
]
)Agent for reading /proc/cmdline
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
SCR Agent for reading /proc/cpuinfo
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
SCR Agent for reading dasd device information
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
SCR Agent for reading /proc/filesystems
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
SCR Agent for reading /proc/meminfo
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
SCR Agent for reading /proc/modules
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
SCR Agent for reading /proc/mounts
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
SCR Agent for reading /proc/swaps
Access type: read
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_partitions.scr
SCR Agent for reading /proc/swaps
Access type: read
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/proc_swaps.scr
Process agent - run multiple processes in background
$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
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).Agent for predefined (system) providers
SCR Agent for reading/writing /etc/pure-ftpd/pure-ftpd.conf using the ini-agent
SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.
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
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")SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.
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
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")SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.
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
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")SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.
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
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")SCR Agent for interfacing accessing /etc/resolv.conf, the resolver (name server) configuration file.
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
Agent for reading/writing /root/.curlrc
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/root_curlrc.scr
See also:
wget(1)
Agent for reading/writing /root/.wgetrc
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/root_wgetrc.scr
See also:
wget(1)
Agent for /etc/sysconfig/network/routes
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
SCR Agent for reading the result from /bin/df -P
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
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"],
])SCR Agent for reading the result from /sbin/ifconfig
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
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 "]
]
])SCR Agent for reading the result from /usr/bin/ypwhich -m
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
SCPM agent
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
SCR Agent for configuring subdomain
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/sdconf.scr
See also:
libscr
Slp agent
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
SCR Agent for configuring subdomain
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/subdomain.scr
See also:
libscr
SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.
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
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")SCR Agent for reading/writing /etc/sudoers
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
Agent for reading/writing /etc/sysconfig/SuSEfirewall2
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
SCR Agent for reading/writing /etc/sysconfig/add-on-creator using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/amavis using the ini-agent
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
SCR Agent for reading/writing /etc/sysconfig/apache using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/apache2 using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/autoinstall using the sysconfig-agent
Agent to read and write /etc/sysconfig/automatic_online_update using ini agent
SCR Agent for reading/writing /etc/sysconfig/bootloader using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/bootsplash using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/casa-ats using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/clock using the sysconfig-agent $$
SCR Agent for reading/writing /etc/sysconfig/console using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/cron using the sysconfig-agent
Agent for reading/writing /etc/sysconfig/named
SCR Agent for reading/writing /etc/sysconfig/displaymanager using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/windowmanager using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/fetchmail using the sysconfig-agent
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
SCR Agent for reading/writing /etc/sysconfig/autoinstall using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/gpm using the sysconfig-agent
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
Agent for /etc/sysconfig/hardware/*
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
SCR Agent for reading/writing /etc/sysconfig/hotplug using the sysconfig-agent
Agent for reading/writing /etc/sysconfig/ide
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
SCR Agent for reading/writing /etc/sysconfig/irda using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/joystick using the rc-agent
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
SCR Agent for reading/writing /etc/sysconfig/kdump using the sysconfig-agent
Agent for reading/writing /etc/sysconfig/kernel
SCR Agent for reading/writing /etc/sysconfig/keyboard using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/language using the sysconfig-agent
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
SCR Agent for reading/writing /etc/sysconfig/ldap using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/linuxUserMgmt using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/lirc using the sysconfig-agent
Agent for reading/writing /etc/sysconfig/locate
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
SCR Agent for reading/writing /etc/sysconfig/mail using the ini-agent
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
SCR Agent for reading/writing /etc/sysconfig/mouse using the sysconfig-agent
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
Agent for reading/writing /etc/sysconfig/named
Agent for reading/writing /etc/sysconfig/network/config
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
Agent for reading/writing /etc/sysconfig/network/dhcp
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
Agent for reading/writing /etc/sysconfig/network/providers/*
Agent for reading/writing /etc/sysconfig/nfs
Agent for reading/writing /etc/sysconfig/ntp
SCR Agent for reading/writing /etc/sysconfig/onlineupdate using the sysconfig-agent
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
SCR Agent for reading/writing /etc/sysconfig/openafs-client using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/openldap using the ini-agent
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
SCR Agent for reading/writing /etc/sysconfig/postfix using the ini-agent
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
SCR Agent for reading/writing /etc/sysconfig/product-creator using the sysconfig-agent
Agent for reading/writing /etc/sysconfig/proxy
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
SCR Agent for reading/writing /etc/scpm.conf
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
Agent for reading/writing /etc/sysconfig/security
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
SCR Agent for reading/writing /etc/sysconfig/sendmail using the ini-agent
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
Agent for reading/writing /etc/sysconfig/services
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
Agent for reading/writing /etc/sysconfig/slmodemd
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
SCR Agent for reading/writing /etc/sysconfig/alsa using the rc-agent
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
SCR Agent for reading/writing /etc/sysconfig/storage
Agent to read and write /etc/sysconfig/suse_register using ini agent
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
Agent for reading/writing /etc/sysconfig/suseconfig
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
Agent for reading/writing /etc/sysconfig/sysctl
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
SCR Agent for reading/writing /etc/sysconfig/windowmanager using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/xpram using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/yast2 using the sysconfig-agent
SCR Agent for reading/writing /etc/sysconfig/ypbind using the ini-agent
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
Agent for reading/writing /etc/sysconfig/ypserv
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
SCR Agent for interfacing with (shell) commands of the target system and reading/writing files.
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
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")TFTP agent
Access type: execute-only
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/tftp.scr
SCR Agent for reading/writing Apache2 configuration
Agent for testing if UID and/or username exists in system
Access type: read
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/uid.scr
SCR Agent for accessing /var/yp/Makefile
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/yp_makefile.scr
See also:
libscr
SCR Agent for reading /var/yp/securenets
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
SCR Agent for reading /var/yp/ypservers
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
SCR Agent for reading/writing /etc/vsftpd.conf using the ini-agent
Agent for reading|writing xauthority information
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)
SCR Agent for reading/writing /etc/X11/xawtvrc using the ini-agent
YaST2 SCR: Xml agent implementation
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
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).
Agent for reading/writing yast2 .desktop files
Access type: read / write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/yast2_desktop.scr
Agent for reading yast2 groups .desktop files
Access type: read only
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/yast2_groups.scr
SCR Agent for reading/writing /var/lib/YaST2/you/config using the sysconfig-agent
Access type: read/write
File Name:
/tmp/full-head-x86_64/usr/share/YaST2/scrconf/you_config.scr
SCR Agent for reading/writing /var/lib/YaST2/you/password using the sysconfig-agent
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