Sponsored Content
Operating Systems AIX Change Log Repair Action without using diag? Post 302453000 by shockneck on Monday 13th of September 2010 06:54:57 PM
Old 09-13-2010
Quote:
Originally Posted by aixlover
[...]I want to change Log Repair Action remotely, or in a script. In these cases, the dial menu can not be used.[...]
Hm, in the first sentence you ask for a solution. In the second sentence you tell us how it cannot be done. Well, how did you know? Smilie Hint: when posting a question it might be better to stick to the plain symptoms.

You can use diag together with Expect. Expect automates interacting with applications. It is available from the IBM Linux Toolbox as an RPM. Install the package, run autoexpect, use diag, end diag, exit, then have a look at the script.exp output. Sort the wheat from the chaff and you should end up with a nice script. Later when you are used to Expect you might directly write Expect scripts just as any other shell script.
Expect Homepage
 

8 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Sun Hardware Diag Tools

Problem: Several possible cooked Sun U10's. Need: Sun Hardware Diag Tools. I want to pound on these boxes and see whats what. I am wondering where I could find some Diag tools that will help me diag problems. Freeware is preferred. (The magic budget of $0) (7 Replies)
Discussion started by: edkung
7 Replies

2. HP-UX

user diag ??

if user diag is removed with a -r will it delete usr/mds ? and if so will this prevent a system from booting? Any info would be greatly appreciated!! Thanks Brian (1 Reply)
Discussion started by: breigner
1 Replies

3. AIX

Error Message during Diag

I received an error during a reboot, I ran the in shell Diag's and got this message. service Request Number(s)/Probable Cause or Cause(s): 21F00002: Refer to the Error Code to FRU Index in the system service guide. 100% P2-Z1-A4.0 The problem is... (1 Reply)
Discussion started by: marvin51796
1 Replies

4. AIX

diag report

Hello Everybody, we have a System Model: IBM,7017-S7A running AIX 4.3 Processor Type: PowerPC_RS64-II Number Of Processors: 4 I found while running "diag" the following errors. The Service Request Number(s)/Probable Cause(s) (causes are listed in descending order of... (3 Replies)
Discussion started by: karthikosu
3 Replies

5. AIX

How to determine if there is a Power Problem using DIAG command?

Hi guys can someone show me on how to use DIAG command in determining if there is really a power problem aside from errpt report? (2 Replies)
Discussion started by: sky_lark02
2 Replies

6. Shell Programming and Scripting

awk, sed or similar log repair help

I have a log file that for some reason, once or two time a month, line foods are missing. This log is generated from vmstat everyminute. I dont know why sometimes it does this. Each line in the log should have 18 columns separated by one or more spaces. Good Log: (not actual log) 1 1... (8 Replies)
Discussion started by: Ikon
8 Replies

7. Shell Programming and Scripting

How to perform action on newest line in log using tail?

I don't quite know what I'm doing, so this simple script is proving a challenge. Here is some pseudo code that doesn't work yet: if tail -1 "WORKING.txt" >/dev/null | egrep "^NMBR=*" > /dev/null then curl -k 'http://www.myserver.com/log.cgi?input=$?' echo "hi there" fi Purpose:... (3 Replies)
Discussion started by: dihewidd
3 Replies

8. UNIX for Dummies Questions & Answers

How to repair DNS

I am using Mac OS X and my server keeps crashing every several hours or so. I have checked the log file at /var/log/system.log and the entries closest to the crash read Mar 15 22:27:23 server servermgrd: servermgr_dns: no name available via DNS for 192.168.84.21 Mar 15 22:27:23 server... (4 Replies)
Discussion started by: timgolding
4 Replies
SVK::Log::ChangedPath(3)				User Contributed Perl Documentation				  SVK::Log::ChangedPath(3)

NAME
SVK::Log::ChangedPath - changes made to a path during in a revision SYNOPSIS
print "Path of change : ", $changed_path->path(), " "; print "Action : ", $changed_path->action(), " "; print "Property action: ", $changed_path->property_action(), " "; ... DESCRIPTION
An object of this class represents a path which was modified in a particular revision. It provides methods to determine how the path was modified. This class is intended for indirect use by log filters. Log filters may want to report about the paths that were modified during a particular revision, but they shouldn't have to know the details of how SVK determines those changes. Encapsulating that knowledge in this class allows log filters to focus on formatting, displaying and analyzing the logs. METHODS
new $root, $path_name, $path_entry SVK::Log::ChangedPath objects are usually created from SVK::Log::ChangedPaths and it's probably meaningless to construct them anywhere else. Nevertheless, here's a brief description. $root should be the return value from "SVK::Path->root()" $path_name is the key in the hash returned by "$root->paths_changed()" $path_entry is the corresponding value from that hash. action Returns a single character indicating the way in which the content of the path was changed. This letter is the same as the first column in the path line that you see when you do "svk log --verbose" copied_from If the path was copied from somewhere else in this revision, "copied_from()" returns the revision and path from which this path was copied. The values are returned as a list with items in that order. Namely, if ( $changed_path->is_copy() ) { my ($rev, $path) = $changed_path->copied_from(); print "Copied from $path in revision $rev "; } is_copy Returns true if the path was copied from somewhere else in this revision, otherwise, returns false. path Returns the full depot path for this changed path. property_action Returns a single character indicating the way in which the properties of the path were changed. This letter is the same as the second column in the path line that you see when you do "svk log --verbose" DIAGNOSTICS
None CONFIGURATION AND ENVIRONMENT
SVK::Log::ChangedPath requires no configuration files or environment variables. DEPENDENCIES
o SVK::Command::Log INCOMPATIBILITIES
None known. BUGS AND LIMITATIONS
None known. perl v5.10.0 2008-08-04 SVK::Log::ChangedPath(3)
All times are GMT -4. The time now is 02:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy