Redwood Documentation

Product Documentation

 

›UNIX Agents

RunMyJobsPlatform Agents

External Platforms

  • Connecting Redwood Server to External Platforms

Credentials

  • Storing Credentials
  • Credential Protocols

Platform Process Servers

  • On-site Platform Process Servers
  • Cloud Platform Agents
  • Using the Wizard to Create Process Servers
  • Configuring Platform Agents
  • Spool Host Agents
  • The Environment of Platform Agent OS Processes
  • Processing Platform Processes
  • Process Server Services
  • Configuring Agentless Process Servers
  • Automatically Updating Platform Agents
  • Enabling TLS
  • Creating Monitoring Checks
  • Configuring Load Balancing on Platform Agents
  • Platform Agent Registry Entries
  • Monitoring Servers with Platform Process Servers

UNIX Agents

  • UNIX Process Servers
  • UNIX Process Server Configuration Data
  • File Events on UNIX
  • Creating UNIX Process Servers (Advanced)
  • Choosing a User Switching Security Mode
  • Controlling Unix Platform Agents
  • Uninstalling Redwood Server Platform Agents from UNIX

Windows Agents

  • Creating a Microsoft Windows Process Server
  • File Events on Microsoft Windows Process Servers
  • Configuration of a Microsoft Windows Process Server
  • Managed Services
  • Configuring Platform Agents on Microsoft Windows
  • Automating Windows tasks that require a desktop window
  • Uninstalling Redwood Server from Microsoft Windows

Agent Definition Types

  • Using the BASH Definition Type
  • Using the KSH Definition Type
  • Using the CSH Definition Type
  • Using the Perl Definition Type
  • Using the Python Definition Type
  • Using the PowerShell Definition Type
  • Using the Visual Basic Script Definition Type
  • Using the CMD Definition Type
  • Using the R Process Definition Type
  • Using the DCL Definition Type
  • Using Platform Definition Types
  • Using the OS Native Definition Type
  • Microsoft Windows Definition Types
  • Using the SQLPLUS Definition Type
  • Using the FTP Definition Type
  • Using the Groovy Definition Type

Command Line Tools

  • Command Line System Tools
  • jtool
  • jcat
  • jdescription
  • jevent
  • jecho
  • jftp
  • JFTP Return Codes
  • jgetcredential
  • jgetfile
  • jgetpar
  • jjoin
  • jlink
  • jlog
  • jmail
  • jmessage
  • jmonitor
  • jputfile
  • jregister
  • jrfc
  • jscp
  • jtool screenshot
  • jscript
  • jsecret
  • jsleep
  • jsplit
  • api-tool.jar

OpenVMS Process Servers

  • Creating HP OpenVMS Process Servers
  • Installing the Platform Agent on HP OpenVMS
  • Configuring HP OpenVMS Process Servers
  • File Events on HP OpenVMS
  • HP OpenVMS Definition Types

AS/400 Connector

  • IBM AS/400 Connector Architecture
  • Setting up the IBM AS/400 Connector
  • Creating an IBM AS/400 Process Server
  • Files on AS/400 Raise Events
  • Using the AS/400 Definition Type
  • Redwood Server OS Support
  • IBM z/OS Definition Types
  • Using the JCL_FTP Definition Type
  • IBM z/OS System Tools

Reference

  • Balancing the Load
  • Credential Protocols
← Controlling Unix Platform AgentsCreating a Microsoft Windows Process Server →

Uninstalling Redwood Server Platform Agents from UNIX

The basic steps that need to be completed to remove Redwood Server from UNIX are the following:

  • Removal of the daemon(s)
  • Removal of security settings
  • Removal of the program directory
  • Removal of output files

Remove the Daemon

SysVinit

The installer will create a startup script named scheduler in the ${InstallDir}/etc folder and a symlink to it from your system rc folder, for example /etc/init.d, when you chose to start the platform agent automatically at system startup. To uninstall, simply remove the startup script and any symbolic links to it in the run-level folders.

Systemd

