Database Reference
In-Depth Information
thisFILE="EMGC_ADMINSERVER.out*"
SweepThese
thisFILE="EMGC_ADMINSERVER.log*"
SweepThese
thisFILE="EMGC_ADMINSERVER-diagnostic-*.log"
SweepThese
thisFILE="access.log*"
SweepThese
# --------------------------------------------------------------------------------------------------
EMGC_OMSn=`ls ${DOMAIN_SERVERS_DIR} | grep OMS`
thisDIR=${DOMAIN_SERVERS_DIR}/${EMGC_OMSn}/logs
thisAGE=7
thisFILE="EMGC_OMS*.out*"
SweepThese
for eachDIR in `ls -1 /oraoms/exportconfig`; do
thisDIR=/oraoms/exportconfig/${eachDIR}
thisFILE="opf_ADMIN_*.bka"
SweepThese
Done
CleanUpFiles
exit 0
Section 4: EM CLI Scripting and Interactive Scripts
Release 3 of Enterprise Manager includes both the standard command-line-only version of EM CLI as well as a
version with a robust scripting option (sometimes referred to as the advanced kit), which can be downloaded and
installed on any supported client operating system or used directly on the server. The connection method between
EM CLI and an Oracle Management Server (OMS) is the same regardless of the installation location of EM CLI.
Installation instructions for the Advanced Kit are covered in Chapter 2.
The scripting option of EM CLI refers to both scripting and interactive modes. In either of these modes EM
CLI expects the content of the scripts or the commands entered in interactive mode to be in Python syntax. To
connect from EM CLI to Enterprise Manager in interactive mode, type the command login(username='sysman',
password='foobar') . This command is a call to a Python function.
The samples in this section are the same code examples used in Chapter 6 and are all written in the Python
programming language. While the samples in the previous section used the operating system shell for all of their
scripting functionality (i.e., variables, for loops, if then else , etc.), the samples in this section will use EM CLI and
its Jython shell for everything. Because these samples don't rely on any shell scripting functionality, they can be used
on any platform supported by EM CLI.
 
Search WWH ::




Custom Search