0
|
1 |
'\" t
|
|
2 |
.TH "wise" "1" "" "" ""
|
|
3 |
.SH NAME
|
|
4 |
wise - a command line tool for sending requests to WS-Management Web services.
|
|
5 |
.SH SYNOPSIS
|
|
6 |
.B wise
|
|
7 |
[OPTIONS]
|
|
8 |
.SH DESCRIPTION
|
|
9 |
The WisemanCmdLine command line tool provides a simple method for sending requests to WS-Management Web services for testing. Get, Put, Create, Delete, and optimized Enumeration are currently supported. The script 'wise' located at /usr/bin can be used to call the WisemanCmdLine class with the necessary classpath. The tools usage follows.
|
|
10 |
.P
|
|
11 |
.B
|
|
12 |
Usage: wise -a -d -r [ -s | -b | -x | -m | -u | -p ]
|
|
13 |
|
|
14 |
.P
|
|
15 |
.B
|
|
16 |
[OPTIONS]
|
|
17 |
-a WS-MAN action to perform (get, put, create, delete, enumeration). This argument is required.
|
|
18 |
|
|
19 |
-d URL destination for the Wiseman request. This argument is required.
|
|
20 |
|
|
21 |
-r Resource URI value of the Wiseman request. This argument is required.
|
|
22 |
|
|
23 |
-s Name and value for the item requested. The first value is the name of the "key" field, the second is the value of the "key" field.
|
|
24 |
|
|
25 |
-b File name of the XML body of the request. The file must contain valid XML. This argument is required for Create and Put requests.
|
|
26 |
|
|
27 |
-x XPATH expression to apply to result set. This argument is used for a fragment transfer request.
|
|
28 |
|
|
29 |
-m Maximum number of items to return. This argument is valid only for Enumeration requests.
|
|
30 |
|
|
31 |
-u User name to connect to the web service.
|
|
32 |
|
|
33 |
-p Password to connect to the web service.
|
|
34 |
|
|
35 |
.P
|
|
36 |
.B
|
|
37 |
Sample usage
|
|
38 |
|
|
39 |
Create
|
|
40 |
wise -a create -r "urn:resources.wiseman.dev.java.net/traffic/1/light" -d "http://localhost:8080/traffic/" -b "C:\Documents and Settings\nabee\My Documents\create.txt" -u wsman -p wsman
|
|
41 |
|
|
42 |
Get
|
|
43 |
wise -a get -d "http://localhost
|
|
44 |
:8080/traffic/" -r "urn:resources.wiseman.dev.java.net/traffic/1/light" -s name
|
|
45 |
Light1
|
|
46 |
|
|
47 |
Get (with fragment transfer)
|
|
48 |
wise -a get -r "urn:resources.wiseman.dev.java.net/traffic/1/light" -d "http://localhost:8080/traffic/" -s name Light1 -x "//*[local-name()='color']" -u wsman -p wsman
|
|
49 |
|
|
50 |
Put
|
|
51 |
wise -a put -d "http://localhost
|
|
52 |
:8080/traffic/" -r "urn:resources.wiseman.dev.java.net/traffic/1/light" -s name
|
|
53 |
Light1 -b "c:\putbody.xml"
|
|
54 |
|
|
55 |
Delete
|
|
56 |
wise -a delete -r "urn:resources.wiseman.dev.java.net/traffic/1/light" -d "http://localhost:8080/traffic/" -s name Light1 -u wsman -p wsman
|
|
57 |
|
|
58 |
Enumerate
|
|
59 |
wise -a enumerate -r "urn:resources.wiseman.dev.java.net/traffic/1/light" -d "http://localhost:8080/traffic/" -m 10 -u wsman -p wsman
|
|
60 |
|
|
61 |
.PP
|
|
62 |
For more details about Wiseman, please see
|
|
63 |
.br
|
|
64 |
.B https://wiseman.dev.java.net web page.
|
|
65 |
|
|
66 |
.SH FILES
|
|
67 |
By default, all wise tool is installed into /usr/bin directory.
|
|
68 |
|
|
69 |
.SH ENVIRONMENT
|
|
70 |
JAVA_HOME variable must point to the directory where Java is installed.
|
|
71 |
|
|
72 |
.RE
|
|
73 |
.SH ATTRIBUTES
|
|
74 |
See
|
|
75 |
.BR attributes (5)
|
|
76 |
for descriptions of the following attributes:
|
|
77 |
.sp
|
|
78 |
.TS
|
|
79 |
box;
|
|
80 |
cbp-1 | cbp-1
|
|
81 |
l | l .
|
|
82 |
ATTRIBUTE TYPE ATTRIBUTE VALUE
|
|
83 |
=
|
11
|
84 |
Availability library/java/wiseman
|
0
|
85 |
=
|
|
86 |
Interface Stability Uncommitted
|
|
87 |
.TE
|
|
88 |
.PP
|
|
89 |
.SH SEE ALSO
|
|
90 |
.LP
|
|
91 |
wiseman(3)
|
|
92 |
.SH NOTES
|
|
93 |
Source for wiseman is available on http://opensolaris.org.
|