Skip to content

Commit e1768b9

Browse files
committed
Pushing Changes for PyLXCA v.3.2.0 to upstream
1 parent 2be1cd4 commit e1768b9

24 files changed

Lines changed: 1873 additions & 2025 deletions

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include pylxca/pylxca_api/lxca_logger.conf
22
include pylxca/pylxca_cmd/lxca_filters.xml
33
include pylxca/pylxca_cmd/lxca_cmd_data.json
4-
include README.md
4+
include README
55
include LICENSE
66
include pylxca/test/pylxca_unittest

README

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,22 @@ top-of-rack switches (endpoints)
1818
* Configuring servers through the use of Configuration Patterns
1919
* Applying firmware updates to endpoints
2020

21-
Whats New in 2.6.0
21+
Whats New in 3.2.0
2222
------------------
23-
* Add metrics support for nodes
23+
* License Compliance
24+
* Manage/Unmanage Support for Edge Servers
25+
* Support for firmware update for AMD-1S
26+
* Bug Fixes and Minor improvements
27+
28+
Whats New in 2.4.0
29+
------------------
30+
* Argument Parsing library replaced from optparse to argparse.
31+
* Support for subcmd under various commands.
32+
* New commands supported under shell
33+
osimages
34+
managementserver
35+
resourcegroups
36+
* Better Error handling.
2437

2538
Installation
2639
------------
@@ -37,44 +50,49 @@ more information about Python, see the [Link]www.python.org website.
3750

3851
Complete the following steps to install the PYLXCA CLI.
3952

40-
1. Run the following command to install the module:
41-
pip install pylxca
42-
43-
2. Start a Python shell session in Command mode.
44-
$lxca_shell
45-
--------------------------------------------------
46-
Welcome to PyLXCA Shell v2.5.0
47-
Type "help" at any time for a list of commands.
48-
Type "pyshell" at any time to get interactive python shell
49-
--------------------------------------------------
50-
PyLXCA >>
53+
1. Download the toolkit by clicking Help ( )> Resources from the
54+
Lenovo XClarity Administrator title bar, and then clicking Download
55+
PYLXCA CLI from the dialog.
56+
2. Unzip the package into a local directory.
57+
3. Run the following command to install the module:
58+
easy_install unzip_directory\pylxca-1.0-py2.7.egg
59+
4. Start a Python shell session.
60+
61+
$lxca_shell
62+
--------------------------------------------------
63+
Welcome to PyLXCA Shell v1.0
64+
Type "help" at any time for a list of commands.
65+
Type "pyshell" at any time to get interactive python shell
66+
--------------------------------------------------
67+
PyLXCA >>
5168

5269
3. Start a Python LXCA Shell in Interactive mode.
5370

5471

5572
$lxca_shell --api
56-
Interactive Python Shell for Lenovo XClarity Administrator v2.5.0
73+
Interactive Python Shell for Lenovo XClarity Administrator v2.4.0
5774
Type "dir()" or "help(lxca command object)" for more information.
5875
>>>
5976

6077
4. Validate that the module was installed correctly by running the following command:
6178

62-
In Python Shell Try to import pylxca module as follows
79+
In Python Shell Try to import pylxca module as follows
6380

64-
>>> import pylxca
81+
>>> import pylxca
6582

66-
If python able to import pylxca without any error then it is installed correctly.
83+
If python able to import pylxca without any error then it is installed correctly.
6784

6885

6986
API Reference
7087
-------------
7188

7289
PyLXCA command reference is available at
73-
https://sysmgt.lenovofiles.com/help/index.jsp?topic=%2Fcom.lenovo.lxca_restapis.doc%2Fpycli_overview.html&cp=1_23_1
90+
http://ralfss30.labs.lenovo.com:8120/help/topic/com.lenovo.lxca.doc/pycli_overview.html
91+
7492
PyLXCA API Help can be seen from Interactive Python Shell as follows.
7593

7694
$lxca_shell --api
77-
Interactive Python Shell for Lenovo XClarity Administrator v2.5.0
95+
Interactive Python Shell for Lenovo XClarity Administrator v2.4.0
7896
Type "dir()" or "help(lxca command object)" for more information.
7997
>>>
8098
>>> help(connect)
@@ -83,13 +101,13 @@ Example
83101
------------
84102

85103
python lxca_shell
86-
connect -l <ipaddress> -u <user> --noverify
87-
connect -l <ipaddress> -u <user>
104+
connect -l https://10.241.106.216 -u USERID --noverify
105+
connect -l https://10.241.106.216 -u USERID
88106

89107
Example to call lxca_cmd python module from python script or Ansible module
90108

91109
import pylxca
92-
con1 = connect("<ipaddress>","<user>","<password>","True")
110+
con1 = connect("https://10.241.106.216","USERID","Passw0rd","True")
93111

94112
Several sample scripts are also available to help you to quickly begin using the PYLXCA command-line interface (CLI) to manage endpoints.
95113
The sample scripts are location in the following directory:

build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
if len(sys.argv) < 2 :
77
print ("Building Repository")
8-
ret = subprocess.call(sys.executable + " setup.py sdist bdist_egg --exclude-source-file bdist_wheel",shell = True)
8+
ret = subprocess.call(sys.executable + " setup.py sdist bdist_wheel",shell = True)
99
print ("Done ", ret)
1010
print ("Build drop location is: ", os.getcwd() + "/dist")
1111
elif sys.argv[1] == "clean":
1212
ret = subprocess.call(sys.executable + " setup.py clean --all",shell = True)
1313
print ("Done ", ret)
14-
sys.exit(ret)
14+
sys.exit(ret)

lxca_shell

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!python
21
'''
32
@since: 15 Sep 2015
43
@author: Prashant Bhosale <pbhosale@lenovo.com>, Girish Kumar <gkumar1@lenovo.com>
-45.7 KB
Binary file not shown.
-63.2 KB
Binary file not shown.
-48.2 KB
Binary file not shown.
-65.4 KB
Binary file not shown.

pyToolkit/SOURCES/opt/lenovo/lxca/resources/this-is-where-egg-located.egg

Whitespace-only changes.

0 commit comments

Comments
 (0)