Search Results

Search: Posts Made By: Yorkie99
2,238
Posted By Yorkie99
Seems to work... it gets a bit confused when the...
Seems to work... it gets a bit confused when the network names are not in the same order though. Must check why that is in the logfiles. Should be possible to do a sort on the network name.
2,238
Posted By Yorkie99
Subtract field values
I've got a long logfile of the form


network1:123:45:6789:01:234:56
network2:12:34:556:778:900:12
network3:...


I've got a similar logfile from a week later with different values for each...
4,380
Posted By Yorkie99
Nearly there... Panyam: That works...
Nearly there...

Panyam: That works alright... but its only outputting the results of the section I'm working on, the rest of the file is lost... trying to think if there's a way to leave the rest...
4,380
Posted By Yorkie99
Thanks Franklin and radoulov Both solutions...
Thanks Franklin and radoulov

Both solutions work... but with a proviso... the log file contains similar lines but with the other types of errors seen on Cisco interfaces as well... and all these...
4,380
Posted By Yorkie99
Check numeric fields greater than zero, and delete lines if appropriate
This be the latest in my problems sorting through router logs... I'm half way there on a problem, but I've hit the limitation of my knowledge

Got some router interface log files of type
...
4,600
Posted By Yorkie99
Radoulov: Thanks... that worked.... Tip78:...
Radoulov: Thanks... that worked....

Tip78: Dunno... must be gremlins in the system somewhere... Thanks a lot for your help and suggestions though
4,600
Posted By Yorkie99
Sorry... I should have made it clearer there...
Sorry... I should have made it clearer there maybe... its for all lines in the input file that its erroring on not just 2-3... I was just giving an example of the errors. I'm not quick enough on the...
4,600
Posted By Yorkie99
Same thing.. except the error is now on line 5 ...
Same thing.. except the error is now on line 5

Use of uninitialized value $1 in concatenation (.) or string at ./test.pl line 5, <> line 2622.
Use of uninitialized value $1 in concatenation (.)...
4,600
Posted By Yorkie99
Hi... thanks for the suggestions... but they...
Hi... thanks for the suggestions... but they don't work. I'm working on Ubuntu rather than Solaris... wouldn't have thought it would make that much of a difference but it obviously does
...
4,600
Posted By Yorkie99
Find pattern, and then last field from subsequent lines
I've got a log file, of the format

Name: network1
Dropped packets: 15618
Dropped packets for IPv6: 27
Dropped packets: 74
Dropped packets for IPv6: 0
Failed RADIUS Authentication...
4,176
Posted By Yorkie99
Cheers Panyam.. that worked. No idea how though.....
Cheers Panyam.. that worked. No idea how though.. Must have a read of an Awk tutorial and figure it out.
4,176
Posted By Yorkie99
In cases where successive lines are of the form ...
In cases where successive lines are of the form

Uplink traffic:
Downlink traffic:

I want the "Uplink traffic:" line removed

In cases where successive lines are of the form

Uplink...
4,176
Posted By Yorkie99
pattern matching over multiple lines and deleting the first
I've got a longish log file with content such as

Uplink traffic:
Downlink traffic:

I want to parse the log file and remove any line that contains the string "Uplink traffic:" at the beginning...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy