Log Commands

Commands for working with logs.

log-set-output

log-set-outputoutput=nil stderr file:<filename> syslog:<sysloglocation> [key=<key>] [level= debug info warning error]

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 generated.

read only

 

 

 

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.

136

Page 154
Image 154
Citrix Systems 6 manual Log Commands, Message Commands, Log-set-output, Message Parameters, Message-create