This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
aix:install_upgr_rpm [2024/08/21 17:34] manu |
aix:install_upgr_rpm [2024/08/21 17:41] (current) manu |
||
---|---|---|---|
Line 96: | 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 113: | 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 151: | 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 :-: |