HP (Hewlett-Packard) 544530-001 Computer Accessories User Manual


 
DISCONNECT command. To quit the interface immediately after executing a script file, include
the EXIT, QUIT, or DISCONNECT command at the end of the script file.
Example of a Script File
You can create a script file that contains SET commands that customize a session when you
launch Neoview Script:
For more information, see “Creating a Script File” (page 67).
Example of Running a Script File With -s or -script
On Windows, in the Command Prompt window, enter:
cd hpnvs-installation-directory\nvscript\bin
hpnvs.cmd -s settings.txt
Specify the full path of the script file if it is outside the directory of hpnvs.cmd.
On Linux or UNIX, in the terminal window, enter:
cd hpnvs-installation-directory/nvscript/bin
./hpnvs.sh -s settings.txt
Specify the full path of the script file if it is outside the directory of hpnvs.sh.
The Neoview Script interface launches, prompts you to log in by default (if you did not specify
-h, -u, -p, and -dsn on the command line), and runs the commands in the script file:
Host Name/IP Address: sys0101.mylab.mycorp.net:18650
User Name: dba1
Password:
DataSource Name [Admin_Load_DataSource]:
Welcome to the HP Neoview Script Interface 2.1
(c) Copyright 2006, 2007 Hewlett-Packard Development Company, LP.
Connected to DataSource: Admin_Load_DataSource
SQL>SET IDLETIMEOUT 0
SQL>SET SQLPROMPT *
*SET TIME ON
14:14:57 *SET TIMING ON
2:14:57 PM *SET SQLTERMINATOR .
2:14:57 PM *
Launching Neoview Script Without Connecting to the Database
To start a Neoview Script session without connecting to the Neoview platform, use the
-noconnect option.
Logging In to the Database Platform 49