Systems Management - Wiki

Recite - Interactive WS-Man Scripting Environment

Systems Management - Wiki

Purpose

The goal of Recite is to provide a simple and fast interface for the Dell Lifecycle Controller API. It has an interactive mode that is useful to run one off commands against a server as well as batch mode to allow automating a sequence of operations.

Getting Recite

Recite is provided as a standalone Python script. A Windows executable that bundles the required Python environment is also available.

Server:

Dell 12G servers

Dell 13G servers

Documentation

This wiki page goes over many of the features and capabilities of Recite. This information is also included in the README document shipped with Recite. An introductory presentation that describes Recite is also available.

Also check out this video to become more familiar with using Recite.

Getting Started

Following are some typical commands to get started using Recite and the LC remote API.

python recite.py IP=IP.ini Load IPs from file, one per line 10.0.0.1, user:pass@10.0.0.1 or user@10.0.0.1 10.0.0.1-10.0.0.5, user:pass@10.0.0.1-10.0.0.5, user@10.0.0.1-10.0.0.5 idrac.dell.com, user:pass@idrac.dell.com or user@idrac.dell.com # comments a line

Python API

Given Recite's limited programmatic capabilities, complex workflows that require more power are better of written in Python. Using Recite as a library is fairly simple. The code below demonstrates how to use Recite as a Python module.

import recite

# Get the current verbosity level print recite.get_verbosity()

# Set the verbosity level recite.set_verbosity(0)

# Set logfile to capture all WS-MAN data recite.set_logfile("filename.txt")