mmsclient - send script commands to Media Management server
/usr/bin/mmsclient [-f filename] [-A application-name] [-c clientname] [-i instancename] [-n network_config_file] [-P password] [-p portnumber] [-s hostname:port] [-t tag]
/usr/bin/mmsclient -h
The mmsclient command creates a session with a Media Management (MM) server, enabling you to send Media Management Protocol (MMP) commands to the server and receive responses from that server. When used with the -f option (see below), mmsclient runs a script file that performs MMP operations. See mmsclient_script(4) for a description of the script file.
The MMP and the commands in the script file are based, in part, on IEEE 1244, the Media Management System (MMS) standards.
To run mmsclient, you must become superuser, or assume the Primary Administrator role.
The following options are supported:
-A application-name
-c client-name
-f filename
-h
-i instance-name
-n network_config_file
-P password-file
-p portnumber
-s hostname[:port]
-t tag
Example 1 Example of a Network Configuration File
The following example configuration file, net_cfg.xml, specifies the conditions under which the MMP commands are performed:
<!-- Client Configuration --> <mms_cfg> <!-- Network Configuration --> <mms_network_cfg host = "localhost" port = "7151" name = "MMS" instance = "admin" language = "MMP" version = "1.0" password = "summer05" <!-- mm_password = "MMS Media Manager" --> ssl_enabled = "false" ssl_cert_file = "/var/mms/ssl/pub/mms.pem" ssl_pass_file = "/var/mms/ssl/pub/mms_pass" <!-- ssl_crl_file = "/var/mms/ssl/pub/mms_crl.pem" --> /> </mms_cfg>
Example 2 Running a Script with Default Connections
The following command runs a script named test_beginend with the default connections:
# mmsclient -f test_beginend
Example 3 Specifying a Client by Host Name and Port Number
The following command runs a script named test_beginend that connects to an MMS server on a host named x4200 and port number 1492 as the HSM admin:
# mmsclient -f test_beginend -A HSM -i admin -t HSM_test_session \ -s x4200:1492
Example 4 Using a Network Configuration File and Specifying an Interactive Session
The following command connects to the MMS server defined in the net_cfg.xml file and runs an interactive session:
# mmsclient -n net_cfg.xml
0
!=0
See attributes(5) for descriptions of the following attributes:
|
mmsadm(1M), mmsexplorer(1M), mmsinit(1M), mmsclient_script(4), attributes(5)
IEEE 1244, IEEE Storage Systems Standards, a set of MMS standards
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |