IMPORTANT:
PPT Components Control Script
CAUTION:
pptctl [ postgres | apache | psmon | notif_server | monitor_server| scheduler ] [ start | stop | restart | forcestop | status | verbose ] | [ version ] | [ --help ]
./pptctl start
The sample output is
displayed below:Starting Postgres Server
...Starting Apache Server
...Starting Notif Service
...Starting Monitor Server
...Starting Scheduler...Starting PSMon Service...
./pptctl version
The sample output is
displayed below:Policy Provisioning
Tool (version 14.0.93.0)
./pptctl apache forcestop
The sample output is
displayed below:This will stop all
currently running apache requests, if any.Stopping apache...Set Superuser Password Script
./set_superuser_password.sh
Please enter the password
for superuser.
password:new_password
Password for superuser
changed successfully.
CAUTION:
Database Backup and Restore Script
CAUTION:
|
Trap Name and Probable
Cause
|
Solution
|
||
|---|---|---|---|
|
starPPTDBBackupDestinationNotAccessible:
Backup directory is not accessible or PPT administrator does not
have enough permissions to access it.
|
Provide complete path
of backup directory,
|
||
|
starPPTDBBackupNotEnoughDiskSpace: The
disk on which backup is to be taken is full.
|
Ensure that enough space
is available on the disk where backup is being generated.
|
||
./backupAndRestore.sh
backup backup_dir_path.
Update Backup Interval Script
./updateBackupInterval.sh
=======================================
Please select any one
of the following
options for backup
interval
1 - hourly
2 - daily
3 - weekly
4 - monthly
=======================================
Enter your option and
press [ENTER]:3
[0]Sun, [1]Mon, [2]Tue, [3]Wed, [4]Thu, [5]Fri, [6]Sat
Enter the weekday and
press [ENTER]:1
Cron updated successfully.
Crontab contents are as follows
0,5,10,15,20,25,30,35,40,45,50,55 * * * * sh /root/users/ppt//cronjobs/sessCleanup.sh
0 0 * * 1
/root/users/ppt//scripts/backupAndRestore.sh backup /root/users/ppt/backup_dir
Database Cleanup Script
./dbcleanup.sh
--days 5
Number of days prior
to which data is to be deleted is not specified.
Using default value:
30 days.
Do you want to change
the number of days? (yes/no):yes
Number of days:5
30 records deleted
from database, which were older than 5 days.
CAUTION:
Database Vacuum Script
./vacuum.sh
Vacuuming will be done
for database.
Proceed (yes/no):yes
Password:postgres_password
Vacuum was done successfully.
CAUTION:
SNMP Target Configuration Script
./configSnmpTarget.sh
IMPORTANT:
The list of SNMP targets
configured is as follows. Maximum of 5 targets can be configured.
===================================================
IP address - Port number
- SNMP version - Community
===================================================
127.0.0.1 - 162 -
1 - public
Select option to Add/Delete
SNMP target (Add/Delete/Exit):Add
Please enter SNMP target
details
IP address:1.2.3.4
Port: 667
SNMP version (1 / 2c):2c
Community: test
SNMP target added successfully
The list of SNMP targets
configured is as follows. Maximum of 5 targets can be configured.
===================================================
IP address - Port number
- SNMP version - Community
===================================================
127.0.0.1 - 162 -
1 - public
1.2.3.4 - 667 -
2c - test
Select option to Add/Delete
SNMP target (Add/Delete/Exit): Exit
Get Support Details Script
IMPORTANT:
./getSupportDetails.pl [ --level = level_number ] [ --xmlfile = xml_filename ] [ --outputDir = outpur_dir_path ] [ --verbose ] [ --help ]
User Session Cleanup Script
./user_session_cleanup
Please enter the username for which session is to be terminated.
Username:test
User session details are as follows:==========================================================
Username | IP address | Session Expiry Time ===============================================================
test |
64.103.156.106 | 2012-03-22 06:43:34 ====================================================================
Do you wish to terminate the session? (yes/no):If you want to terminate the session, enter yes or else no.
Migrating 12.1 PPT Data to 14.x PPT Cluster
su <12.1-ppt-admin-user>
cd <12.1-install-dir>
./scripts/backupAndRestore.sh
backup <backup-directory>
PPT backup will be
created in the backup-directory. The filename will have the following format:backup_file-<PPT-version>-<YYYYMMDDHHSS>-<timezone offset
from GMT>.tar.gz
where, backup-file is
the default file name which can different if overridden during v12.1
installation.
su <14.x-ppt-admin-user>
cd <14.x-install-dir>
<ppt-install-dir>/scripts/upgrade_to_ha
-f <absolute-path-of-backup-file>
where, <absolute-path-of-backup-file> is
the absolute path of v12.1 data backup (including file name) which
was taken earlier in Step 2.