Filtering nonstop project explorer view content, Custom guardian deploy target, Filtering – HP Integrity NonStop H-Series User Manual
Page 116

**** Build Finished ****
The custom_deploy target above shows only a few of the many sftp commands available.
Additionally, you can issue ssh commands to execute commands on NonStop servers if sftp
does not provide all the commands you need. For custom Guardian deploy targets, sftp is
not as flexible; however, you can combine both sftp and ssh commands to get the same
custom_deploy
target behavior.
Example 14 “Custom Guardian deploy target”
shows an example of a custom_deploy
target from Guardian. To use the NSDEE_DEPLOY_DEST environment variable, you must set
the deploy destination in the Settings (Remote) page to a path in the form
/G/volume/subvolume.
Example 14 Custom Guardian deploy target
# Change "/G/volume/subvol" format required for sftp to $volume.subvolume format.
GUARDIAN_PATH = $(subst /,.,$(subst /G/,\$$,$(NSDEE_DEPLOY_DEST))).$(NSDEE_DEPLOY_FILENAME)
custom_deploy: all
echo -e "put ./Car.txe $(NSDEE_DEPLOY_DEST)/$(NSDEE_DEPLOY_FILENAME),800\n \
exit" | sftp -b - $(NSDEE_DEPLOY_USER)@$(NSDEE_DEPLOY_SYSTEM)
echo -e "fup secure $(GUARDIAN_PATH), NOGO\n \
fileinfo $(GUARDIAN_PATH)" | ssh -s [email protected] tacl
The use of GUARDIAN_PATH above converts a path such as "/G/volume/subvolum" to
"\$$volume.subvolum", a path suitable to pass to a Guardian command. (The "\$$" is a
"double-escape" sequence; "$$" escapes the dollar sign for make and "\$" escapes the dollar
sign for the shell.) Build output to the Console view from the above target will look similar to the
following:
make custom_deploy
echo -e "put ./Car.txe /G/data4/doontest/car,800\n \
exit" | sftp -b - [email protected]
sftp> put ./Car.txe /G/data4/doontest/car,800
Uploading ./Car.txe to /G/data4/doontest/car,800
sftp> exit
echo -e "fup secure \$data4.doontest.car, NOGO\n \
fileinfo \$data4.doontest.car" | ssh -s [email protected] tacl
TACL (T9205H01 - 10MAY2011), Operating System H06, Release H06.25.00
(C) Copyright 2005-2011 Hewlett Packard Development Company, L.P.
CPU 0, process has no backup
April 5, 2012 12:42:21
(Invoking $SYSTEM.SYSTEM.TACLLOCL)
(Invoking $DATA4.DOON2.TACLCSTM)
Current volume is $DATA4.DOON2
1> 2>
$DATA4.DOONTEST
CODE EOF LAST MODIFIED OWNER RWEP PExt SExt
CAR 800 3010816 05APR2012 12:42 102,31 NOGO 14 112
**** Build Finished ****
Filtering NonStop Project Explorer view content
To make project files visible:
1.
Select Filters... from the local pull-down menu for the NonStop Project Explorer view to open
the C Element Filters dialog.
116
Tasks