<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
	<channel>
		<title>Resistance is futile, your data will be assimilated (Linux/CentOS, Solaris)</title>
		<link>http://alchy.org/index.php</link>
		<description><![CDATA[(c)2007 - All Photos on the pages by Olympus OM2(50/28mm)]]></description>
		<copyright>Copyright 2010, Alchy</copyright>
		<managingEditor>Alchy</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.5.1</generator>
		<item>
			<title>DSEE7: design</title>
			<link>http://alchy.org/index.php?entry=entry100817-120854</link>
			<description><![CDATA[<center><img src="images/dsee7-ports-and-protocols.gif" width="256" height="343" border="0" alt="" /></center><br /><br />- The command line management and monitoring tools, dsconf(1M) and dpconf(1M), require only LDAP access to the servers that you manage. <br /><br />- DSCC is a web application. DSCC runs inside the framework known as Sun Java Web Console. You typically install DSCC on only one system in your deployment. You then manage all your servers from that installation of DSCC.<br /><br />- DSCC requires LDAP access to the servers for online management operations. DSCC also requires Java Management Extension (JMX) access to agents installed alongside the servers. The agents perform server process management operations on behalf of DSCC, operations that cannot be performed through LDAP on a running server. DSCC contacts the agents over the network using a specific port number.<br /><br />- The agents run inside a common agent container on the server system. This common agent container provides its agents with a single external port for management applications. The common agent container also consolidates resources to save resources on systems where multiple local agents share the container. For troubleshooting purposes, a common agent container can be managed independently using the cacaoadm command.<br /><br />- When you install DSCC you also install Directory Server software. DSCC uses its own private instance of Directory Server to store configuration information.<br /><br />- When you install DSCC on the administration host, you must be root. However, you can then use DSCC installed on the administration host to manage server hosts installed as non-root.<br /><br /><center><img src="images/dsee7-components-and-hosts.gif" width="344" height="461" border="0" alt="" /></center> <br /><br /> <blockquote>Directory Service Control Center not initialized: App server was runnig as a non-root user and directory server was runnig as a different non-root user. It worked when both these non-root users are set to identical. Sun Java System Directory Server  <a href="http://forums.sun.com/thread.jspa?threadID=5381572" target="_blank" >Discussion Thread</a>.</blockquote> ]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100817-120854</guid>
			<author>Alchy</author>
			<pubDate>Tue, 17 Aug 2010 10:08:54 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100817-120854</comments>
		</item>
		<item>
			<title>http://www.temnokomornik.com/</title>
			<link>http://alchy.org/index.php?entry=entry100816-234753</link>
			<description><![CDATA[<a href="http://www.temnokomornik.com/" target="_blank" >http://www.temnokomornik.com/</a>]]></description>
			<category></category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100816-234753</guid>
			<author>Alchy</author>
			<pubDate>Mon, 16 Aug 2010 21:47:53 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100816-234753</comments>
		</item>
		<item>
			<title>DSEE7: query LDAP aci (ACL) records with ldapsearch</title>
			<link>http://alchy.org/index.php?entry=entry100815-211856</link>
			<description><![CDATA[<b>* show all ACLs in dc=example,dc=com</b><br /><br /><pre>[root@dhcppc2 ~]# ldapsearch -h localhost -p 3200 -D &quot;cn=Directory Manager&quot; -w dsInstanceEXAMPLE -b &quot;dc=example,dc=com&quot; -s sub &quot;(objectClass=*)&quot; aci </pre><br /><br /><b>* show all objectclassed available in schema</b><br /><br /><pre>ldapsearch -h localhost -p 3200 -D &quot;cn=Directory Manager&quot; -w dsInstanceEXAMPLE -b &quot;cn=schema&quot; -s sub &quot;(objectClass=*)&quot; objectClasses</pre>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100815-211856</guid>
			<author>Alchy</author>
			<pubDate>Sun, 15 Aug 2010 19:18:56 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100815-211856</comments>
		</item>
		<item>
			<title>DSEE7: removing, adding and registering (to dscc, cacao) instances </title>
			<link>http://alchy.org/index.php?entry=entry100815-211624</link>
			<description><![CDATA[<b>* recreating default ads instance</b><br /><br /><pre>[root@dhcppc2 ~]# dsadm delete /usr/local/dsee7/var/dcc/ads<br />[root@dhcppc2 ~]# dsccsetup ads-create<br />[root@dhcppc2 ~]# dsadm start /usr/local/dsee7/var/dcc/ads<br />[root@dhcppc2 ~]# dsadm list-running-instances</pre><br /><br /><b>* start Cacao, deploy Cacao init-script, register the DSCC agent in Common Agent Container</b><br /><br /><pre>[root@dhcppc2 ~]# cacaoadm start<br />[root@dhcppc2 ~]# cacaoadm enable<br />[root@dhcppc2 ~]# dsccsetup cacao-reg</pre><br /><br /><b>* create and deploy war file, start Glassfish</b><br /><br /><pre>[root@dhcppc2 ~]# dsccsetup war-file-create<br />[root@dhcppc2 ~]# /opt/glassfish/bin/asadmin start-appserv</pre><br /><br /><b>* connect to Glassfish</b><br /><br /><pre>https://10.0.0.3:8181/dscc7/</pre><br /><br /><b>* vytvoření dsInstanceEXAMPLE instance</b><br /><br /><pre>[root@dhcppc2 ~]# dsadm create -u [user] -g [group] -p 3200 -P 3201 /usr/local/dsee7/dsInstanceEXAMPLE<br />[root@dhcppc2 ~]# dsadm create -u [user] -g [group] -p 4200 -P 4201 /usr/local/dsee7/dsInstanceEXAMPLE2<br />[root@dhcppc2 ~]# dsadm create -u [user] -g [group] -p 5200 -P 5201 /usr/local/dsee7/dsInstanceEXAMPLE3</pre><br /><br /><b>* start instance</b><br /><br /><pre>[root@dhcppc2 ~]# dsadm start /usr/local/dsee7/dsInstanceEXAMPLE<br />[root@dhcppc2 ~]# dsadm start /usr/local/dsee7/dsInstanceEXAMPLE2<br />[root@dhcppc2 ~]# dsadm start /usr/local/dsee7/dsInstanceEXAMPLE3</pre><br /><br /><b>* přidání instance ads do DSEE</b><br /><br /><pre>[root@dhcppc2 ~]# dsccreg add-server /usr/local/dsee7/dsInstanceEXAMPLE<br />[root@dhcppc2 ~]# dsccreg add-server /usr/local/dsee7/dsInstanceEXAMPLE2<br />[root@dhcppc2 ~]# dsccreg add-server /usr/local/dsee7/dsInstanceEXAMPLE3<br /></pre><br /><br /><b>* list instancí</b><br /><br /><pre>[root@dhcppc2 ~]# dsccreg list-servers<br />Enter DSCC administrator&#039;s password:<br />Enter DSCC administrator&#039;s password:Hostname  Port  sPort  Type  Owner  Flags  iPath                                Description<br />--------  ----  -----  ----  -----  -----  -----------------------------------  -----------<br />dhcppc2   4000  4001   DS    root          /usr/local/dsee7/dsInstanceEXAMPLE2<br />dhcppc2   5200  5201   DS    root          /usr/local/dsee7/dsInstanceEXAMPLE3<br />dhcppc2   3200  3201   DS    root          /usr/local/dsee7/dsInstanceEXAMPLE<br />3 server instance(s) found in DSCC on localhost.<br /></pre><br /><br /><b>* create suffix</b><br /><br /><pre>[root@dhcppc2 ~]# dsconf create-suffix -h [hostname] -p [port] dc=example.dc=com</pre><br /><br /><b>* import data to instance</b><br /><br /><pre>[root@dhcppc2 ~]# dsconf import -h [hostname] -p [port] [file.ldif] dc=example,dc=com</pre><br /><br /><b>* or import data offline</b><br /><br /><pre>[root@dhcppc2 ~]# dsadm import $DSHOME/slapd-ldap1 $DSHOME/prod.ldif dc=example,dc=com</pre><br /><br /><b>* create index on attribute</b><br /><br /><pre>[root@dhcppc2 ~]# dsconf create-index -h [hostname] -p [port] &#039;dc=example,dc=com&#039; [attributeName]</pre>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100815-211624</guid>
			<author>Alchy</author>
			<pubDate>Sun, 15 Aug 2010 19:16:24 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100815-211624</comments>
		</item>
		<item>
			<title>Sun DSEE7, úpravy nastavení</title>
			<link>http://alchy.org/index.php?entry=entry100814-203205</link>
			<description><![CDATA[<b>* atributy souborů</b> vytvořené instance:<br /><br /><pre>[root@dhcppc2 dsInstanceEXAMPLE]# cd /usr/local/dsee7/dsInstanceEXAMPLE/<br />[root@dhcppc2 dsInstanceEXAMPLE]# find . -type d | xargs chmod 770<br />[root@dhcppc2 dsInstanceEXAMPLE]# find . -type f | xargs chmod 660<br /><br />[root@dhcppc2 dsInstanceEXAMPLE]# find . | xargs ls -l<br />-rw-rw----  1 ldapadm ldapadm     1624 Aug 14 12:32 ./alias/certmap.conf<br />-rw-rw----  1 ldapadm ldapadm    16384 Aug 14 12:32 ./alias/secmod.db<br />-rw-rw----  1 ldapadm ldapadm    65536 Aug 14 12:32 ./alias/slapd-cert8.db<br />-rw-rw----  1 ldapadm ldapadm    16384 Aug 14 12:32 ./alias/slapd-key3.db<br />-rw-rw----  1 ldapadm ldapadm       12 Aug 14 12:32 ./config/certdb.txt<br />-rw-rw----  1 ldapadm ldapadm    80048 Aug 14 14:12 ./config/dse.ldif<br />-rw-rw----  1 ldapadm ldapadm    70902 Aug 14 14:12 ./config/dse.ldif.bak<br />-rw-rw----  1 ldapadm ldapadm    65343 Aug 14 12:35 ./config/dse.ldif.startOK<br />-rw-rw----  1 ldapadm ldapadm    77945 Aug 14 12:32 ./config/schema/00core.ldif<br />-rw-rw----  1 ldapadm ldapadm     7403 Aug 14 12:32 ./config/schema/00ds6pwp.ldif<br />-rw-rw----  1 ldapadm ldapadm     1842 Aug 14 12:32 ./config/schema/05rfc2247.ldif</pre><br /><br />*** doplnit pro adresář, /usr/local/dsee7/dsInstance${NAME|$CLASS}/plugins/signatures<br /> (cert7.db, key3.db, secmod.db)<br /><br /><b>* CACAO bind</b><br /><br /><pre>[root@dhcppc2 bin]# cacaoadm stop<br />[root@dhcppc2 bin]# cacaoadm list-params<br />[root@dhcppc2 bin]# cacaoadm set-param network-bind-address=127.0.0.1<br />[root@dhcppc2 bin]# cacaoadm start</pre><br /><br /><b>* CACAO file rights</b><br /><br /><pre>[root@dhcppc2 local]# cacaoadm verify-configuration<br />CONFIG ERROR : File access rights of [/usr/local/dsee7/ext/cacao_2/etc/opt/sun/cacao2/instances/default/security/snmp] are wrong [rwxrwxrwx] should be [rwxr-xr-x].<br />CONFIG ERROR : File access rights of [/usr/local/dsee7/ext/cacao_2/etc/opt/sun/cacao2/instances/default/security/snmp/jdmk.acl] are wrong [rwxrwxrwx] should be [rw-------].</pre><br /><br /><b>* není vhodné logovat do adresáře instance</b><br /><br /><pre>[root@dhcppc2 dsee7]# INSTANCE_LOG=&quot;/var/log/dsee7/dsInstanceEXAMPLE/logs&quot;<br />[root@dhcppc2 dsee7]# mkdir -p $INSTANCE_LOG<br />[root@dhcppc2 dsee7]# touch $INSTANCE_LOG/error<br />[root@dhcppc2 dsee7]# touch $INSTANCE_LOG/logs/audit<br />[root@dhcppc2 dsee7]# touch $INSTANCE_LOG/access<br />[root@dhcppc2 dsee7]# chown -R ldapadm.ldapadm $INSTANCE_LOG<br /><br />[ldapadm]$ ldapmodify -h dhcppc2 -p 3200 -D &quot;cn=Directory Manager&quot; -w dsInstanceEXAMPLE<br />dn: cn=config<br />changetype: modify<br />replace: nsslapd-errorlog<br />nsslapd-errorlog: /var/log/dsee7/dsInstanceEXAMPLE/logs/errors<br />replace: nsslapd-accesslog<br />nsslapd-accesslog: /var/log/dsee7/dsInstanceEXAMPLE/logs/access<br />replace: nsslapd-auditlog<br />nsslapd-auditlog: /var/log/dsee7/dsInstanceEXAMPLE/logs/audit<br /><br />[ldapadm]$  ldapmodify -h dhcppc2 -p 3200 -D &quot;cn=Directory Manager&quot; -w dsInstanceEXAMPLE<br />dn: cn=config<br />changetype: modify<br />replace: nsslapd-auditlog-permissions<br />nsslapd-auditlog-permissions: 660<br />replace: nsslapd-accesslog-permissions<br />nsslapd-accesslog-permissions: 660<br />replace: nsslapd-errorlog-permissions<br />nsslapd-errorlog-permissions: 660<br />modifying entry cn=config</pre><br /><br /><b>* změna defaultní úrovně logování</b><br /><br /><pre>[ldapadm]$  ldapmodify -h dhcppc2 -p 3200 -D &quot;cn=Directory Manager&quot; -w dsInstanceEXAMPLE<br />dn: cn=config<br />changetype: modify<br />replace: nsslapd-errorlog-level<br />nsslapd-errorlog-level: 256<br />replace: nsslapd-infolog-level<br />nsslapd-infolog-level: 256</pre><br /><br /><b>* ověření nastavení</b><br /><br /><pre>[ldapadm]$ ldapsearch -h localhost -p 3200 -D &quot;cn=Directory Manager&quot; -w dsInstanceEXAMPLE -b &quot;cn=config&quot; -s base &quot;(objectclass=*)&quot; </pre><br /><br /><a href="http://www.centos.org/docs/5/html/CDS/cli/8.0/Configuration_Command_File_Reference-Core_Server_Configuration_Reference-Core_Server_Configuration_Attributes_Reference.html" target="_blank" >Core Server Configuration Reference</a><br /><br /><b>* password policy</b><br /><pre>[ldapadm]$ ldapsearch -h localhost -p 3200 -D &quot;cn=Directory Manager&quot; -w dsInstanceEXAMPLE -b &quot;cn=Password Policy,cn=config&quot; -s sub &quot;(objectclass=*)&quot;<br />version: 1<br />dn: cn=Password Policy,cn=config<br />objectClass: top<br />objectClass: ldapsubentry<br />objectClass: pwdPolicy<br />objectClass: sunPwdPolicy<br />objectClass: passwordPolicy<br />cn: Password Policy<br />pwdAttribute: userPassword<br />passwordStorageScheme: SSHA<br />passwordChange: on<br />pwdAllowUserChange: TRUE<br />pwdSafeModify: FALSE<br />passwordRootdnMayBypassModsChecks: off<br />passwordNonRootMayResetUserpwd: on<br />passwordInHistory: 0<br />pwdInHistory: 0<br />passwordMinAge: 0<br />pwdMinAge: 0<br />passwordCheckSyntax: off<br />pwdCheckQuality: 0<br />passwordMinLength: 6<br />pwdMinLength: 6<br />passwordMustChange: off<br />pwdMustChange: FALSE<br />passwordExp: off<br />passwordMaxAge: 0<br />pwdMaxAge: 0<br />passwordWarning: 86400<br />pwdExpireWarning: 86400<br />passwordExpireWithoutWarning: on<br />pwdGraceAuthNLimit: 0<br />pwdKeepLastAuthTime: FALSE<br />passwordLockout: off<br />pwdLockout: FALSE<br />passwordMaxFailure: 3<br />pwdMaxFailure: 3<br />passwordResetFailureCount: 600<br />pwdFailureCountInterval: 600<br />pwdIsLockoutPrioritized: TRUE<br />passwordUnlock: on<br />passwordLockoutDuration: 3600<br />pwdLockoutDuration: 3600</pre><br />]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100814-203205</guid>
			<author>Alchy</author>
			<pubDate>Sat, 14 Aug 2010 18:32:05 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100814-203205</comments>
		</item>
		<item>
			<title>Sun&#039;s DSEE7, some command basics</title>
			<link>http://alchy.org/index.php?entry=entry100813-215018</link>
			<description><![CDATA[<b>Directory Service Control Center:</b> Directory Service Control Center (DSCC) is a user interface that enables you to manage Directory Servers and Directory Proxy Servers by using a browser.<br /><br /><i>* OS user</i>. Creates a server instance and is the only user who has the right to run operating system commands on a server instance by using the dsadm command. DSCC might request the OS user password in some cases. This user must have a password and must be able to create directory server instances.<br /><br /><i>* Directory Manager</i>. The LDAP superuser for a server. The default DN is cn=Directory Manager.<br /><br /><i>* Directory Administrator</i>. Administers a Directory Server. This user has the same rights as the Directory Manager but are subject to access controls, password policies, and authentication requirements. You can create as many Directory Administrators as you need.<br />  <br /><i>* Directory Service Manager</i>. Manages server configuration and data on multiple machines through DSCC. This user has the same rights as the Directory Manager for each of the servers registered in DSCC and is a member of the Directory Administrators Group.<br /><br /><br /><center><b>---------------------------------------------------------------<br />---------------------- dscc commands --------------------------<br />---------    dsccmon    dsccreg    dsccsetup    ---------------<br />---------------------------------------------------------------</b></center><br /><br /><b>*** dsccmon:</b> Monitor servers registered with the DSCC registry<br /><pre>view-repl-agmts   Displays replication agreement monitoring view  <br />view-servers      Displays server monitoring view  <br />view-suffixes     Displays suffix monitoring view <br /><br />[root@dhcppc2 dsee7]# dsccmon view-repl-agmts<br />Enter DSCC administrator&#039;s password:<br />Suffix  Source  Destination  Status  Status Details  <br />------  ------  -----------  ------  --------------  <br /><br />[root@dhcppc2 dsee7]# dsccmon view-suffixes<br />Enter DSCC administrator&#039;s password:<br />Role  Suffix                   Server  Entry#  Agmt#  State           NMC  AMC  Status Details  <br />----  -----------------  ------------  ------  -----  --------------  ---  ---  --------------  <br />-     dc=example,dc=com  dhcppc2:1389     160      0  Not-Replicated    -    -  -  <br /><br />[root@dhcppc2 dsee7]# dsccmon view-servers<br />Enter DSCC administrator&#039;s password:<br />Server        Status  Version  Entry#  Suffix#  Roles  <br />------------  ------  -------  ------  -------  -----  <br />dhcppc2:1389  DOWN    -             0        0    ---  <br /></pre><br /><br /><b>*** dsccsetup</b>: Manage DSCC initialization and registration<br /><pre>ads-create       Create the DSCC Registry  <br />ads-delete       Delete the DSCC Registry  <br />cacao-reg        Register DSCC agent in Cacao  <br />cacao-unreg      Unregister DSCC agent from Cacao  <br />dismantle        Undo DSCC initialization by performing cacao-unreg, ads-delete and war-file-delete  <br />initialize       Initialize DSCC by performing cacao-reg, ads-create and war-file-create  <br />mfwk-reg         Register DS in JESMF  <br />mfwk-unreg       Unregister DS from JESMF  <br />prepare-patch    Performs actions required before applying patch  <br />status           Displays status of DSCC registration and initialization  <br />war-file-create  Generate the WAR file for deploying DSCC in an application server  <br />war-file-delete  Delete the WAR file<br /><br />[root@dhcppc2 dsee7]# dsccsetup status -v<br />***<br />## /usr/local/dsee7/ext/cacao_2/cacao2/bin/cacaoadm is present<br />## /usr/local/dsee7/lib/jar/nquickmodule.jar is present<br />## /usr/local/dsee7/ext/cacao_2/.configured is present<br />## Running /usr/local/dsee7/ext/cacao_2/cacao2/bin/cacaoadm list-modules -r<br />DSCC Agent is registered in Cacao<br />## Running /usr/local/dsee7/ext/cacao_2/cacao2/bin/cacaoadm status<br />## Running /usr/local/dsee7/ext/cacao_2/cacao2/bin/cacaoadm get-param network-bind-address<br />## Running /usr/local/dsee7/ext/cacao_2/cacao2/bin/cacaoadm get-param jmxmp-connector-port<br />Cacao is down. Start it using:<br />        /usr/local/dsee7/ext/cacao_2/cacao2/bin/cacaoadm start<br />***<br />## /usr/local/dsee7/bin/dsadm is present<br />DSCC Registry has been created<br />Path of DSCC registry is /usr/local/dsee7/var/dcc/ads<br />Port of DSCC registry is 3998<br />***</pre><br /><br /><b>*** dsccreg</b>: Manage the DSCC registry<br /><pre>add-server     Add a server instance to the DSCC registry  <br />list-servers   List server instances added to DSCC registry  <br />remove-server  Remove a server instance from the DSCC registry  <br /><br />[root@dhcppc2 dsee7]# dsccreg list-servers<br />Enter DSCC administrator&#039;s password:<br />Hostname  Port  sPort  Type  Owner  Flags  iPath              Description  <br />--------  ----  -----  ----  -----  -----  -----------------  -----------  <br />dhcppc2   1389  1636   DS    root          /usr/local/dsInst    <br />1 server instance(s) found in DSCC on localhost.</pre><br /><br /><br /><center><b>---------------------------------------------------------------<br />------------------------ ds commands --------------------------<br />------------------- dsutil dsadm dsconf -----------------------<br />---------------------------------------------------------------</b></center><br /><br /><b>*** dsutil</b>: Commands for inactivating/activating user accounts<br /><pre>account-activate    Re-enable bind operation for a single user or users member of a role  <br />account-inactivate  Disable bind operation for a single user or users member of a role  <br />account-status      Indicates whether a user or role is activated<br /><br />[root@dhcppc2 dsee7]# dsutil account-status --secure-port 1636 -D &quot;cn=Directory Manager&quot; \<br />&gt; &quot;uid=bjensen,ou=people,dc=example,dc=com&quot;<br />Enter &quot;cn=Directory Manager&quot; password: <br />&quot;uid=bjensen,ou=people,dc=example,dc=com&quot; is activated.<br /><br />[root@dhcppc2 dsee7]# dsutil account-inactivate --secure-port 1636 -D &quot;cn=Directory Manager&quot; \<br />&quot;uid=bjensen,ou=people,dc=example,dc=com&quot;<br />Enter &quot;cn=Directory Manager&quot; password: <br />&quot;uid=bjensen,ou=people,dc=example,dc=com&quot; has been inactivated.</pre><br /><br /><b>*** dsadm</b>: Manages a Directory Server instance, administration commands that must be run directly on the local host. For example: Starting and stopping the server, Creating a server Instance. You must have OS access permissions to the server instance path. <br /><pre>add-cert                Adds a certificate to the certificate database<br />add-selfsign-cert       Creates and adds a selfsign certificate to the certificate database<br />analyze-indexes         Analyzes indexes and displays statistics on their values<br />backup                  Backs up Directory Server instance<br />create                  Creates Directory Server instance<br />delete                  Deletes Directory Server instance<br />export                  Creates LDIF representation of Directory Server instance<br />export-cert             Exports a certificate and its keys from the database<br />get-flags               Displays optional Directory Server instance flag values<br />import                  Populates existing suffix with LDIF data<br />import-cert             Adds a new certificate and its keys to the cert database<br />import-selfsign-cert    Adds a new selfsign certificate and its keys to the cert database<br />info                    Displays Directory Server instance status and some configuration info<br />list-certs              Lists all certificates in the database<br />list-running-instances  Displays running instances on this host<br />reindex                 Regenerates existing indexes<br />remove-cert             Removes a certificate from the database<br />renew-cert              Renews a certificate<br />renew-selfsign-cert     Renews a selfsign certificate<br />repack                  Repacks existing suffix<br />request-cert            Generates a certificate request<br />restart                 Restarts Directory Server instance<br />restore                 Restores Directory Server instance from backup archive<br />set-flags               Sets optional Directory Server instance flags<br />show-access-log         Displays lines from access log<br />show-cert               Displays a certificate<br />show-error-log          Displays lines from error log<br />start                   Starts Directory Server instance<br />stop                    Stops Directory Server instance<br />stop-running-instances  Stops Directory Server instances<br />upgrade                 Upgrades Directory Server instance from version 6 to version 7<br /><br />[root@dhcppc2 dsee7]# dsadm start /usr/local/dsInst<br />Directory Server instance &#039;/usr/local/dsInst&#039; started: pid=10617<br /><br />[root@dhcppc2 dsee7] dsadm list-running-instances<br />  PID    Instance path<br />-----    --------------------------<br /> 1391    /opt/dsee7/var/dcc/ads<br />17999    /opt/dsee7/dsInst<br /><br />[root@dhcppc2 dsee7]# dsadm show-access-log /usr/local/dsInst/<br />[13/Aug/2010:22:51:26 +0200] conn=22 op=12 msgId=-1 - closing from 127.0.0.1:48730 - U1 - Connection closed by unbind client -<br />[13/Aug/2010:22:51:26 +0200] conn=22 op=10 msgId=11 - RESULT err=0 tag=105 nentries=0 etime=0</pre><br /><br /><b>*** dsconf</b>: Configures a Directory Server Instance, Administration commands that can be run from a remote host. For example: Enabling replication, Setting cache size. The server must be running. You must have LDAP access permissions to configuration data, for example, as the user cn=admin,cn=Administrators,cn=config. You don&#039;t need to have OS access.<br /><pre>accord-repl-agmt               Ensures the authentication properties of the destination suffix are in accord with those of the replication agreement  <br />analyze-index-filters          Analyzes index filters and displays a status  <br />backup                         Backs up Directory Server data (cn=config excluded)  <br />change-repl-dest               Changes the remote replica pointed to by an existing replication agreement  <br />create-encrypted-attr          Creates an encrypted attribute   <br />create-index                   Creates an index   <br />create-plugin                  Creates a plugin  <br />create-repl-agmt               Creates replication agreement for existing suffix  <br />create-repl-priority           Creates a prioritized replication rule on a master  <br />create-suffix                  Creates suffix and empty data  <br />delete-encrypted-attr          Deletes an encrypted attribute   <br />delete-index                   Deletes an index   <br />delete-plugin                  Deletes a plugin  <br />delete-repl-agmt               Deletes replication agreement  <br />delete-repl-priority           Deletes a prioritized replication rule  <br />delete-suffix                  Deletes suffix configuration and data  <br />demote-repl                    Demotes an existing replicated suffix  <br />disable-index-filter-analyzer  Disables the index filter analyzer  <br />disable-plugin                 Disables a plugin  <br />disable-repl                   Abandons replication for replicated suffix  <br />disable-repl-agmt              Disables replication with another directory  <br />enable-index-filter-analyzer   Enables the index filter analyzer  <br />enable-plugin                  Enables a plugin  <br />enable-repl                    Enables replication by assigning a role to an existing suffix  <br />enable-repl-agmt               Enables replication with another directory  <br />export                         Exports suffix data to LDIF format  <br />get-index-prop                 Displays index property values  <br />get-log-prop                   Displays server log property values  <br />get-plugin-prop                Displays plugin property values  <br />get-repl-agmt-prop             Displays replication agreement property values  <br />get-server-prop                Displays server property values  <br />get-suffix-prop                Displays suffix property values  <br />help-properties                Lists properties exposed by subcommands  <br />import                         Populates an existing suffix with LDIF data  <br />info                           Displays information about server configuration  <br />init-repl-dest                 Launches total update of remote replica from local suffix  <br />list-encrypted-attrs           Lists encrypted attributes and displays their property values  <br />list-indexes                   Lists indexes  <br />list-plugins                   Lists plugins  <br />list-repl-agmts                Lists replication agreements  <br />list-repl-priorities           Lists prioritized replication rules and displays their property values  <br />list-suffixes                  Lists suffixes  <br />promote-repl                   Promotes an existing replicated suffix  <br />pwd-compat                     Changes Directory Server password compatibility mode  <br />reindex                        Rebuilds indexes of an existing suffix  <br />restore                        Restores Directory Server data from backup archive  <br />rotate-log-now                 Launches a rotation of a log file  <br />set-index-prop                 Sets index property values  <br />set-log-prop                   Sets server log property values  <br />set-plugin-prop                Sets plugin property values  <br />set-repl-agmt-prop             Sets replication agreement property values  <br />set-server-prop                Sets server property values  <br />set-suffix-prop                Sets suffix property values  <br />show-repl-agmt-status          Displays a comparison of a source and destination suffix configuration and the status of the replication agreement  <br />show-task-status               Displays a status of Directory Server active tasks  <br />update-repl-dest-now           Forces updates of remote replica from local suffix<br /><br />[root@dhcppc2 dsee7]# dsconf create-suffix -h dhcppc2 -p 3200 dc=example,dc=com<br />Certificate &quot;CN=dhcppc2, CN=3201, CN=Directory Server, O=Sun Microsystems&quot; presented by the server is not trusted.<br />Type &quot;Y&quot; to accept, &quot;y&quot; to accept just once, &quot;n&quot; to refuse, &quot;d&quot; for more details: y<br />Enter &quot;cn=Directory Manager&quot; password:  &gt;dsInstanceEXAMPLE&lt;</pre><br /><br /><br /><center><b>----------------------------------------------------<br />---------------------- cacao -----------------------<br />----------------------------------------------------</b></center><br /><br />The short CACAO overview from Ludovic is taken from <a href="http://forums.sun.com/thread.jspa?threadID=5211546" target="_blank" >here</a>. The CACAO homepage can be found at <a href="https://common-agent-container.dev.java.net/" target="_blank" >https://common-agent-container.dev.java.net/</a>. DS depends on the common agent container for remote managent and monitoring.<br /><br />The common agent container is also known by the nickname of Cacao (which is the French version of cocoa). It&#039;s a Solaris process used to host several Agents under the same process. DSEE has an agent for DS and DPS, that are required by DSCC to be able to do remote actions on the servers (such as start / stop).<br /><br />Also we have an Agent for the JMX Monitoring of DS (which also requires the JavaES Monitoring Framework agents installed). <br /><br /><b>Common Agent Container Security Files</b>. The cacaoadm utility is the command line interface for managing the common agent container’s management daemon.<br /><br />The common agent container’s management daemon provides a modular infrastructure that hosts both a management agent and service modules. Several instances of the common agent container’s management daemon can run at the same time. Use the -i instancename option to specify a specific instance on which the action will be performed. If you specify the default instancename (called default), then the files are associated with the default daemon instance. This default instance is created automatically and cannot be deleted.<br /><br /><b>cacaoadm</b>: The cacaoadm utility is the command line interface for managing the common agent containerâs management daemon.<br /><pre> disable          Disable the automatic start or stop of the common agent<br />                  container daemon during system boot or shutdown.<br /> enable           Enable the common agent container daemon to startup<br />                  automatically during subsequent system boots and<br />                  to stop gracefully during system shutdown.<br /> restart          Stop and subsequently start the common agent container daemon.<br /> start            Start the common agent container daemon.<br /> stop             Stop the common agent container daemon.<br /> status           Display the common agent container daemon status.<br /> get-param        Display a parameter value.<br /> set-param        Set a parameter value.<br /> list-params      Display the list of parameters.<br /> list-modules     Display the list of all modules deployed.<br /> undeploy         Undeploy a module.<br /> lock             Lock a module.<br /> unlock           Unlock a module.<br /> deploy           Deploy a module.<br /> get-filter       Get the value associated with a filter.<br /> set-filter       Set a run-time filter level.<br /> list-filters     Display the list of all available filters along with their<br />                  levels.<br /> create-keys      Generate keys for the common agent container.<br /> delete-keys      Delete security keys of the common agent container.<br /> list-instances   Display the list of all created and not removed instances.<br /> create-instance  Create a new instance of the common agent container.<br /> delete-instance  Delete a common agent container instance.<br /> show-trusted-cert<br />                  Display a trusted certificate.<br /> add-trusted-cert<br />                  Add a trusted certificate.<br /> list-trusted-certs<br />                  Display the list of all trusted certificates.<br /> show-cert-chain  Display the common agent container certificate chain.<br /> register-module  Register a module so that the module starts the next<br />                  time the common agent container&#039;s management daemon starts.<br /> unregister-module<br />                  Unregister a module so that the module does not start the<br />                  next time the common agent container&#039;s management daemon<br />                  starts.<br /> verify-configuration<br />                  Check the validity of the common agent container<br />                  configuration.<br /> rebuild-dependencies<br />                  Redetect all dependencies.<br /> prepare-uninstall<br />                  Stop all the running instances and remove their startup<br />                  resources. To be used just before uninstalling Cacao.<br /><br />[root@dhcppc2 local]# cacaoadm delete-keys<br />[root@dhcppc2 local]# cacaoadm create-keys<br /><br />[root@dhcppc2 bin]# cacaoadm list-params<br />snmp-adaptor-port=21161<br />snmp-adaptor-trap-port=21162<br />jmxmp-connector-port=21162<br />commandstream-adaptor-port=21163<br />rmi-registry-port=0<br />secure-webserver-port=0<br />java-flags=-Xms4M -Xmx128M -Dcom.sun.management.jmxremote -Dfile.encoding=utf-8 <br />-Djava.endorsed.dirs=/opt/dsee7/ext/cacao_2/cacao2/share/lib/endorsed<br />micro-agent=false<br />java-home=/opt/dsee7/jre<br />jdmk-home=/opt/dsee7/lib/private<br />nss-lib-home=/opt/dsee7/lib/private<br />nss-tools-home=/opt/dsee7/bin<br />retries=4<br />log-file-limit=1000000<br />log-file-count=3<br />log-file-append=true<br />enable-instrumentation=false<br />user=root<br />group=root<br />network-bind-address=0.0.0.0<br />watchdog-heartbeat-timeout=60<br /><br />[root@dhcppc2 local]# cacaoadm set-param network-bind-address=0.0.0.0<br /><br />[root@dhcppc2 local]# netstat -tnl | grep 21162<br />tcp        0      0 ::ffff:127.0.0.1:21162      :::*                        LISTEN<br /><br />[root@dhcppc2 bin]# ./cacaoadm list-trusted-certs<br />cacao_ca<br /><br />[root@dhcppc2 bin]# ./cacaoadm show-trusted-cert -i default cacao_ca<br />-----BEGIN CERTIFICATE-----<br />MIIBoTCCAQqgAwIBAgIEehsXwzANBgkqhkiG9w0BAQUFADAVMRMwEQYDVQQDDApkaGNwcGMyX2Nh<br />MB4XDTY5MDYxMzIzMjkwM1oXDTMwMDgxMzIzMjkwM1owFTETMBEGA1UEAwwKZGhjcHBjMl9jYTCB<br />nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAygzWP+T4dPzE3qvhfYNIJrCdNSLZjy4hUVsFl2kp<br />vogooT37II9YxCxkINML2vV7ZXFjrUoAT1sLDRYBTIxayCZZ8/GqDiwVppbSdmnx28/QgzPnR517<br />Aj0rBdweu4/Js0yinK4prT7Zj0tcHuaaNuH8w8QQwWDiLsvM5xl84lkCAwEAATANBgkqhkiG9w0B<br />AQUFAAOBgQA57SpU04VlLYlblSqRLe0mp1cXJ8Crofk4ie7+GV02Gao+DgXj43aZVFNrbgWShVgZ<br />re/Qh7FkFIwAMATh0zhRw1X3Upa6AIKje5jnfPWHGqqZmTHjDU2J6BWhSGbJlAO0KVN+RRSFOMiY<br />TQ7UCHwcM5Rgyt/KIRkQNx6R9zWPhQ==<br />-----END CERTIFICATE-----<br /><br /><br />[root@dhcppc2 bin]# cacaoadm status<br />default instance is ENABLED at system startup.<br />Current retries count : 0/4<br />Processes:<br />23766<br />Uptime: 0 day(s), 0:0</pre><br /><br />Project <b>OpenDMK</b> has the same features and code base as the Java DMK version 5.1, patch level 3, with the exception of some legacy or deprecated APIs which were removed. The examples, documentation, and source code contributions that can be found in the commercial Java Dynamic Management Kit  are not included in this release. <br /><br /><pre><br />    * now: <a href="https://opendmk.dev.java.net/" target="_blank" >https://opendmk.dev.java.net/</a><br />    * Java DMK 5.1 (June 2004)<br />    * Java DMK 5.0 (June 2002)<br />    * Java DMK 4.2 (December 2000)<br />    * Java DMK 4.1 (April 2000)<br />    * Java DMK 4.0 (December 1999)<br />    * Java DMK 3.2 (March 1999)<br />    * Java DMK 3.0 (November 1998)<br />    * Java DMK 2.0 (February 1998)</pre><br /><br /><b>Java Dynamic Management Kit (Java DMK)</b> is a Java technology based toolkit that allows developers to rapidly create smart agents based on the Java Management Extensions (JMX) specification. The power of the JMX framework is that it supports multiple protocol access to management information residing in the agent. <br /><br /><pre>[root@dhcppc2 dsee7]# vi /usr/local/dsee7/ext/cacao_2/etc/opt/sun/cacao2/instances/default/private/cacao.properties<br /># Location of dependencies : Java, JDMK, NSSjava.home=/usr/java/jre1.6.0_21<br />jdmk.home=/usr/local/dsee7/lib/private<br />nss.lib.home=/usr/local/dsee7/lib/private<br />nss.tools.home=/usr/local/dsee7/lib/private<br />watchdog.heartbeat.timeout=60<br /># Define username and groupname for cacao process<br />process.username=root<br />process.groupname=root<br /># Audit configuration<br />audit.enabled=true<br />audit.reads=false<br />audit.daemon=false<br /><br />[root@dhcppc2 dsee7]# more ././ext/mfwk/config/security/snmp/jdmk.acl<br /># Copyright 2004-2005 Sun Microsystems, Inc.  All rights reserved.<br /># Use is subject to license terms.<br />#<br /># ident &quot;$Revision: 1.5 $       SMI&quot;<br /><br /># communities: can be comma separated strings<br /># access: can take only &quot;read-only&quot; or &quot;read-write&quot; values<br /># managers: can be a hostname, ipaddress or netmask<br />#    - hostname: hubble <br />#    - ip v4 and v6 addresses: 123.456.789.12 , fe80::a00:20ff:fe9b:ea82<br />#    - subnet mask: 123!255!255!255  (its an IPO address where &quot;.&quot; are replaced by &quot;!&quot;). This way of expressing the subnet is deprecated,<br /> use the prefix notation.<br />#    - ip v4 and v6 netmask prefix notation : 123.456.789.12/24, fe80::a00:20ff:fe9b:ea82/64<br />#<br /><br />acl = {<br /> {<br /> communities = mfwk<br /> access = read-only<br /> managers = 255!255!255!255<br /> }<br /># {<br /># communities = private<br /># access = read-write<br /># managers = hostname<br /># } <br />} <br /><br />#trap = {<br />#  {<br />#  trap-community = public<br />#  hosts = hostname<br />#  }<br />#}</pre>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100813-215018</guid>
			<author>Alchy</author>
			<pubDate>Fri, 13 Aug 2010 19:50:18 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100813-215018</comments>
		</item>
		<item>
			<title>SSH</title>
			<link>http://alchy.org/index.php?entry=entry100811-163227</link>
			<description><![CDATA[Vytvoření RSA privátního a veřejného klíče bez hesla:<br /><pre># ssh-keygen -q -t rsa -N &#039;&#039; -f ~/.ssh/id_rsa</pre> <br /><br />zkopírování veřejného klíče do ~/.ssh/authorized_keys<br /><pre># ssh-copy-id <a href="mailto:user@remote.example.com" target="_blank" >user@remote.example.com</a></pre> <br /><br />Odstranění hesla z privátního klíče:<br /><pre># openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa</pre> <br /><br />Zašifrování privátního klíče heslem:<br /><pre># openssl rsa -des3 -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa</pre> <br /><br />Správná práva na soubory .ssh<br /><pre># chmod 700 ~/.ssh<br /># chmod 600 ~/.ssh/id_rsa<br /># chmod 644 ~/.ssh/id_rsa.pub  <br /># chmod 644 ~/.ssh/authorized_keys<br /># chmod 644 ~/.ssh/known_hosts</pre> ]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100811-163227</guid>
			<author>Alchy</author>
			<pubDate>Wed, 11 Aug 2010 14:32:27 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100811-163227</comments>
		</item>
		<item>
			<title>Nagios check template pro kontrolu pres SSH (Linux audit system)</title>
			<link>http://alchy.org/index.php?entry=entry100811-151334</link>
			<description><![CDATA[<pre><code>#!/bin/sh<br /># Nagios check<br /># check name: sec_auditd<br /># uses: ssh and private key to check the server<br /># log:  logs the result using system log<br /><br /># script args<br /># $0 - full path to command (default system)<br /># $1 - user parameter (host to check)<br /># $2 - user parameter (none)<br /><br /># SSH credentials<br />SSH_HOST_TO_CHECK=$1<br />SSH_USERNAME=&quot;username&quot;<br />SSH_PRIVATE_KEY=&quot;/home/nagios/.ssh/id_rsa.plain&quot;<br />SYSLOG_FACILITY=&quot;user&quot;<br />SYSLOG_SEVERITY=&quot;info&quot;<br /><br /># nagios check result states (default)<br />STATE_OK=0<br />STATE_WARNING=1<br />STATE_CRITICAL=2<br />STATE_UNKNOWN=3<br />STATE_DEPENDENT=4<br /><br /># check pid, run date, name of the check, output to file<br />MY_PID=$$<br />DATE=`date`<br />SCRIPT_NAME=`basename $0`<br />CHECK_RESULT=&quot;/tmp/$MY_PID.tmp&quot;<br /><br />&gt; $CHECK_RESULT<br />chown nagios.nagios $CHECK_RESULT<br /><br />#######################<br /># the actual check body<br /><br /># the following device names of tty lines are filtered: pts, pty<br />ssh -o StrictHostKeyChecking=no -o ConnectTimeout=8 \<br />    -l $SSH_USERNAME -i $SSH_PRIVATE_KEY $SSH_HOST_TO_CHECK &#039;ps -ef&#039; &gt; $CHECK_RESULT<br /><br /># log the ssh output<br />while read line<br />do<br />        logger -t &quot;$SCRIPT_NAME[$SSH_HOST_TO_CHECK]&quot; -p &quot;$SYSLOG_FACILITY.$SYSLOG_SEVERITY&quot; &quot;$line&quot;<br />done &lt; $CHECK_RESULT<br /><br /># result evaluation<br /># should mirror the content of /etc/securetty<br />if [ `cat $CHECK_RESULT | grep auditd | grep -v grep | wc -l` -eq 0 ]; then<br />        echo &quot;CRITICAL: audit subsystem is not installed&quot;<br />        rm $CHECK_RESULT<br />        exit $STATE_CRITICAL<br />fi<br /><br />if [ `cat $CHECK_RESULT | grep auditd | grep -v grep | wc -l` -lt 2 ]; then<br />        echo &quot;WARNING: auditd service is not running&quot;<br />        rm $CHECK_RESULT<br />        exit $STATE_WARNING<br />fi<br />rm $CHECK_RESULT<br />echo &quot;OK: auditd is running&quot;<br />exit $STATE_OK<br /></code></pre>  ]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100811-151334</guid>
			<author>Alchy</author>
			<pubDate>Wed, 11 Aug 2010 13:13:34 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100811-151334</comments>
		</item>
		<item>
			<title>Nagios check template pro kontrolu pres SSH (console login)</title>
			<link>http://alchy.org/index.php?entry=entry100810-113618</link>
			<description><![CDATA[<code><pre>#!/bin/sh<br /># Nagios check<br /># check name: sec_console<br /># uses: ssh and private key to check the server<br /># log:  logs the result using system log<br /><br /># script args<br /># $0 - full path to command (default system)<br /># $1 - user parameter (host to check)<br /># $2 - user parameter (none)<br /><br /># SSH credentials<br />SSH_HOST_TO_CHECK=$1<br />SSH_USERNAME=&quot;username&quot;<br />SSH_PRIVATE_KEY=&quot;/home/nagios/.ssh/id_rsa.plain&quot;<br />SYSLOG_FACILITY=&quot;user&quot;<br />SYSLOG_SEVERITY=&quot;info&quot;<br /><br /># nagios check result states (default)<br />STATE_OK=0<br />STATE_WARNING=1<br />STATE_CRITICAL=2<br />STATE_UNKNOWN=3<br />STATE_DEPENDENT=4<br /><br /># check pid, run date, name of the check, output to file<br />MY_PID=$$<br />DATE=`date`<br />SCRIPT_NAME=`basename $0`<br />CHECK_RESULT=&quot;/tmp/$MY_PID.tmp&quot;<br /><br />&gt; $CHECK_RESULT<br />chown nagios.nagios $CHECK_RESULT<br /><br />#######################<br /># the actual check body<br /><br /># the following device names of tty lines are filtered: pts, pty<br />ssh -o StrictHostKeyChecking=no -o ConnectTimeout=8 \<br />    -l $SSH_USERNAME -i $SSH_PRIVATE_KEY $SSH_HOST_TO_CHECK &#039;w -h&#039; &gt; $CHECK_RESULT<br /><br /># log the ssh output<br />while read line<br />do<br /> logger -t &quot;$SCRIPT_NAME[$SSH_HOST_TO_CHECK]&quot; -p &quot;$SYSLOG_FACILITY.$SYSLOG_SEVERITY&quot; &quot;$line&quot;<br />done &lt; $CHECK_RESULT<br /><br /># result evaluation<br /># should mirror the content of /etc/securetty<br />if [ `cat $CHECK_RESULT | grep -v pts | grep -v pty | grep days | grep root | wc -l` -gt 0 ]; then<br />        echo &quot;CRITICAL: root logged on console for more than a day&quot;<br />        rm $CHECK_RESULT<br />        exit $STATE_CRITICAL<br />fi<br /><br />if [ `cat $CHECK_RESULT | grep -v pts | grep -v pty | grep days | wc -l` -gt 0 ]; then<br /> echo &quot;WARNING: user logged on console for more than a day&quot;<br /> rm $CHECK_RESULT<br /> exit $STATE_WARNING<br />fi<br />rm $CHECK_RESULT<br />echo &quot;OK: no long-term console session found&quot;<br />exit $STATE_OK</pre></code>  ]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100810-113618</guid>
			<author>Alchy</author>
			<pubDate>Tue, 10 Aug 2010 09:36:18 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100810-113618</comments>
		</item>
		<item>
			<title>Google Chrome, vypnutí překladu</title>
			<link>http://alchy.org/index.php?entry=entry100808-234222</link>
			<description><![CDATA[Google Chrome je docela dobrý prohlížeč, na obrazovce je mnohem více místa pro webové stránky a je docela rychlý. Zatím jediné, čím kvalitně nasere je neustálé nabízení překladu stránky. Kde že se to dá vypnout?<br /><br /><strong>Montážní klíč, Francouzák(vpravo nahoře)-&gt;Možnosti-&gt;Pod Pokličkou-&gt;Změnit nastavení písma a jazyka-&gt;přidat angličtina-&gt;ok</strong><br /><br />Při příchodu na anglickou stránku nabídne Chrome ZASE překlad, ale navíc vpravo v možnostech přibude: &quot;Jazyk angličtina nikdy nepřekládat&quot;. To stačí zaškrtnout a otravný dialog je pryč. Pokud by to nepomohlo, v konfiguračním dialogu &quot;Pod pokličnou&quot; je hned pod změnou nastavená proxy checkbox s textem &quot;Nabízet překlad stránek, které nejsou v jazyce, kterému rozumím&quot;.]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100808-234222</guid>
			<author>Alchy</author>
			<pubDate>Sun, 08 Aug 2010 21:42:22 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100808-234222</comments>
		</item>
		<item>
			<title>SSL certifikáty - postup generování cerifikátu (Zimbra nebo Apache)</title>
			<link>http://alchy.org/index.php?entry=entry100808-213430</link>
			<description><![CDATA[Vygenerujeme privátní klíč (server.key) zašifrovaný heslem. Heslo je možné později z klíče odstranit. Pokud heslo zůstane, pak aplikace, která chce privátní klíč v souboru server.key použít (httpd) musí soubor před použitím rozšifrovat. Proto se při použití šifrovanéhoho server.key http server ptá na heslo, což nemusí být vždy výhoda.<br /><pre># openssl genrsa -des3 -rand file1:file2 -out server.key 2048</pre><br /><br />Získání nezašifrovaného privátního klíče ze souboru server.key:<br /><pre># openssl rsa -in server.key -out server.pem</pre><br /><br />Pokračujeme vygenerováním žádosti o podpis našeho server.key (tvz. certificate signing request). Pokud je privátní klíč zašifrován, pak se před vygenerováním csr openssl zeptá na heslo:<br /><pre># openssl req -new -key server.key -out server.csr</pre><br /><br />Po vygenerování našeho požadavku (server.csr) postoupíme soubor k podpisu certifgikační autoritě. Klíč rovněž můžeme podepsat sami. V OS Windows je standardně importován root CA mnoha certifikačních autorit. Mezi ně patří od jistého updatu i <a href="https://www.startssl.com/" target="_blank" >autorita StartSSL</a>. Tato společnost podepisuje požadavky (csr) pro úroveň důvěryhodnosti 1 zdarma. Jak jsem psal výše, protože Windows mají již root certifilát této autority instalován, přistupují klienti Windows ke všem stránkám které StartSSL podepíše bez varování na neznámý certifikát - a to i přes to, že proces ověření autenticity vašeho csr je u této CA založen pouze na poslání mailu na doménu, pro kterou je certifikát určen. Pokud nebudeme podepisovat externí autoritou, pak podepíšeme csr pomocí vlastního server.key. Stejným server.key, ze kterého jsme vygenerovali csr. Tomuto procesu říká self-signing.<br /><pre>openssl x509 -req -days 360 -in server.csr -signkey server.key -out server.crt </pre><br /><br />Instalace certifikátu do Zimbry je jednoduchá, ale je nutné přesně dodržet všechny kroky, které jsou popsány v <a href="http://wiki.zimbra.com/wiki/Installing_a_StartSSL_SSL_Certificate_with_zmcertmgr" target="_blank" >dokumentaci</a>.<br /><br />V první řadě musíme mít od externí CA její root CA a případný další strom certifikátů (říká se tomu intermediate certificate), protože certifikační autorita nemusí podepsat vše přímo svým root CA, ale podepisuje většinou podřízeným certifikátem (zase pem), který si vygenerovala a podepsala sama svým vlastním root CA. Pro autoritu StartSSL potřebujete certifikáty dva, protože na cestě od jeji root CA je ještě jeden certifikát. Oba soubory, které získáte od StartSSL spojíte dohromady:<br /><br /><pre># cd /tmp/zimbra_cert<br /># cat ca.pem sub.class1.server.ca.pem &gt; ca_bundle.crt</pre><br /><br />To co online vyplivne Web StartSSL když jí předhodíte svůj csr je váš kýžený serverový certifikát, pro Zimbru se má soubor jmenovat ssl.crt. Původní privátní klíč, kterým to všechno začalo umístíte pod jménem commercial.key do /opt/zimbra/ssl/zimbra/commercial/commercial.key. Pokud je privátní klíč bez hesla, tak se jmenuje server.pem, ale stejně ho uložte pod jménem commercial.key.<br /><pre># cp /root/ssl_cert/server.key /opt/zimbra/ssl/zimbra/commercial/commercial.key</pre><br /><br />Do Zimbry pak importujte root CA klíče návazné na CA. Import snad jde i z GUI:<br /><pre>cd /opt/zimbra/bin<br /> ./zmcertmgr deploycrt comm /tmp/ssl.crt /tmp/ca_bundle.crt<br /></pre><br /><br />Pokud se vše podařilo, stačí restartovat Zimbru:<br /><pre># su zimbra<br /># zmcontrol stop<br /># zmcontrol start</pre><br /><br />Na stránce Qualis, který nedávno požral SSLlabs najdete <a href="https://www.ssllabs.com/" target="_blank" >test validity nově vytvořeného certifikátu</a> a je to zatím zadarmo, stejně jako kdysi byl zadarmo výborný DNSreport.<br /><br />Pokud je někde problém, je to většinou v tom, že chybí na cestě od root CA k vašemu certifikátu nějaký mezi/intermediate certifikát. Pro ověření, zda-li řetěz není přetržen lze zase použít jak jinak než openssl. Všimněte si že jako parametry jsou použity všechny cerifikáty na cestě k vašemu.<br /><pre># openssl verify -CAfile ca.pem -untrusted sub.class1.server.ca.pem ssl.crt</pre><br /><br />Něco více o tom je <a href="http://www.herongyang.com/crypto/openssl_verify.html" target="_blank" >zde</a>. Instalace certifikátu do Zimbry pro různé CA je popsána <a href="http://wiki.zimbra.com/wiki/5.x_Commercial_Certificates_Guide" target="_blank" >zde</a>. <br /><br />V případě vložení certifikátu do Apache je nutné v souboru /etc/httpd/conf.d/ssl.conf upravit cesty k novým souborům, nebo nahradit soubory stávající:<br /><br /><pre>#   Server Certificate:<br /># Point SSLCertificateFile at a PEM encoded certificate.  If<br /># the certificate is encrypted, then you will be prompted for a<br /># pass phrase.  Note that a kill -HUP will prompt again.  A new<br /># certificate can be generated using the genkey(1) command.<br />SSLCertificateFile /etc/pki/tls/certs/localhost.crt<br /><br />#   Server Private Key:<br />#   If the key is not combined with the certificate, use this<br />#   directive to point at the key file.  Keep in mind that if<br />#   you&#039;ve both a RSA and a DSA private key you can configure<br />#   both in parallel (to also allow the use of DSA ciphers, etc.)<br />SSLCertificateKeyFile /etc/pki/tls/private/localhost.key<br /><br />#   Server Certificate Chain:<br />#   Point SSLCertificateChainFile at a file containing the<br />#   concatenation of PEM encoded CA certificates which form the<br />#   certificate chain for the server certificate. Alternatively<br />#   the referenced file can be the same as SSLCertificateFile<br />#   when the CA certificates are directly appended to the server<br />#   certificate for convinience.<br />SSLCertificateChainFile /etc/pki/tls/certs/ca-bundle.crt</pre>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100808-213430</guid>
			<author>Alchy</author>
			<pubDate>Sun, 08 Aug 2010 19:34:30 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=08&amp;entry=entry100808-213430</comments>
		</item>
		<item>
			<title>A SparesMissing event had been detected on md device</title>
			<link>http://alchy.org/index.php?entry=entry100717-104821</link>
			<description><![CDATA[<blockquote>If theres no spares= option in mdadm.conf, then spare_disks gets set to<br />UnSet, and --monitor sends a SparesMissing event because there are less<br />than 65534 spare disks available.<br /></blockquote><br /><a href="http://marc.info/?l=linux-raid&amp;m=108834493826264&amp;w=2" target="_blank" >http://marc.info/?l=linux-raid&amp;m=10 ... 64&amp;w=2</a>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100717-104821</guid>
			<author>Alchy</author>
			<pubDate>Sat, 17 Jul 2010 08:48:21 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=07&amp;entry=entry100717-104821</comments>
		</item>
		<item>
			<title>Trigger action on file change, triggered tail</title>
			<link>http://alchy.org/index.php?entry=entry100715-140431</link>
			<description><![CDATA[If you need to wait for a change on file and trigger some script action when the change comes (it could be a log line added to the file etc), then the inotify-tools could be a good companion to accomplish the task with. The RPM package can be downloaded at: <a href="http://packages.sw.be/inotify-tools/" target="_blank" >http://packages.sw.be/inotify-tools/</a> .<br /><br /><br /> <pre>#!/bin/sh<br />LOGFILE=&quot;/var/log/remote/arpwatch/*&quot;<br />while inotifywait -e modify $LOGFILE; do<br />   if tail -n1 $LOGFILE | grep &quot;STATUS=new&quot;; then<br />      ARP=`tail -n1 $LOGFILE | cut -d&quot; &quot; -f3 | cut -d &quot;=&quot; -f2`<br />      echo &quot;A new MAC address received: &quot; $ARP<br />      if grep -i $ARP ARP_Monitor.csv; then<br />        echo &quot;The MAC address is in the scope&quot;<br />      else<br />        echo &quot;The MAC address is not in the scope&quot;<br />      fi<br />   fi<br />done</pre> ]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100715-140431</guid>
			<author>Alchy</author>
			<pubDate>Thu, 15 Jul 2010 12:04:31 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=07&amp;entry=entry100715-140431</comments>
		</item>
		<item>
			<title>Check nagios config file syntax</title>
			<link>http://alchy.org/index.php?entry=entry100714-190628</link>
			<description><![CDATA[<pre># /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</pre>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100714-190628</guid>
			<author>Alchy</author>
			<pubDate>Wed, 14 Jul 2010 17:06:28 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=07&amp;entry=entry100714-190628</comments>
		</item>
		<item>
			<title>Prevzaty clanek o SMART diagnostice disku</title>
			<link>http://alchy.org/index.php?entry=entry100711-163758</link>
			<description><![CDATA[URL: <a href="http://www.linuxzone.cz/modules/tisk_clanku-nw.phtml?ids=7&amp;idc=658" target="_blank" >http://www.linuxzone.cz/modules/tisk_cl ... mp;idc=658</a><br /><br /> 		<h2>S.M.A.R.T. - jak jsou na tom vaąe disky?</h2>
		<p class="anotace">Znáte to, přijdete k počítači, ze kterého se linou zvuky připomínající zvuk
motorové pily a přemýąlíte, kde narychlo sehnat nový disk, případně vzpomínáte, kde 
ľe jsou poslední zálohy. Naątěstí máme k dispozici software, který umoľňuje 
stav disků monitorovat - pokud jeątě nepouľíváte smartmontools, přečtěte si 
co od technologie S.M.A.R.T. a softwaru smartmontools můľete čekat.</p>
		<ul>
<li>1) Co je to S.M.A.R.T</li>
<li>2) Obsluľný software: smartsuite, smartmontools</li>
<li>3) Distribuce smartmontools</li>
<li>4) Nástroj smartctl</li>
<li>5) Démon smartd</li>
<li>6) Závěrem</li>
</ul>

<h3>1) Co je to S.M.A.R.T.</h3>

<p>
Zkratka S.M.A.R.T. značí "Self-Monitoring, Analysis and Reporting Technology 
System". Je to technologie, která je součástí moderních disků a daląích 
úloľných zařízení fungujících na rozhraní ATA i SCSI a která slouľí 
k monitorování stavu (nejen) pevných disků a provádění testů. Do určité míry je tak 
moľné odhalit vznikající problémy s předstihem a uľivatel má moľnost zavčasu 
sáhnout po výměně disku. Protoľe se dnes S.M.A.R.T pouľívá jak v IDE tak SCSI 
zařízeních, je příjemné, ľe si vystačíme s jedním obsluľným softwarem namísto 
toho, abychom pro jednotlivá zařízení pouľívali rozdílný, často proprietární 
diagnostický software.
</p>

<p>
Jak vlastně dopředu poznáme, ľe např. s pevným diskem něco není v pořádku? Disk se
obvykle nepokazí během jednoho krátkého okamľiku - lze sledovat řadu parametrů,
které by se měly za normálních okolností pohybovat v určitém předem daném rozmezí.
Pokud za provozu zařízení hodnota některého parametru překročí dané meze, lze
předpokládat, zařízení sice jeątě můľe fungovat, ale jeho ľivotnost a spolehlivost
je ohroľena. S.M.A.R.T. zařízení evidují stav řady parametrů, přípustné rozmezí 
hodnot jednotlivých parametrů stanoví výrobce podle vlastností jednotlivých modelů
zařízení a tyto jsou uloľeny ve firmware zařízení. S.M.A.R.T. nám na 100% nezaručí, 
ľe nebudeme překvapeni výpadkem disku, ale pokud budeme S.M.A.R.T. pouľívat, můľeme 
se řadě nečekaných problémů vyhnout. Kromě zařízení, která tuto technologii podporují,
potřebujeme samozřejmě software, který je bude monitorovat a vhodným adeptem jsou
právě Smartmontools.
</p>

<h3>2) Obsluľný software: smartsuite, smartmontools</h3>

<p>
Balíček <code>smartmontools</code>, který udrľuje Bruce Allen (domovskou s
tránku projektu najdete na serveru 
<a href="http://smartmontools.sourceforge.net" target="_blank">smartmontools.sourceforge.net</a>
je odvozen ze starąího projektu <code>smartsuite</code> Michael Cornwella 
(který najdete na adrese 
<a href="http://sourceforge.net/projects/smartsuite/" target="_blank">http://sourceforge.net/projects/smartsuite/</a>), 
oproti kterému obsahuje řadu uľitečných roząíření.
</p>

<h3>3) Distribuce smartsuite</h3>

<p>
Smartmontools jsou na stránkách projektu k dispozici jak formou RPM balíčků, 
tak zdrojového archívu, instalace je bez úskalí. Balíček smartmontools bsahuje 
dva nástroje:
</p>

<ul>
<li>
<code>smartctl</code> - utilita pro příkazovou řádku, lze prohlíľet stav zařízení, 
spuątět self-testy, zapínat nebo vypínat automatické testování zařízení apod.
</li>
<br>
<li>
<code>smartd</code> - démon, tedy aplikace běľící na pozadí, která v určitém 
intervalu nepřetrľitě monitoruje stav konfigurovaných zařízení a veąkeré změny 
stavu zařízení zapisuje do systémového logu.
</li>
</ul>

<h3>4) Nástroj smartctl</h3>

<p>
Pomocí volby <code>-i</code> získáme obecné informace jako je model disku, 
sériové číslo, verzí firmware a také zda zařízení S.M.A.R.T. podporuje a je zapnuto:
</p/>

<pre>
[root@azucar]# smartctl -i /dev/hda
smartctl version 5.1-9 Copyright (C) 2002-3 Bruce Allen
Home page is <a href="http://smartmontools.sourceforge.net/" target="_blank" >http://smartmontools.sourceforge.net/</a>

=== START OF INFORMATION SECTION ===
Device Model:     IBM-DJSA-210                            
Serial Number:    9ZP9Z5J6016
Firmware Version: JSFOAB8A
ATA Version is:   5
ATA Standard is:  ATA/ATAPI-5 T13 1321D revision 1
Local Time is:    Wed Apr  9 01:47:13 2003 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
</pre>

<p>
Volba <code>-s</code> parametrem "on" / "off" zapne / vypne podporu S.M.A.R.T. 
daného zařízení. Volba <code>-a</code> podrobně vypíąe veąkeré informace o stavu zařízení. Pomocí volby <code>-H</code> rychle zjistíme, zda 
je zařízení v pořádku: 

<pre>
[root@azucar]# smartctl -H /dev/hda
smartctl version 5.1-9 Copyright (C) 2002-3 Bruce Allen
Home page is <a href="http://smartmontools.sourceforge.net/" target="_blank" >http://smartmontools.sourceforge.net/</a>

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
</pre>

<p>
Pomocí <code>smartctl</code> můľeme spouątět testy zařízení, S.M.A.R.T. Zařízení 
disponují 3 typy testů:
</p> 

<ul>
<li>
jenoduchý <u>online test</u>: bez vlivu na výkon, jeho provádění se zapíná 
automaticky pomocí volby <code>-s on</code> při zapnutí podpory S.M.A.R.T.;
</li>
<li>
<u>offline test</u>, který můľe do určité míry ovlivnit výkon zařízení, pomocí volby 
<code>-t offline</code> je spustíme jednorázově, pomocí volby <code>-o</code> 
pravidelně (co 4 hodiny). Podle specifikací je tento typ testu zastaralý, nicméně 
řada dneąních zařízení jej podporuje;
</li>
<li>
<u>selftest</u>, tento test má dvě varianty - krátkou a deląí, a narozdíl od 
předchozího testu se spouątí pouze jednorázově. Volba <code>-t short</code> 
iniciuje kratąí variantu, volba <code>-t long</code> spustí deląí variantu testu.
</li>
</ul>

<p>
Vąechny tyto testy lze iniciovat i za provozu zařízení. Výsledky testů a detekované 
chyby vypíąeme spuątěním smartctl s volbou <code>-l error</code> nebo 
<code>-l selftest</code>:
</p>

<pre>
[root@azucar]# smartctl -l selftest  /dev/hda
smartctl version 5.1-9 Copyright (C) 2002-3 Bruce Allen
Home page is <a href="http://smartmontools.sourceforge.net/" target="_blank" >http://smartmontools.sourceforge.net/</a>

=== START OF READ SMART DATA SECTION ===
SMART Self-test log, version number 1
Num  Test_Description   Status    Remaining  LifeTime(hours)  LBA_first_error
# 1  Extended off-line  Completed       00%      2237         -
# 2  Short off-line     Completed       00%      2755         -
# 3  Extended off-line  Completed       00%      3154         -
# 4  Short off-line     Completed       00%      3958         -
</pre>

<p>
Jak to vypadá, kdyľ disk pomalu odchází na věčnost, ukazuje následující úryvek logu (<code>smartctl -a</code>). Vąimněme si, ľe S.M.A.R.T. status zařízení ukazuje "FAILED" a dále ve výpisu vidíme i důvod - zřejmě poąkozené médium disku, bylo realokováno přílią mnoho vadných sektorů:
</p>

<pre>
=== START OF INFORMATION SECTION ===
Device Model:     MAXTOR 4K080H4                          
Serial Number:    674119123435        
Firmware Version: A08.1500
ATA Version is:   5
ATA Standard is:  ATA/ATAPI-5 T13 1321D revision 1
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
See vendor-specific Attribute list for failed Attributes.

SMART Attributes Data Structure revision number: 11
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          VALUE WORST THRESH TYPE     WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     100   253   020    Pre-fail     -       0
  3 Spin_Up_Time            074   074   020    Pre-fail     -       3294
  4 Start_Stop_Count        100   100   008    Old_age      -       32
  5 Reallocated_Sector_Ct   001   001   020    Pre-fail FAILING_NOW 499
  7 Seek_Error_Rate         100   001   023    Pre-fail In_the_past 0
  9 Power_On_Hours          086   086   001    Old_age      -       9812
 10 Spin_Retry_Count        100   100   000    Old_age      -       0
 11 Calibration_Retry_Count 100   100   020    Pre-fail     -       0
 12 Power_Cycle_Count       100   100   008    Old_age      -       32
 13 Read_Soft_Error_Rate    100   001   023    Pre-fail In_the_past 0
194 Temperature_Centigrade  091   086   042    Old_age      -       24
195 Hardware_ECC_Recovered  006   004   000    Old_age      -       417912090
196 Reallocated_Event_Count 100   100   020    Old_age      -       0
197 Current_Pending_Sector  033   032   020    Old_age      -       338
198 Offline_Uncorrectable   100   100   000    Old_age      -       0
199 UDMA_CRC_Error_Count    200   200   000    Old_age      -       0
</pre>

<h3>5) Démon smartd</h3>

<p>
<code>Smartd</code> obvykle spouątíme prostřednictvím startovacích skriptů při 
startu systému (v distribucích Red Hat Linux pouľijeme skript 
<code>/etc/rc.d/init.d/smartd</code>). Standardně smartd kontroluje stav zařízení 
pravidelně ve 30-ti minutových intervalech, coľ samozřejmě můľeme změnit pomocí 
volby <code>-i</code> při spuątění <code>smartd</code>.
</p>

<p>
Aplikace <code>smartd</code> pouľívá konfifurační soubor 
<code>/etc/smartd.conf</code>, který po instalaci obsahuje okomentované příklady 
pouľití. V zásadě máme dvě moľnosti, jak naplnit seznam zařízení, které bude 
<code>smartd</code> monitorovat. Pokud pouľijeme direktivu <code>DEVICESCAN</code>, 
pokusí se <code>smartd</code> sám nalézt vąechna zařízení, která S.M.A.R.T. podporují.
Přitom se v systémovém logu objeví neąkodná hláąení podobná těm následujícím 
(<code>smartd</code> se snaľí otevírat zařízení, která neexistují):
<p>

<pre>
vanvancito modprobe: Can't locate module block-major-57
vanvancito smartd[2161]: Device: /dev/hdl, No such device or address,\
                         open() failed 
vanvancito smartd[2161]: Unable to register ATA device /dev/hdl \
                         at line 19 of file /etc/smartd.conf 
vanvancito smartd[2161]: Device: /dev/sda, No such device or address,\
                         open() failed 
vanvancito smartd[2161]: Unable to register SCSI device /dev/sda \
                         at line 19 of file /etc/smartd.conf 
</pre>

<p>
Druhou moľností je explicitně vypsat zařízení, která chceme monitorovat, coľ má 
výhodu v tom, ľe můľeme zadat i odliąné parametry pro jednotlivá zařízení. 
Konfigurační soubor pak můľe vypadat třeba takto:
</p>

<pre>
# moniturejeme veąkeré atributy zařízení /dev/hda,
# a v případě problémů obdrľíme mail na adresu admin@domena
/dev/hde -a -m admin@domena
# SMART status a error logy zařízení /dev/hdc
/dev/hdg -H -l error -l selftest
</pre>

<p>
Po úspěąném startu <code>smartd</code> obdrľíme v systémovém logu hláąení podobné
tomuto:
</p>

<pre>
vanvancito smartd: smartd startuje succeeded
vanvancito smartd[2328]: Device: /dev/hde, is SMART capable. \
                         Adding to "monitor" list. 
vanvancito smartd[2328]: Device: /dev/hdg, opened 
vanvancito smartd[2328]: Device: /dev/hdg, is SMART capable. \
                         Adding to "monitor" list. 
vanvancito smartd[2328]: Started monitoring 2 ATA and 0 SCSI devices 
</pre>

<p>
Pokud provedeme změny v konfiguračním souboru, musíme <code>smartd</code> restartovat 
- <code>smartd</code> nepodporuje vynucení znovunačtení konfigurace zasláním signálu. 
Pokud chceme, aby <code>smartd</code> okamľitě zkontroloval stav monitorovaných 
zařízení, zaąleme procesu <code>smartd</code> signál SIGUSR1.
</p>

<h3>6) Závěrem</h3>

<p>
Vzhledem k tomu, ľe dneąní úloľná zařízení S.M.A.R.T. obvykle podporují, představují 
nástroje z balíčku smartmontools pohodlný způsob, jak pravidelně sledovat zdraví 
hardware. Pokud jde o stabilitu, některé starąí verze S.M.A.R.T firmwaru disků IBM 
mohou působit problémy, problémy byly reportovány s pouľitím ovladače AACRAID 
u serverů DELL a za určitých okolností u ovladače IDE řadiče Promise 20265, jinak 
jsou ale smartmontools bezproblémové.
</p>

<p>
Detailní informace (zejméma stran formátu logů zařízení apod.) čtenář nalezne 
v manuálových stránkách utilit <code>smartctl</code> a <code>smartd</code>, 
řadu odkazů na dokumentaci týkající technologie S.M.A.R.T. najdete na stránce projektu 
smarmontools.
</p>				<p class="artdesc">Zdroj: Linuxzone.cz<br>
			 Autor: <a  class="artdesc" href="mailto:haring@linuxzone.cz">David Häring</a>, 09. 04. 2003, 04:00<br>
			 Sekce: <a href="http://www.linuxzone.cz/index.php?ids=7" class="artdesc">Hardware</a>, Komentářů: 247<br>
			 Průměrné hodnocení: 2,94</p> <br />]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100711-163758</guid>
			<author>Alchy</author>
			<pubDate>Sun, 11 Jul 2010 14:37:58 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=07&amp;entry=entry100711-163758</comments>
		</item>
		<item>
			<title>Postfix as secondary MX</title>
			<link>http://alchy.org/index.php?entry=entry100707-120148</link>
			<description><![CDATA[<a href="http://www.howtoforge.com/postfix_backup_mx" target="_blank" >http://www.howtoforge.com/postfix_backup_mx</a>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100707-120148</guid>
			<author>Alchy</author>
			<pubDate>Wed, 07 Jul 2010 10:01:48 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=07&amp;entry=entry100707-120148</comments>
		</item>
		<item>
			<title>Zadlužení zemí EU </title>
			<link>http://alchy.org/index.php?entry=entry100502-195454</link>
			<description><![CDATA[<img src="http://img7.ct24.cz/multimedia/images/16/1595/middle/159499.jpg" width="400" height="239" border="0" alt="" />]]></description>
			<category>Other</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100502-195454</guid>
			<author>Alchy</author>
			<pubDate>Sun, 02 May 2010 17:54:54 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=05&amp;entry=entry100502-195454</comments>
		</item>
		<item>
			<title>Find and replace with sed</title>
			<link>http://alchy.org/index.php?entry=entry100430-084247</link>
			<description><![CDATA[ <pre>sed -i &#039;s/ugly/beautiful/g&#039; /home/bruno/old-friends/sue.txt</pre> <a href="http://www.brunolinux.com/02-The_Terminal/Find_and%20Replace_with_Sed.html" target="_blank" >http://www.brunolinux.com/02-The_Termin ... h_Sed.html</a>]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100430-084247</guid>
			<author>Alchy</author>
			<pubDate>Fri, 30 Apr 2010 06:42:47 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=04&amp;entry=entry100430-084247</comments>
		</item>
		<item>
			<title>Linux: read line by line from file in a bash script </title>
			<link>http://alchy.org/index.php?entry=entry100428-112213</link>
			<description><![CDATA[ <pre>while read line<br />do <br /> echo &quot;MAC=$line&quot;<br />done &lt; mac-hex-codes.txt &gt; mac-hex-codes2.txt</pre> ]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100428-112213</guid>
			<author>Alchy</author>
			<pubDate>Wed, 28 Apr 2010 09:22:13 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=04&amp;entry=entry100428-112213</comments>
		</item>
		<item>
			<title>Linux: Red Hat Enterprise Linux 6 Beta Available </title>
			<link>http://alchy.org/index.php?entry=entry100423-074259</link>
			<description><![CDATA[Search for the torrent at <a href="http://torrent.ibiblio.org/." target="_blank" >http://torrent.ibiblio.org/.</a> ]]></description>
			<category>Computer related</category>
			<guid isPermaLink="true">http://alchy.org/index.php?entry=entry100423-074259</guid>
			<author>Alchy</author>
			<pubDate>Fri, 23 Apr 2010 05:42:59 GMT</pubDate>
			<comments>http://alchy.org/comments.php?y=10&amp;m=04&amp;entry=entry100423-074259</comments>
		</item>
	</channel>
</rss>
