Cisco DNCS System Release 2.7 3.7 4.2 安装指南
Verify the crontab Entries
OL-31613-01
65
3 Type the following command and press Enter. The system changes the value
stored in the CED.in file.
echo <new # of days> > /dvs/dncs/bin/CED.in
Example: To set the value to our recommended default value of 90 days, type the
following command and press Enter.
following command and press Enter.
echo 90 > /dvs/dncs/bin/CED.in
4 Type
exit
and press Enter to log out the root user.
Adding Custom crontab Entries
Examine old crontab entries for each user on the DBDS system (dncs, root, informix).
Then consult with the system operator to determine whether any of these old entries
should be retained. If necessary, add the required crontab entries to the current
crontab file.
1 If you do not already have two root remote terminal windows available, open
Then consult with the system operator to determine whether any of these old entries
should be retained. If necessary, add the required crontab entries to the current
crontab file.
1 If you do not already have two root remote terminal windows available, open
another remote terminal window on the EC and change to root user by typing
sux - root
and pressing Enter (enter root password when prompted).
Note: You should now have three remote terminal windows open on the EC.
Two of them are for the root user and one is for the dncs user.
Two of them are for the root user and one is for the dncs user.
2 Follow these instructions in one of the root remote terminal windows:
Note: This remote terminal window will contain the pre-upgrade crontab entries
for each user.
a Type the following command and press Enter:
for each user.
a Type the following command and press Enter:
cd /dvs/admin/sysinfo/crontabs
b Type the following command and press Enter:
less root
Result: The system displays the contents of the pre-upgrade root crontab file.
3 In the second root remote terminal window, type the following command and
press Enter. The system displays the contents of the current root crontab file.
crontab -l root
4 Compare the pre-upgrade and post-upgrade crontab entries. If the pre-upgrade
crontab file contains site-specific, unique entries, consult with the system
operator regarding whether those entries are still needed.
operator regarding whether those entries are still needed.
5 Are there unique crontab entries that need to be retained?
If yes, follow these instructions:
a Type the following command and press Enter. The system copies the root
a Type the following command and press Enter. The system copies the root
crontab file to /tmp/root.cron.
crontab -l > /tmp/root.cron
b Type the following command and press Enter:
vi /tmp/root.cron
c Add any unique entries to the /tmp/root.cron file and save the file.