10-20-2008
The file starts like this
Quote:
root@ckpgpay11core> more /tmp/AIALARM_MSNLA_20080626.txt
MSNLA/UCR40_23MSC_SSNC_EC1C00 6/26/2008 10:50:03 AM
8-15475 KPGCMCS01/AZAHXX#1
DISPEVREC:Event log=String : "AIALARM";
STARTED
Event log records
==================================================================================================== ======================
M-GET CONFIRMATION (
INVOKE IDENTIFIER 102,
LINKED IDENTIFIER 1,
MANAGED OBJECT CLASS alarmRecord,
MANAGED OBJECT INSTANCE {
logId = string : "AIALARM",
logRecordId = number : 341643
},
CURRENT TIME "20080626105008",
ATTRIBUTE LIST {
objectClass alarmRecord,
nameBinding logRecord-log,
managedObjectClass sypObjMAL,
managedObjectInstance { sypAlarmObjectId = "MAL" },
eventType communicationsAlarm,
eventTime "20080608013830",
logRecordId number : 341643,
loggingTime "20080608013832",
packages {
notificationIdentifierPackage,
GAAGDA1C.additionalInformationPackage, eventTimePackage
},
probableCause SAXBAA0C.lossOfSignal,
perceivedSeverity major,
notificationIdentifier 20195,
additionalInformation {
Im using solaris 9
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello folks
I have a text file abcd.txt and has a line starting with number '8'.
I have a string in this line starting at position 'a' to position 'b'
also this string is a number and have to be reduced by 1. there is also a problem that it has to be padded with zeros to make the string... (2 Replies)
Discussion started by: sandyg
2 Replies
2. Emergency UNIX and Linux Support
Hi All,
I have a requirement as below
I need find for a string in a log file and once i found that string i need to send a mail.Thsi can be done thru grep and mailx cmnd.
Here once i found the string i need to send last 50 lines(up) from where string found.
Actually they require to find... (9 Replies)
Discussion started by: pssandeep
9 Replies
3. Shell Programming and Scripting
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
Discussion started by: sukrish
8 Replies
4. Shell Programming and Scripting
I am trying to search a file for a value: "Top 30 reject reasons" and want the next 30 lines after that and output in a text file.
If I knew the line number, I can use a combination of head and tail commands to get my results, but this doesn't seem to work when I don't have a line number.
I... (2 Replies)
Discussion started by: oriqin
2 Replies
5. Shell Programming and Scripting
Hi,
I am trying to locate the occurences of certain pattern like 'Possible network disconnect' in a text file. I can get the actual lines matching the pttern using:
grep -w 'Possible network disconnect' file_name.
But I am more interested in getting the timing of these events which are... (7 Replies)
Discussion started by: sagarparadkar
7 Replies
6. Shell Programming and Scripting
finding a string with another string is found
EX:
abs c/-
i want to find /-, then copy abs. i know it's easy use awk, but my problem is the substr syntax.
substr($2,2,2) will give me /-
but the conflict is /- is not always the second characted of the second string. (11 Replies)
Discussion started by: engr.jay
11 Replies
7. Shell Programming and Scripting
Hello all,
I need to print all the lines before a specific string and print a custom message 2 lines after that.
So far I have managed to print everything up the string, inclusively, but I can't figure out how to print the 2 lines after that and the custom message.
My code thus far is:... (4 Replies)
Discussion started by: SEinT
4 Replies
8. Shell Programming and Scripting
Hello,
I have a file, which looks like:
I want to print the row containg "PRO" in second column after comparing and finding the minimum value of fifth column present in all "PRO". and likewise for every other string present in second column.
I am using :
filename=list... (2 Replies)
Discussion started by: CAch
2 Replies
9. Shell Programming and Scripting
Can someone tell me how I can do this?
e.g:
a=$(echo -e wert trewt ertert ertert ertert erttert
erterte
rterter
tertertert
ert)
How do i replace the STRING with $a?
I try this:
sed -i 's/STRING/'"$a"'/g' filename.ext
but this don' t work (2 Replies)
Discussion started by: jforce
2 Replies
10. UNIX for Dummies Questions & Answers
So the tag for this forum says all newbies welcome...
All I want to do is go through my file and find lines which contain a given string of characters then replace these with a blank line. I really tried to find a simple command to do this but failed.
Here's what I did come up with though:
... (2 Replies)
Discussion started by: Golpette
2 Replies
LEARN ABOUT SUSE
asn1_expand_any_defined_by
asn1_expand_any_defined_by(3) libtasn1 asn1_expand_any_defined_by(3)
NAME
asn1_expand_any_defined_by - Expand "ANY DEFINED BY" fields in structure.
SYNOPSIS
#include <libtasn1.h>
asn1_retCode asn1_expand_any_defined_by(ASN1_TYPE definitions, ASN1_TYPE * element);
ARGUMENTS
ASN1_TYPE definitions
ASN1 definitions
ASN1_TYPE * element
pointer to an ASN1 structure
DESCRIPTION
Expands every "ANY DEFINED BY" element of a structure created from a DER decoding process (asn1_der_decoding function). The element ANY
must be defined by an OBJECT IDENTIFIER. The type used to expand the element ANY is the first one following the definition of the actual
value of the OBJECT IDENTIFIER.
RETURNS
ASN1_SUCCESS
Substitution OK.
ASN1_ERROR_TYPE_ANY
Some "ANY DEFINED BY" element couldn't be expanded due to a problem in OBJECT_ID -> TYPE association.
other errors: Result of der decoding process.
COPYRIGHT
Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc..
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for libtasn1 is maintained as a Texinfo manual. If the info and libtasn1 programs are properly installed at your
site, the command
info libtasn1
should give you access to the complete manual.
libtasn1 2.2 asn1_expand_any_defined_by(3)