Return to section contents
       

 

Write Action Modules

This reference describes Write Action composite modules in the UNIX/Linux Authoring Library example Management Pack.

UNIX/Linux Shell Command Write Action

ID

Unix.Authoring.ShellCommand.WriteAction

Description

A write action module type that runs a shell command through a WS-Management invocation.

Input

System.BaseData

Output

System.PropertyBagData

Configuration

Parameter

Type

Description

TargetSystem

String

The target system for the monitor.  Typically: $Target/#HostReferences#/Property[Type="#Unix Library Alias#!Microsoft.Unix.Computer"]/NetworkName$

ShellCommand

String

The “shell command” to execute on the remote host.  See the Appendix section for discussion of quotes and special characters.

Timeout

Integer

Timeout (in seconds). If the command runs for longer than the timeout, its process is stopped without waiting for completion.

UserName

String

The Run As reference providing the UserName of the user that will run the command/script.  $RunAs[Name="#MP Alias#!#Profile Name"]/UserName$

Password

String

The Run As reference providing the Password of the user that will run the command/script.  $RunAs[Name="#MP Alias#!#Profile Name"]/Password$

 

UNIX/Linux Shell Script Write Action

ID

Unix.Authoring.ShellScript.WriteAction

Description

A write action module type that runs a shell script through a WS-Management invocation. The shell script is transferred to the UNIX/Linux host for each invocation

Input

System.BaseData

Output

Microsoft.SystemCenter.WSManagement.WSManData

Configuration

Parameter

Type

Description

TargetSystem

String

The target system for the monitor.  Typically: $Target/#HostReferences#/Property[Type="#Unix Library Alias#!Microsoft.Unix.Computer"]/NetworkName$

ShellScript

String

The contents of the shell script to execute on the remote host.

ScriptArguments

String

Command line arguments to be passed to the script.

Timeout

Integer

Timeout (in seconds). If the script runs for longer than the timeout, its process is stopped without waiting for completion.

UserName

String

The Run As reference providing the UserName of the user that will run the command/script.  $RunAs[Name="#MP Alias#!#Profile Name"]/UserName$

Password

String

The Run As reference providing the Password of the user that will run the command/script.  $RunAs[Name="#MP Alias#!#Profile Name"]/Password$