Set the output of the specified logger. Log messages are filtered by the subsystem in which they originated and the log level of the message. For example, send debug logging messages from the storage manager to a file by running the following command:

xe log-set-outputkey=sm level=debug output=<file:/tmp/sm.log>

The optional parameter key specifies the particular logging subsystem. If this parameter is not set, it will default to all logging subsystems.

The optional parameter level specifies the logging level. Valid values are:

debug

info

warning

error

Message commands

Commands for working with messages. Messages are created to notify users of significant events, and are displayed in XenCenter as system alerts.

Message parameters

Parameter Name

Description

Type

 

 

 

uuid

The unique identifier/object reference for

read only

 

the message

 

 

 

 

name

The unique name of the message

read only

 

 

 

priority

The message priority. Higher numbers

read only

 

indicate greater priority

 

 

 

 

class

The message class, for example VM.

read only

 

 

 

obj-uuid

The uuid of the affected object.

read only

 

 

 

timestamp

The time that the message was

read only

 

generated.

 

 

 

 

body

The message content.

read only

 

 

 

message-create

message-createname=<message_name> body=<message_text> [[host-uuid=<uuid_of_host>] [sr- uuid=<uuid_of_sr>] [vm-uuid=<uuid_of_vm>] [pool-uuid=<uuid_of_pool>]]

Creates a new message.

message-list

message-list

Lists all messages, or messages that match the specified standard selectable parameters.

162

Page 182
Image 182
Citrix Systems 5.6 manual Message commands, Message parameters, Message-create, Message-list