This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
aix:install_upgr_rpm [2023/12/13 09:37] manu |
aix:install_upgr_rpm [2024/08/21 17:41] (current) manu |
||
|---|---|---|---|
| Line 72: | Line 72: | ||
| { | { | ||
| - | for efix in $(emgr -P | grep installp | rev | awk '{print $1}' |rev) | + | # Remove only efix that won't be present at the end |
| + | cat $localmpt/efix/install_efix.sh | grep emgr | rev | cut -d'/' -f1 | rev | cut -d'.' -f1 | sort -u > $tempfile.1 | ||
| + | emgr -P | grep installp | rev | awk '{print $1}' | rev | sort -u > $tempfile.2 | ||
| + | sdiff -w 80 $tempfile.1 $tempfile.2 | grep '>' | awk '{print $1}' > $tempfile | ||
| + | |||
| + | for efix in $(cat $tempfile) | ||
| do | do | ||
| echo "###### $efix" | echo "###### $efix" | ||
| Line 91: | Line 96: | ||
| emgr -e $localmpt/openssh_fix15/38408m9b.230811.epkg.Z | emgr -e $localmpt/openssh_fix15/38408m9b.230811.epkg.Z | ||
| + | } | ||
| + | #------------------------------------------------ | ||
| + | check_free_space () | ||
| + | { | ||
| + | echo "###### Check free space on /opt" | ||
| + | if [ $(df -mc | grep '/dev/hd10opt' | cut -d':' -f3 | sed 's/\./\ /' | awk '{print $1}') -lt "300" ] | ||
| + | then | ||
| + | echo "extending /opt" | ||
| + | chfs -a size=+300M /opt | ||
| + | else | ||
| + | echo "Filesystem /opt OK" | ||
| + | fi | ||
| } | } | ||
| + | #------------------------------------------------ | ||
| update_rpm () | update_rpm () | ||
| { | { | ||
| Line 108: | Line 126: | ||
| } | } | ||
| + | #------------------------------------------------ | ||
| + | restart_services () | ||
| + | { | ||
| + | stopsrc -s nimsh ; startsrc -s nimsh | ||
| + | stopsrc -g rsct_rm ; stopsrc -g rsct ; startsrc -g rsct ; startsrc -g rsct_rm | ||
| + | stopsrc -s xntpd ; startsrc -s xntpd | ||
| + | stopsrc -s sendmail ; startsrc -s sendmail -a "-bd -q30m"; ps -ef | grep -v grep | grep sendmail | ||
| + | } | ||
| + | |||
| + | #------------------------------------------------ | ||
| nfs_umount () | nfs_umount () | ||
| { | { | ||
| Line 146: | Line 174: | ||
| update_aix | update_aix | ||
| date '+%d-%m-%Y %H:%M' | date '+%d-%m-%Y %H:%M' | ||
| + | check_free_space | ||
| update_rpm | update_rpm | ||
| date '+%d-%m-%Y %H:%M' | date '+%d-%m-%Y %H:%M' | ||
| nfs_umount | nfs_umount | ||
| + | restart_services | ||
| date '+%d-%m-%Y %H:%M' | date '+%d-%m-%Y %H:%M' | ||
| + | |||
| oslevel -s | oslevel -s | ||
| instfix -ci | grep :-: | instfix -ci | grep :-: | ||