'\" t
.\"     Title: PYWBEM
.\"    Author: Bernd Zeimetz <bzed@debian.org>
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: 10/04/2014
.\"    Manual: wbemcli.py User Manual
.\"    Source: wbemcli.py
.\"  Language: English
.\"
.TH "PYWBEM" "1" "10/04/2014" "wbemcli.py" "wbemcli.py User Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
wbemcli.py \- utility to wrap up a PyWBEM session in a Python interactive console
.SH "SYNOPSIS"
.HP \w'\fBwbemcli\&.py\fR\ 'u
\fBwbemcli\&.py\fR \fB\fIHOSTNAME\fR\fR [\fB\-u\fR\fB\fI\ USERNAME\fR\fR\ \fB\-p\fR\fB\fI\ PASSWORD\fR\fR] [\fB\-n\fR\fB\fI\ NAMESPACE\fR\fR] [\fB\-\-no\-ssl\fR] [\fB\-\-port\fR\fB\fI\ PORT\fR\fR]
.SH "DESCRIPTION"
.PP
This manual page documents briefly the
\fBwbemcli\&.py\fR
command\&.
.PP
This manual page was written for the Debian distribution because the original program does not have a manual page\&.
.PP
\fBwbemcli\&.py\fR
is small utility to wrap up a PyWBEM session in a Python interactive console\&.
.PP
CIM operations can be executed by using the PyWBEM connection object called \*(Aqcli\*(Aq in the global scope\&. There are two sets of aliases available for usage in the interpreter\&. For example the following three commands are equivalent:
.sp
.if n \{\
.RS 4
.\}
.nf
>>> cli\&.EnumerateInstanceNames(\*(AqSMX_ComputerSystem\*(Aq)
>>> EnumerateInstanceNames(\*(AqSMX_ComputerSystem\*(Aq)
>>> ein(\*(AqSMX_ComputerSystem\*(Aq)
.fi
.if n \{\
.RE
.\}
.PP
Pretty\-printing of results is also available using the \*(Aqpp\*(Aq function\&. For example:
.sp
.if n \{\
.RS 4
.\}
.nf
>>> cs = ei(\*(AqSMX_ComputerSystem\*(Aq)[0]
>>> pp(cs\&.items())
[(u\*(AqRequestedState\*(Aq, 12L),
(u\*(AqDedicated\*(Aq, [1L]),
(u\*(AqStatusDescriptions\*(Aq, [u\*(AqSystem is Functional\*(Aq]),
(u\*(AqIdentifyingNumber\*(Aq, u\*(Aq6F880AA1\-F4F5\-11D5\-8C45\-C0116FBAE02A\*(Aq),
\&.\&.
.fi
.if n \{\
.RE
.\}
.SH "AUTHOR"
.PP
\fBBernd Zeimetz\fR <\&bzed@debian\&.org\&>
.RS 4
Wrote this manpage for the Debian system\&.
.RE
.SH "COPYRIGHT"
.br
Copyright \(co 2009 Bernd Zeimetz
.br
.PP
This manual page was written for the Debian system (and may be used by others)\&. The description was taken from wbemcli\&.py and is (C) Copyright 2008 Hewlett\-Packard Development Company, L\&.P\&.
.PP
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation\&.
.PP
On Debian systems, the complete text of the GNU General Public License can be found in
/usr/share/common\-licenses/LGPL\-2\&.
.sp
