Dear All,
I have a question on what is the best way to control and list out multiple selective keywords to print out the report
Below is the Sample output of the listing
Expected Output 1
Expected Output
Thanks for all your time scratching your head to think of the solution.
Dear All,
I have a file containing info like
TID:0903 asdfasldjflsdjf
TID:0945 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
TID:1945 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
I need to show only lines containing
TID:0903 asdfasldjflsdjf
TID:0945 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
... (11 Replies)
0,0 4,5 11 11 * /pkgs/roots/scripts/job_monitor.ksh
i have the requirement like,
for the first time(4) the script should have the input parameter as "Value1"
but the second time(5) it should have the input parameter as "Value2"
Can we achieve this using any cron options ? If yes, How..??... (2 Replies)
Hi Friends
I have the following input data in 2 columns.
SNo 1
I1 Value
I2 Value
I3 Value
SNo 2
I4 Value
I5 Value
I6 Value
I7 Value
SNo 3
I8 Value
I9 Value
...............
................
SNo N (1 Reply)
I have 9,000 + html files.
I am using the following to remove the content from a certain line up
for i in `ls`
do
sed '1,569d' $i > $i.bak
done
This will remove the unwanted formatting keeping the content I need which changes in each HTML file.
the problem I have now is that the... (2 Replies)
I am currently trying to develop a script to connect to mulltiple servers, reading specifc data from log files on the servers and append the data from each file into a single tab delimited row. So, at the end I am planning to have a report with all the extracted data with each row per server. I am... (5 Replies)
Hello,
I have been using the command below for file manipulation.
while read A B; do grep $f1; done < f2 > f3
So, if a certain string is found in f2 (for ex; DOG243435) and it is also present in f1, then print that string plus the contents of the line in which it was found onto f3.
... (6 Replies)
Hi all
:wall:
Can anyone advise how do I use ls to do a selective amd sorted listing of file that I want to have as below?
Am looking for files that are named as log_<nnnn>.txt, where <nnnn> are numeric, i.e. I want to have a listing sorted from the newest to the oldest of files that... (7 Replies)
I have a text file in this format.
Group: AAA
Notes: IP : 11.11.11.11
#User xxxxxxxxx
#Password aaaaaaaaaaaaaaaa
Group: AAA
Notes: IP : 11.11.11.22
#User yyyyyyyyyyyyy
#Password bbbbbbbbbbbbb (8 Replies)
Need help
Please help on how to write a script which can echo timestamp, size of subdirectories in a specific path from multiple Linux servers to a text file.
I can ssh with a common user to all the servers from a build box.
Basic idea what I had was:
ssh <commonuser>@<each box>
cd... (1 Reply)
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
LEARN ABOUT REDHAT
mibhelp
MIBHELP(1) mrtg MIBHELP(1)NAME
mibhelp - A Table of some interesting OIDs
OVERVIEW
This File Contains a collection of interesting MIB Entries ... mrtg knows about their names ... depending on the ASN.1 Syntax you may have
to put gauge into the Options[]: parameter.
For information about how to create a Target[]: parameter which references these MIB entries, please consult the reference manpage.
MIB LIST
ifOperStatus
Descriptor: ifOperStatus
Identifier: 1.3.6.1.2.1.2.2.1.8
ASN.1 Syntax: INTEGER
Enumeration: up 1, down 2, testing 3
The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed.
ifAdminStatus
Descriptor: ifAdminStatus
Identifier: 1.3.6.1.2.1.2.2.1.7
ASN.1 Syntax: INTEGER
Enumeration: up 1, down 2, testing 3
The current administrative state of the interface. The testing(3) state indicates that no operational packets can be passed.
ifInOctets
Descriptor: ifInOctets
Identifier: 1.3.6.1.2.1.2.2.1.10
ASN.1 Syntax: Counter32
The total number of octets received on the interface, including framing characters.
ifInUcastPkts
Descriptor: ifInUcastPkts
Identifier: 1.3.6.1.2.1.2.2.1.11
ASN.1 Syntax: Counter32
The number of subnetwork-unicast packets delivered to a higher-layer protocol.
ifInNUcastPkts
Descriptor: ifInNUcastPkts
Identifier: 1.3.6.1.2.1.2.2.1.12
ASN.1 Syntax: Counter32
The number of non-unicast (i.e., subnetwork- broadcast or subnetwork-multicast) packets delivered to a higher-layer protocol.
ifInDiscards
Descriptor: ifInDiscards
Identifier: 1.3.6.1.2.1.2.2.1.13
ASN.1 Syntax: Counter32
The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable
to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space.
ifInErrors
Descriptor: ifInErrors Identifier: 1.3.6.1.2.1.2.2.1.14 ASN.1 Syntax: Counter32
The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.
ifInUnknownProtos
Descriptor: ifInUnknownProtos Identifier: 1.3.6.1.2.1.2.2.1.15 ASN.1 Syntax: Counter32
The number of packets received via the interface which were discarded because of an unknown or unsupported protocol.
ifOutOctets
Descriptor: ifOutOctets Identifier: 1.3.6.1.2.1.2.2.1.16 ASN.1 Syntax: Counter32
The total number of octets transmitted out of the interface, including framing characters.
ifOutUcastPkts
Descriptor: ifOutUcastPkts
Identifier: 1.3.6.1.2.1.2.2.1.17
ASN.1 Syntax: Counter32
The total number of packets that higher-level protocols requested be transmitted to a subnetwork-unicast address, including those that were
discarded or not sent.
ifOutNUcastPkts
Descriptor: ifOutNUcastPkts
Identifier: 1.3.6.1.2.1.2.2.1.18
ASN.1 Syntax: Counter32
The total number of packets that higher-level protocols requested be transmitted to a non- unicast (i.e., a subnetwork-broadcast or subnet-
work-multicast) address, including those that were discarded or not sent.
ifOutDiscards
Descriptor: ifOutDiscards
Identifier: 1.3.6.1.2.1.2.2.1.19
ASN.1 Syntax: Counter32
The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being transmit-
ted. One possible reason for discarding such a packet could be to free up buffer space.
ifOutErrors
Descriptor: ifOutErrors
Identifier: 1.3.6.1.2.1.2.2.1.20
ASN.1 Syntax: Counter32
The number of outbound packets that could not be transmitted because of errors.
ifOutQLen
Descriptor: ifOutQLen
Identifier: 1.3.6.1.2.1.2.2.1.21
ASN.1 Syntax: Unsigned32
The length of the output packet queue (in packets).
frInOctets
From: Simon Ferrett <simonf@world.net>
'frInOctets' => '1.3.6.1.2.1.10.32.2.1.9'
'frOutOctets' => '1.3.6.1.2.1.10.32.2.1.7'
which when used in the form:
frInOctets.pp.dd&frOutOctets.pp.dd:community@cisco.router
where pp is the physical port that the frame relay pvc is defined on and dd is the DLCI of the pvc gets you the in and out octets for just
that pvc.
ifAdminHack and ifOperHack
The return values of ifAdminStatus and ifOperStatus are not very usefull for graphing. Use ifOperHack and ifAdminHack instead. They return
1 for UP and 0 otherwise.
Note these are not real MIB entities but mrtg hacks
AUTHOR
Tobias Oetiker <oetiker@ee.ethz.ch>
3rd Berkeley Distribution 2.9.17 MIBHELP(1)