1. | cd to $SYBASE/COCKPIT-4/plugins and look for a directory with the same name as your server instance. If this folder doesn’t exist, copy the directory ./COCKPIT-4/templates/com.sybase.ase to ./plugins as the servername (e.g. cp $SYBASE/COCKPIT-4/templates/com.sybase.ase $SYBASE/COCKPIT-4/plugins/<servername>) |
2. | cd to new instance directory ($SYBASE/COCKPIT-4/plugins/<SERVERNAME> |
3. | Verify the contents of the agent-plugin.xml file. If any values are incorrect, modify the contents to match your installation similar to the below (values are for the demo config). Note that the passwords are encrypted – if you suspect they may be wrong, it is simpler to simply re-encrypt. |
<?xml version="1.0" encoding="ISO-8859-1"?>
<agent-plugin id="com.sybase.ase" version="16.0.0" name="ASE Agent Plugin" class="com.sybase.ua.plugins.ase.ASEAgentPlugin" provider-name="SAP AG or an SAP affiliate company" register-on-startup="true" mbean-type="Model MBean" mbean-descriptor="mbean-descriptor.xml" instance="1">
<dependencies />
<properties>
<set-property property="ase.heartbeat.timer" value="10" />
<set-property property="ase.heartbeat.update.time" value="2015-09-10 19:19:42 +0000" /> <set-property property="ase.home" value="/opt/sybase/ase16sp02/ASE-16_0" />
<set-property property="ase.interfaces.pathspec" value="/opt/sybase/ase16sp02/interfaces" />
<set-property property="ase.maintain.connection" value="true" />
<set-property property="ase.password" value="1-AAAAEgQQsGypPQocKwIzlBSJkHKyOu+99y1ev49M+5K7AnPz2CgqBfuo32kkddSYEIqKE8K0a3UDWZHfvULzwYvKMh7kjA==" />
<set-property property="ase.port" value="30000" />
<set-property property="ase.server.log" value="/opt/sybase/ase16sp02/ASE-16_0/install/HADR_1.log" />
<set-property property="ase.server.name" value="HADR_1" />
<set-property property="ase.start.command" value="/opt/sybase/ase16sp02/ASE-16_0/install/RUN_HADR_1" />
<set-property property="ase.user" value="sa" />
<set-property property="com.sybase.home" value="/opt/sybase/ase16sp02" />
4. If you need to reset the password,
a. | cd $SYBASE/COCKPIT-4/bin | |
b. | execute ./passencrypt | |
c. | when prompted, enter ASE ‘sa’ password (e.g. ‘password’) | |
d. copy/paste the password into the above |