Sponsored Content
Full Discussion: AIX server patching
Operating Systems AIX AIX server patching Post 302968203 by MichaelFelt on Saturday 5th of March 2016 05:16:45 AM
Old 03-05-2016
On a system running AIX 5.3 - AIX 7.2 is probably not going to run (as AIX 7.2 requires at least POWER7 hardware)

Depending on whether the patch you install is 'regular' or (as is often the case for security vulnerabilities) and ifix - the process will be different.

For ifix read the security bulletin for instructions (e.g., for an openssl advisory see ftp://ftp.software.ibm.com/aix/efixe...advisory17.asc)

If you get 'regular' software, the update process is to get the patches into a single directory, e.g. /tmp/patches

Once all files are there - to be sure the .toc is up to date run the commands

Code:
# inutoc /tmp/patches
# smitty update_all

And point smit dialog to /tmp/patches, perhaps in preview mode (and remember to select 'Accept Licenses' to 'yes'
 

10 More Discussions You Might Find Interesting

1. AIX

gkrellmd server on AIX

I've been googling for quite some time now, and I can't seem to find any reference to a port of gkrellmd for AIX. Does anyone out there know of where I can grab a copy, if indeed one exists? (0 Replies)
Discussion started by: willwork4foo
0 Replies

2. AIX

X server on AIX 5.2

Hello, is it possible to connect to AIX with cygwin/X? I have the AIX CDE 1.0 installed but am unable to connect to the CDE from my windows machine via cygwin. I have a Red Hat server that I can connect to and get the GNOME desktop from cygwin. Is there a certain process or subsystem that needs... (2 Replies)
Discussion started by: zuessh
2 Replies

3. AIX

X Server on AIX

Hello, I am new to AIX. I am trying to upgrade one of our Oracle database and the Oracle Universal Installer requires X. All I have on my PC is Putty. Does Putty suppport X? When I log into the AIX server I set the display as follows: setenv DISPLAY 10.15.197.157:0.0 10.15.197.157 is... (4 Replies)
Discussion started by: dkranes
4 Replies

4. AIX

AIX 6.1 SMTP Server ?

Hello, Looking for Document how to install / configure SMTP Server on AIX 6.1 is it through smitty menu ? (3 Replies)
Discussion started by: filosophizer
3 Replies

5. AIX

Patching AIX - best practice? how to? anything?

Hi everyone, Can anyone explain the best practice for keeping an AIX environment up to date? I have 12 AIX LPARs and a whole slew of vulnerabilities. These vulnerabilities vary from OS issues to WebSphere/MQ issues and more. I went through all of them and created a list of APARs I need to apply... (3 Replies)
Discussion started by: need2bageek
3 Replies

6. AIX

Transferring files from one AIX server to another AIX server in binary mode

Hi, I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that? Thanks, Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies

7. AIX

AIX Server

Hello Everyone, I am looking for material or videos on how to build an AIX server from scratch i.e from starting. If anybody has it please let me know. I want to learn building aix servers. Thanks, sameer (2 Replies)
Discussion started by: sameer_224
2 Replies

8. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

9. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

10. AIX

How to ssh from an AIX OS server to a Fabric OS server without password?

Hi I'd like to ssh from an AIX OS server ( v5.3) to a Fabric OS server ( v6.1.2 ) without password. I tried using dsa or rsa keys but it didn't work, the aix server still asked for the password. Somebody help, please :(:(:( (8 Replies)
Discussion started by: bobochacha29
8 Replies
patch(1)							   User Commands							  patch(1)

NAME
patch - apply changes to files SYNOPSIS
patch [-blNR] [-c | -e | -n | -u] [-d dir] [-D define] [-i patchfile] [-o outfile] [-p num] [-r rejectfile] [file] DESCRIPTION
The patch command reads a source (patch) file containing any of the three forms of difference (diff) listings produced by the diff(1) com- mand (normal, context or in the style of ed(1)) and apply those differences to a file. By default, patch reads from the standard input. patch attempts to determine the type of the diff listing, unless overruled by a -c, -e, or -n option. If the patch file contains more than one patch, patch will attempt to apply each of them as if they came from separate patch files. (In this case the name of the patch file must be determinable for each diff listing.) OPTIONS
The following options are supported: -b Saves a copy of the original contents of each modified file, before the differences are applied, in a file of the same name with the suffix .orig appended to it. If the file already exists, it will be overwritten. If multiple patches are applied to the same file, the .orig file will be written only for the first patch. When the -o outfile option is also specified, file.orig will not be created but, if outfile already exists, outfile.orig will be created. -c Interprets the patch file as a context difference (the output of the command diff when the -c or -C options are specified). -d dir Changes the current directory to dir before processing as described in EXTENDED DESCRIPTION. -D define Marks changes with the C preprocessor construct: #ifdef define ... #endif The option-argument define will be used as the differentiating symbol. -e Interprets the patch file as an ed script, rather than a diff script. -i patchfile Reads the patch information from the file named by the path name patchfile, rather than the standard input. -l (The letter ell.) Causes any sequence of blank characters in the difference script to match any sequence of blank charac- ters in the input file. Other characters will be matched exactly. -n Interprets the script as a normal difference. -N Ignores patches where the differences have already been applied to the file; by default, already-applied patches are rejected. -o outfile Instead of modifying the files (specified by the file operand or the difference listings) directly, writes a copy of the file referenced by each patch, with the appropriate differences applied, to outfile. Multiple patches for a single file will be applied to the intermediate versions of the file created by any previous patches, and will result in multiple, con- catenated versions of the file being written to outfile. -p num For all path names in the patch file that indicate the names of files to be patched, deletes num path name components from the beginning of each path name. If the path name in the patch file is absolute, any leading slashes are considered the first component (that is, -p 1 removes the leading slashes). Specifying -p 0 causes the full path name to be used. If -p is not specified, only the basename (the final path name component) is used. -R Reverses the sense of the patch script. That is, assumes that the difference script was created from the new version to the old version. The -R option cannot be used with ed scripts. patch attempts to reverse each portion of the script before applying it. Rejected differences will be saved in swapped format. If this option is not specified, and until a portion of the patch file is successfully applied, patch attempts to apply each portion in its reversed sense as well as in its normal sense. If the attempt is successful, the user will be prompted to determine if the -R option should be set. -r rejectfile Overrides the default reject file name. In the default case, the reject file will have the same name as the output file, with the suffix .rej appended to it. See Patch Application. -u Interprets the patch file as a unified context difference, that is, the output of the command diff when the -u or -U options are specified. OPERANDS
The following operand is supported: file A path name of a file to patch. USAGE
The -R option will not work with ed scripts because there is too little information to reconstruct the reverse operation. The -p option makes it possible to customize a patch file to local user directory structures without manually editing the patch file. For example, if the file name in the patch file was /curds/whey/src/blurfl/blurfl.c: o Setting -p 0 gives the entire path name unmodified. o Setting -p 1 gives: curds/whey/src/blurfl/blurfl.c o Without the leading slash, -p 4 gives: blurfl/blurfl.c o Not specifying -p at all gives: blurfl.c When using -b in some file system implementations, the saving of a .orig file may produce unwanted results. In the case of 12-, 13-, or 14-character file names, on file systems supporting 14-character maximum file names, the .orig file will overwrite the new file. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of patch: LANG, LC_ALL, LC_CTYPE, LC_MES- SAGES, LC_TIME, and NLSPATH. OUTPUT FILES
The output of patch the save files (.orig suffixes) and the reject files (.rej suffixes) will be text files. EXTENDED DESCRIPTION
A patch file may contain patching instructions for more than one file. File names are determined as specified in Patch Determination. When the -b option is specified, for each patched file, the original will be saved in a file of the same name with the suffix .orig appended to it. For each patched file, a reject file may also be created as noted in Patch Application. In the absence of an -r option, the name of this file will be formed by appending the suffix .rej to the original file name. Patch File Format The patch file must contain zero or more lines of header information followed by one or more patches. Each patch must contain zero or more lines of file name identification in the format produced by diff -c, and one or more sets of diff output, which are customarily called hunks. patch recognizes the following expression in the header information: Index:pathname The file to be patched is named pathname. If all lines (including headers) within a patch begin with the same leading sequence of blank characters, patch will remove this sequence before proceeding. Within each patch, if the type of difference is context, patch recognizes the following expressions: *** filename timestamp The patches arose from filename. --- filename timestamp The patches should be applied to filename. Each hunk within a patch must be the diff output to change a line range within the original file. The line numbers for successive hunks within a patch must occur in ascending order. File Name Determination If no file operand is specified, patch performs the following steps to obtain a path name: 1. If the patch contains the strings *** and ---, patch strips components from the beginning of each path name (depending on the presence or value of the -p option), then tests for the existence of both files in the current directory (or directory specified with the -d option). 2. If both files exist, patch assumes that no path name can be obtained from this step. If the header information contains a line with the string Index:, patch strips components from the beginning of the path name (depending on -p), then tests for the existence of this file in the current directory (or directory specified with the -d option). 3. If an SCCS directory exists in the current directory, patch will attempt to perform a get -e SCCS/s.filename command to retrieve an editable version of the file. 4. If no path name can be obtained by applying the previous steps, or if the path names obtained do not exist, patch will write a prompt to standard output and request a file name interactively from standard input. Patch Application If the -c, -e, -n, or -u option is present, patch will interpret information within each hunk as a context difference, an ed difference, a normal difference, or a unified context difference, respectively. In the absence of any of these options, patch determines the type of dif- ference based on the format of information within the hunk. For each hunk, patch begins to search for the place to apply the patch at the line number at the beginning of the hunk, plus or minus any offset used in applying the previous hunk. If lines matching the hunk context are not found, patch scans both forwards and backwards at least 1000 bytes for a set of lines that match the hunk context. If no such place is found and it is a context difference, then another scan will take place, ignoring the first and last line of context. If that fails, the first two and last two lines of context will be ignored and another scan will be made. Implementations may search more extensively for installation locations. If no location can be found, patch will append the hunk to the reject file. The rejected hunk will be written in context-difference format regardless of the format of the patch file. If the input was a normal or ed -style difference, the reject file may contain differences with zero lines of context. The line numbers on the hunks in the reject file may be different from the line numbers in the patch file since they will reflect the approximate locations for the failed hunks in the new file rather than the old one. If the type of patch is an ed diff, the implementation may accomplish the patching by invoking the ed command. EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 One or more lines were written to a reject file. >1 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
ed(1), diff(1), attributes(5), environ(5), standards(5) SunOS 5.10 28 Sep 2001 patch(1)
All times are GMT -4. The time now is 11:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy