Search Results

Search: Posts Made By: wthomas
15,065
Posted By wthomas
Ifconfig Flags
Hi there,

I need your help in understanding the below Solaris 10 ifconfig output;

athnetspns02>ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232...
5,362
Posted By wthomas
Hi there, it's working now. I used "egrep"...
Hi there, it's working now.

I used "egrep" with the "-f" option instead of just "grep".
Thanks very much for your help.

Regards, Wynford :b:
5,362
Posted By wthomas
Hi there, I tried your suggestion but I got the...
Hi there, I tried your suggestion but I got the following:

cat hosts | grep -v -f /tmp/temp_hosts.txt >> /tmp/new_hostsfile.txt
grep: illegal option -- f
Usage: grep -hblcnsviw pattern file . ....
5,362
Posted By wthomas
Deleting Multiple Lines in Hosts File
Hello all,

I'm using the Bash shell on Solaris 8.
Please can someone tell me how I can delete multiple lines in the hosts file?
I have a list of hosts that I want to quickly delete in the hosts...
4,281
Posted By wthomas
Thanks Guy's, most appreciated.
Thanks Guy's, most appreciated.
4,281
Posted By wthomas
CPU Utilisation Report on Solaris 10
Hi all,

I'm using Solaris 10 and have an occasional problem where a process that runs near to midnight each day, takes anywhere between 30 seconds and over two minutes to complete. I suspect that...
4,606
Posted By wthomas
Thanks Jim and Purdym, I decided to use; ...
Thanks Jim and Purdym,

I decided to use;

grep "Dec 4 11:[0-1][0-5]" filename
as this was easier and only a one-off.

Thanks for all your help :)

Regards, Wynford
4,606
Posted By wthomas
Extracting a Time Span from Syslog Messages File
Hi all,

I need your help to explain how I can extract a time span from the syslog messages file on a Solaris 10 system.
Here is an example extract of the syslog messages:

Dec 4 11:51:38...
Forum: Solaris 11-04-2010
3,509
Posted By wthomas
Thanks Vishal, this now works perfectly, thank...
Thanks Vishal, this now works perfectly, thank you :)

Regards, Wynford
Forum: Solaris 11-03-2010
3,509
Posted By wthomas
Hi there, The shell script of my choice is...
Hi there,

The shell script of my choice is Bash.

Regards, Wynford
Forum: Solaris 11-02-2010
3,509
Posted By wthomas
Hi all, I've searched the site for a...
Hi all,

I've searched the site for a suitable while loop command, but couldn't find one to suit that I can understand.
Please can someone help me out here, I'm sure it's simple for someone out...
Forum: Solaris 11-02-2010
3,509
Posted By wthomas
Hi there, I cannot find a IP-4-DUPADDR...
Hi there,

I cannot find a IP-4-DUPADDR message right now, but another message that I would like to alert on is DUAL-5-NBRCHANGE. See below an example sent by a Cisco router with a logging level of...
Forum: Solaris 11-01-2010
3,509
Posted By wthomas
Automatically Email Select Syslog Messages
Hi all,

I'm using Solaris 10 and would like to know how I can monitor the /var/adm/messages file for certain message types, and email them upon detection.
For example, I want to immediately email...
2,168
Posted By wthomas
Thanks Jim, much appreciated :)
Thanks Jim, much appreciated :)
2,168
Posted By wthomas
Explanation of NAWK Code
Hi all,

I need your help in understanding the meaning and syntax of the below nawk line.
Here is an extract of a script which I use daily and works well. The script extracts the hostnames and...
4,289
Posted By wthomas
Thank you very much AGN, that works nicely :)
Thank you very much AGN, that works nicely :)
4,289
Posted By wthomas
Hi AGN, I'm sorry but I do not know how to...
Hi AGN,

I'm sorry but I do not know how to put your suggestion into my script.
When I execute the following command, I get the following output.

grep %SECURITY-1-PORTSHUTDOWN messages

Oct...
4,289
Posted By wthomas
Hi there, I would like to extract from the...
Hi there,

I would like to extract from the "%" character onwards, but there is no grep "-o" option. I'm using Solaris 10 and the bash shell.

Wynford
4,289
Posted By wthomas
Syslog Message Columns
Hi all,

I need your help with syslog columns.
Currently I have a script as follows: (extract)

for messages in `cat syslog_message_list.txt`; \
do \
grep $messages syslog.`date +%d%m%y`.log |...
3,188
Posted By wthomas
Hi Birei, Thanks for your code, it works...
Hi Birei,

Thanks for your code, it works fine, except I had to insert an "r" to reverse the output, as shown below.

sort -k3.2,3 -k2,2 -k1nr,1 <file>

Thank you for your help.

Regards,
...
2,494
Posted By wthomas
Thanks Guys.
Thanks Guys.
3,188
Posted By wthomas
Hi there, This doesn't solve my problem, I...
Hi there,

This doesn't solve my problem, I need to be able to sort on the "Message Type", then the "Hostname" then the column.

Regards, Wynford
2,494
Posted By wthomas
Help Needed with Creating Script
Hi all,

I need your help in creating a script.
At the moment, we run a daily procedure incorporating the following commands, which we would like within a script using the bash shell.

cd...
3,188
Posted By wthomas
Help needed sorting syslog columns
Hi all,

I need your help in sorting some columns in a syslog report.

The command is:
for messages in `cat syslog_message_list.txt`; do grep $messages syslog.`date +%d%m%y`.log | \
tr -s " " |...
1,741
Posted By wthomas
Thanks Bartus11, that works a treat, you're a...
Thanks Bartus11, that works a treat, you're a star :)
(https://www.unix.com/members/302059620.html)[/URL]...
Showing results 1 to 25 of 35

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