10-01-2015
Response
Hi Don,
Thanks for the reply, so do you have any examples of this which I could use for reference (with your points above included) ? my expierence in this area isnt great hence the questions but hopefully with some guidence I can learn/understand.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
give me a shell-script which extract data from log file on a server by giving date and time as input (for both start time and end time) and it will give the logs generated during the given time as output. (4 Replies)
Discussion started by: abhishek27
4 Replies
2. Shell Programming and Scripting
I have to write a script to search the logfiles i.e msg.log for the following
The Search Criteria is as follows
1. IP address
2. String
Ex: abc.123.com
3. Timestamp ( start - end )
ex: 2008-05-04-00:30:00 - 2008-05-08-04:30:00
Can anyone help to devise a script for... (9 Replies)
Discussion started by: indiakingz
9 Replies
3. Shell Programming and Scripting
Hi All,
I would like to write a script which will search a file say abc.dat in /a/b/data for 15 mins only. If the script finds the file in 15 mins then it will exit will exit sucessfully and if there is no file for 15 mins it will exit and copy the last day file (abc.dat_ddmmyyhhmmss) from... (1 Reply)
Discussion started by: chandancsc
1 Replies
4. Shell Programming and Scripting
If I have a log like :
Mon Jul 19 05:07:34 2010; TCP; eth3; 52 bytes; from abc to def
Mon Jul 19 05:07:35 2010; UDP; eth3; 46 bytes; from aaa to bbb
Mon Jul 19 05:07:35 2010; TCP; eth3; 52 bytes; from def to ghi
I will need an output like this :
Time abc to def... (1 Reply)
Discussion started by: hitha87
1 Replies
5. Shell Programming and Scripting
HI All,
I have a log file where the logs will be in the format as given below:
2011-05-25 02:32:51 INFO PROCESS STARTING
2011-05-25 02:32:52 INFO PROCESS STARTED
.
.
.
I want to retrieve only the logs which are less than 5 mins older than current time using grep... (3 Replies)
Discussion started by: rvhg16
3 Replies
6. AIX
I want to grep only last 5 mins of a log file in bash
I have a syslog which contains the following
Mon Jul 11 20:47:42
Mon Jul 11 20:47:52
The following works in Unix but not in AIX . Please can you let me know as to what would be the AIX equivalent
Code: for (( i = 5; i >=0;... (1 Reply)
Discussion started by: necro98
1 Replies
7. Shell Programming and Scripting
A happy Monday to you all,
I have a .csv file which contains data taken every 5 seconds. I want to average these 5 second data points into 30 minute averages!
date co2
25/06/2011 08:04 8.31
25/06/2011 08:04 8.32
25/06/2011 08:04 8.33... (18 Replies)
Discussion started by: gd9629
18 Replies
8. Shell Programming and Scripting
Hello,
Since I m new to shell, I had a hard time to sought out this problem.
I have a log file of a utility which tells that batch files are successful with timestamp. Given below is a part of the log file.
2013/03/07 00:13:50 Apache/1.3.29 (Unix) configured -- resuming normal operations... (12 Replies)
Discussion started by: rpm120
12 Replies
9. Shell Programming and Scripting
Hello All,
I have to write a script which will search for diffrent patterns like "Struck" "Out of Memory" , etc from a log file in Linux box's.
Now I will be executing a cron job to find out the results by executing the script once in every 30 minutes.
suppose time is
14-04-29:05:31:09
So I... (3 Replies)
Discussion started by: Shubhasis Mathr
3 Replies
10. Shell Programming and Scripting
Dears,
I am looking for a script which will work as a watch directory.
I ha directory which keep getting files in every 10 mins and some time delay.
I want to monitor if the directory getting the files in every 10 mins if not captured the last received file time and calculate the delay.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
SNMPCONF(1) Net-SNMP SNMPCONF(1)
NAME
snmpconf - creates and modifies SNMP configuration files
SYNOPSIS
snmpconf [OPTIONS] [fileToCreate]
Start with:
snmpconf -g basic_setup
Or even just:
snmpconf
DESCRIPTION
snmpconf is a simple Perl script that walks you through setting up a configuration file step by step. It should be fairly straight forward
to use. Merely run it and answer its questions.
In its default mode of operation, it prompts the user with menus showing sections of the various configuration files it knows about. When
the user selects a section, a sub-menu is shown listing of the descriptions of the tokens that can be created in that section. When a
description is selected, the user is prompted with questions that construct the configuration line in question.
Finally, when the user quits the program any configuration files that have been edited by the user are saved to the local directory, fully
commented.
A particularly useful option is the -g switch, which walks a user through a specific set of configuration questions. Run:
snmpconf -g basic_setup
for an example.
OPTIONS
-f Force overwriting existing files in the current directory without prompting the user if this is a desired thing to do.
-i When finished, install the files into the location where the global system commands expect to find them.
-p When finished, install the files into the users home directory's .snmp subdirectory (where the applications will also search for
configuration files).
-I DIRECTORY
When finished, install the files into the directory DIRECTORY.
-a Don't ask any questions. Simply read in the various known configuration files and write them back out again. This has the effect
of "auto-commenting" the configuration files for you. See the NEAT TRICKS section below.
-rall|none
Read in either all or none of the found configuration files. Normally snmpconf prompts you for which files you wish to read in.
Reading in these configuration files will merge these files with the results of the questions that it asks of you.
-R FILE,...
Read in a specific list of configuration files.
-g GROUPNAME
Groups of configuration entries can be created that can be used to walk a user through a series of questions to create an initial
configuration file. There are no menus to navigate, just a list of questions. Run:
snmpconf -g basic_setup
for a good example.
-G List all the known groups.
-c CONFIGDIR
snmpconf uses a directory of configuration information to learn about the files and questions that it should be asking. This
option tells snmpconf to use a different location for configuring itself.
-q Run slightly more quietly. Since this is an interactive program, I don't recommend this option since it only removes information
from the output that is designed to help you.
-d Turn on lots of debugging output.
-D Add even more debugging output in the form of Perl variable dumps.
NEAT TRICKS
snmpconf -g basic_setup
Have I mentioned this command enough yet? It's designed to walk someone through an initial setup for the snmpd(8) daemon. Really,
you should try it.
snmpconf -R /usr/local/snmp/snmpd.conf -a -f snmpd.conf
Automatically reads in an snmpd.conf file (for example) and adds comments to them describing what each token does. Try it. It's
cool.
NOTES
snmpconf is actually a very generic utility that could be easily configured to help construct just about any kind of configuration file.
Its default configuration set of files are SNMP based.
SEE ALSO
snmpd(8), snmp_config(5), snmp.conf(5), snmpd.conf(5)
V5.6 25 Feb 2003 SNMPCONF(1)