Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Yorkie99
1,886
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.
1,886
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...
3,627
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...
3,627
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...
3,627
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
...
3,376
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
3,376
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...
3,376
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 (.)...
3,376
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
...
3,376
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...
3,382
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.
3,382
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...
3,382
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

 

Featured Tech Videos

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