I tried radoulov's script and it works for me. I had a sample log file on my desktop called "logfile.log" with these entries:
I cd'd to my desktop, and then I used radoulov's script with the slight modification of adding "\" to the end of each line so I could copy and paste it to the bash command line.
I am doing KSH script to remove duplicate lines in a file. Let say the file has format below.
FileA
1253-6856
3101-4011
1827-1356
1822-1157
1822-1157
1000-1410
1000-1410
1822-1231
1822-1231
3101-4011
1822-1157
1822-1231
and I want to simply it with no duplicate line as file... (5 Replies)
Hi please help me how to remove duplicate lines in any file.
I have a file having huge number of lines.
i want to remove selected lines in it.
And also if there exists duplicate lines, I want to delete the rest & just keep one of them.
Please help me with any unix commands or even fortran... (7 Replies)
greetings,
i'm hoping there is a way to cat a file, remove duplicate lines and send that output to a new file. the file will always vary but be something similar to this:
please keep in mind that the above could be eight occurrences of each hostname or it might simply have another four of an... (2 Replies)
Hi,
I have two files with below data::
file1:-
123|aaa|ppp
445|fff|yyy
999|ttt|jjj
555|hhh|hhh
file2:-
445|fff|yyy
555|hhh|hhh
The records present in file1, not present in file 2 should be writtent to the out put file.
output:-
123|aaa|ppp
999|ttt|jjj
Is there any one line... (3 Replies)
Hey guys, need some help to fix this script. I am trying to remove all the duplicate lines in this file.
I wrote the following script, but does not work. What is the problem?
The output file should only contain five lines:
Later! (5 Replies)
hi,
Please help me to write a command to delete duplicate lines from a file. And the size of file is 50 MB. How to remove duplicate lins from such a big file. (6 Replies)
Hi,
I have a csv file which contains some millions of lines in it.
The first line(Header) repeats at every 50000th line. I want to remove all the duplicate headers from the second occurance(should not remove the first line).
I don't want to use any pattern from the Header as I have some... (7 Replies)
Dear community,
I have to remove duplicate lines from a file contains a very big ammount of rows (milions?) based on 1st and 3rd columns
The data are like this:
Region 23/11/2014 09:11:36 41752
Medio 23/11/2014 03:11:38 4132
Info 23/11/2014 05:11:09 4323... (2 Replies)
Hi, all
I have a csv file that I would like to remove duplicate lines based on 1st field and sort them by the 1st field. If there are more than 1 line which is same on the 1st field, I want to keep the first line of them and remove the rest. I think I have to use uniq or something, but I still... (8 Replies)
Discussion started by: refrain
8 Replies
LEARN ABOUT REDHAT
snmpdx
snmpdx(1M) System Administration Commands snmpdx(1M)NAME
snmpdx - Sun Solstice Enterprise Master Agent
SYNOPSIS
/usr/lib/snmp/snmpdx [-hy] [-a filename] [-c config-dir] [-d debug-level] [-i filename] [ -m GROUP -m SPLIT] [-o filename] [-p port]
[-r filename]
DESCRIPTION
The Master Agent, snmpdx, is the main component of Solstice Enterprise Agent technology. It runs as a daemon process and listens to User
Datagram Protocol (UDP) port 161 for SNMP requests. The Master Agent also opens another port to receive SNMP trap notifications from vari-
ous subagents. These traps are forwarded to various managers, as determined by the configuration file.
Upon invocation, snmpdx reads its various configuration files and takes appropriate actions by activating subagents, determining the sub-
tree Object Identifier (OID) for various subagents, populating its own Management Information Bases (MIBs), and so forth. The Master Agent
invokes subagents, registers subagents, sends requests to subagents, receives responses from subagents, and traps notifications from sub-
agents.
The Master Agent is invoked from a start-up script at boot time only if contents of the resource configuration file /etc/snmp/conf/snm-
pdx.rsrc are non-trivial.
OPTIONS
The following options are supported:
-a filename Specify the full path of the access control file used by the Master Agent. The default access control file is
/etc/snmp/conf/snmpdx.acl.
-c config-dir Specify the full path of the directory containing the Master Agent configuration files. The default directory is
/etc/snmp/conf.
-d debug-level Debug. Levels from 0 to 4 are supported, giving various levels of debug information. The default is 0 which means
no debug information is given.
-h Help. Print the command line usage.
-i filename Specify the full path of the enterprise-name OID map. This file contains the PID used by the Master Agent for
recovery after a crash. It contains tuples of the UNIX process ID, port number, resource name, and agent name. The
default file is /var/snmp/snmpdx.st.
-m GROUP | -m SPLIT Specify the mode to use for forwarding of SNMP requests.
GROUP Multiple variables can be included in each request from the Master Agent to the subagents. This results
in, at mose, one send-request per agent.
SPLIT Each variable in the incoming request results in one send-request to each subagent.
The default is GROUP.
-o filename Specify the full path of the file containing the tuple (enterprise-name, OID). For example, (Sun Microsystems,
1.3.1.6.1.4.32). The Master Agent uses this file as a base for look-up in the trap-filtering and forwarding
process. The default file is /etc/snmp/conf/enterprises.oid.
-p port Specify the port number. The default port number is 161.
-r filename Specify the full path of the resource file to be used by the Master Agent. This file stores information about the
subagents that the Master Agent invokes and manages. The default resource file is /etc/snmp/conf/snmpdx.rsrc.
-y Set a recovery indicator to invoke the recovery module. The recovery process discovers which subagents in the pre-
vious session are still active; those subagents not active are re-spawned by the Master Agent.
FILES
/etc/snmp/conf/enterprises.oid Enterprise-name OID map
/etc/snmp/conf/snmpdx.acl Access control file
/etc/snmp/conf/snmpdx.rsrc Resource configuration file
/var/snmp/snmpdx.st Master Agent status file
/var/snmp/mib/snmpdx.mib Master Agent MIB file
EXIT STATUS
The following error values are returned:
0 Successful completion.
non-zero An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsasnm |
+-----------------------------+-----------------------------+
SEE ALSO snmpXdmid(1M), attributes(5)SunOS 5.10 17 Oct 2002 snmpdx(1M)