To run a client example program, type the command:
java program_name
Most of the example programs take required arguments that have default values. For example, the CreateNameSpace example program takes five arguments:
Host name
Parent namespace
Child namespace
User name
Password
Use the following syntax to specify default values for command line arguments.
Argument |
Default Value |
Syntax |
---|---|---|
Host name |
local host |
. |
Parent namespace |
/root/cimv2 |
" " |
Child namespace |
Null |
" " |
User name |
GUEST |
" " |
Password |
GUEST |
" " |
The following example runs the CreateNameSpace example, which connects to the default root\cimv2 namespace on the local host as user admin with password secret.
java CreateNameSpace . "" admin secret