HP Systems Insight Manager 5.3 Command Line Interface reference guide

-h
Display the hostname of the server on which the database is installed.
-p
Display the TCP/IP port used to connect to the database on the database server.
-d
Display the name of the database/instance used by HP SIM.
-u
Display the username used by HP SIM to log in to the database.
-t
Display the database type, for example, SQLServer, PostgreSQL, or Oracle.
-r
Display the path to the PostgreSQL program directory (HP-UX only).
-b
Display the path to the PostgreSQL program directory (HP-UX only).
Return values
MeaningValue
Successful completion.0
An error occurred during operation.>0
Examples
Example 1
Enter mxgetdbinfo to display the hostname, port number, database name, username, and database type.
The output might look like:
host=127.0.0.1
port=1433
dbname=Insight_v1_0
user=sa
dbtype=SQLServer
Example 2
Enter mxgetdbinfo -d to display the database name. The output might look like: Insight_v1_0.
mxgethostname
Prints the name of the local host in HP SIM.
Synopsis
mxgethostname
mxgethostname [-k]
mxgethostname [-i]
mxgethostname [-n hostname ]
Description
mxgethostname displays the resolved name of the local host in HP SIM.
Example 1 37