Cisco Headend System Release 2.7 Installation Guide

Page of 158
 
 
 
Check the .profile Exit Status 
 
4035749 Rev B 
11 
 
Check the .profile Exit Status 
In this procedure, you will check the exit status when sourcing the dncs users 
.profile settings. The exit status must be 0 (zero). If the status is not 0 upon exit, there 
is a problem in the .profile file that prevents DNCS processes from starting after the 
upgrade. 
1  As dncs user, type the following command and press Enter to source the dncs 
user .profile settings. 
. ./.profile
 
Type the following command and press Enter to verify that the exit status from 
step 1 was 0 (zero). 
echo $?
 
Result:  The system displays the exit status of the command executed in step 1. 
3  Is the exit status 0? 
 
If yes, go to the next procedure in this chapter. 
 
If no, continue with step 4. 
4  Open the dncs user .profile file in a text editor, such as vi. Review the file for 
problems. Check especially for the following condition: 
If the last statement (bottom) in the .profile is an “unset” statement, verify it 
unsets a variable that was set earlier in the .profile. If it does not, remark or 
delete this entry, and then repeat steps 1-3. 
Note:  If the solution proposed in step 4 still does not produce an exit status of 0 
in the dncs user .profile file, contact Cisco Services for assistance.