I ended up using the code:
For the uniq command the -c flag will print the number of occurences before each line while the -n6 flag will ignore the first 6 fields for comparison. The end result is exactly what I needed. Thank you for your help everyone.
Hi!
I have a trouble with the sort and the uniq.
I know I have to use them, I just have trouble with putting them in the right order.
I have a text file with unsorted lines (each line has a few words, the first word in the line is a number.).
I need to sort this file in order to be... (6 Replies)
--------------------------------------------------------------------------------
I have a log file "logreport" that contains several lines as seen below:
04:20:00 /usr/lib/snmp/snmpdx: Agent snmpd appeared dead but responded to ping
06:38:08 /usr/lib/snmp/snmpdx: Agent snmpd appeared... (2 Replies)
I have a file which contains data as below:
nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf
nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf
nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf
nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf
nbk1j7o pageName=/jsp/common/index.jsf
nbk1j7o pageName=/jsp/common/index.jsf
nbk1wqe... (6 Replies)
Hello folks
I have a question for you gurus of sed or grep (maybe awk, but I would prefer the first two)
I have a file (f1) that says:
(actually, these are not numbers but md5sum, but for simplicity, let's assume these numbers.)
1
2
3
4
5And I have a file (f2) that says
1|a
1|b
1|c
2|d... (3 Replies)
Hello! i have a text file.. which contains the data as follows
i want to merge the declarations lines pertaining to one datatype in to a single line as follows
i've searched the forum for help.. but couldn't find much help.. how can i do this?? (1 Reply)
Hi,
I have a file with the lines as below:
C_10_A05_T7
C_10_A06_SP6
C_10_B05_SP6
C_10_B05_T7
C_10_B01_SP6
C_10_B01_T7
C_12_G07_SP6
C_12_G11_SP6
C_12_G11_T7
C_2_H18_T7
C_2_I02_SP6
C_2_I02_T7
C_2_I13_SP6
C_2_I17_SP6
The four segments of each line are connected by '_' symbols. I... (7 Replies)
consider i have two files
cat onlyviews1.sql
CREATE VIEW V11
AS
SELECT id,
name,
FROM
etc etc
WHERE etc etc;
CREATE VIEW V22
AS
SELECT id,
name,
FROM
etc etc
WHERE etc etc;
CREATE VIEW V33
AS (10 Replies)
Hello,
I am a java programmer but want to try unix for a purpose where I need to reduce a file using its first field.. Here is the sample data:
admin;2;0;;
admission;8;0;;
aman;1;0;;
caroline;0;4;;
cook;0;4;;
cook;2;0;;
far;0;3;;
far;1;5;;
I am explaining the dataset first. There... (5 Replies)
Hi,
I have a huge file which has Lacs of lines. File system got full.
I want your guys help to suggest me a solution so that I can remove all lines from that file but not last 50,000 lines. I want solution which can remove lines from existing file so that I can have some space left with. (28 Replies)
Discussion started by: prashant2507198
28 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)