The installer will create systemd services, a wrapper service and services for each instance.

SMF

On Solaris, the installer will create a SMF service for your platform agents.

Remove Security Settings

When you choose the sudo security option, the installer will detect if your system has a /etc/sudoers.d directory, in which case it creates a redwood-platform-agent.conf in the directory with the sudo configuration, otherwise, it appends the sudo configuration to your /etc/sudoers file.

Procedure

Remove all Daemons

Depending on your UNIX system, you will either be using SysVinit, systemd, or Solaris SMF.

SysVinit

  1. In your startup script directory, perform the following command to find files linking to scheduler:
    ls -lR | grep redwood
  2. Remove all links listed as well as the scheduler script.

Systemd

  1. For each instance you wish to remove, in /etc/systemd/system/scheduler.service.wants/, identify the service name scheduler@<service_name>.service, and perform the following:
    systemctl stop scheduler@<service_name>
  2. Once all that need to be removed have been stopped, you disable the corresponding scheduler@<service_name> services:
    systemctl disable scheduler@<service_name>, this will remove the /etc/systemd/system/scheduler.service.wants/scheduler@<service_name>.service file.
  3. Reload systemd and reset failed services:
    systemctl daemon-reload
    systemctl reset-failed
  4. If you have removed all instances and wish to remove the scheduler service, perform the following:
    systemctl disable scheduler
  5. If you disabled the scheduler service, reload systemd and reset failed services:
    systemctl daemon-reload
    systemctl reset-failed

Solaris SMF

  1. First check for any dependencies:
    svcs -D application/redwood/scheduler
  2. If none are found, disable the service:
    svcadm disable application/redwood/scheduler
  3. To remove the service for a platform agent instance(s):
    1. Perform the following command to delete the SMF service for instance default:
      svccfg delete svc:/application/redwood/scheduler:default
    2. Perform the following command to delete the SMF service for all platform agent instances:
      svccfg delete svc:/application/redwood/scheduler
  4. If you deleted all instances for the service, remove the corresponding SMF XML file:
    rm /lib/svc/manifest/application/redwood/scheduler.xml

Remove sudo Settings

If you used sudo for user-switching, you delete the sudo settings. This is not needed if you used setuid for user switching or did not use the feature.

  1. If a /etc/sudoers.d directory exists, all you need to do is delete the /etc/sudoers.d/redwood-platform-agent.conf file.
  2. If you only have a /etc/sudoers file, use visudo to remove the lines listed below from /etc/sudoers.
# Redwood sudoers configuration
# The list of hosts on which these rules apply
Host_Alias RW_JOB_HOST = ALL
# The list of other users that Redwood can run commands as
Runas_Alias RW_JOB_RUNAS = ALL, !root, mail, bin
Runas_Alias RW_CHOWN_RUNAS = root
# The list of commands that Redwood platform agent can run
Cmnd_Alias RW_JOB_PROCESSOR = <installdir>/<instance>/*/bin/job-processor
Cmnd_Alias RW_CHOWN = /bin/chown -R -h * <installdir>/<instance>/var*
# User Host runAs Tags Command
<user name> RW_JOB_HOST = (RW_JOB_RUNAS) NOPASSWD: EXEC: RW_JOB_PROCESSOR
<user name> RW_JOB_HOST = (RW_CHOWN_RUNAS) NOPASSWD: RW_CHOWN

Remove Agent Binaries

Remove the program and data directories as required, you have to be root to successfully remove all files.

The default installation path for agents is /opt/redwood/agent, if you are removing all instances of platform agents, you can safely delete the <version>, etc, and latest directories, var might contain process output data, so ensure you have backed up what you need before deleting it.

← Controlling Unix Platform AgentsCreating a Microsoft Windows Process Server →
  • Remove the Daemon
    • SysVinit
    • Systemd
    • SMF
  • Remove Security Settings
  • Procedure
    • Remove all Daemons
    • SysVinit
    • Systemd
    • Solaris SMF
    • Remove sudo Settings
    • Remove Agent Binaries
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |