I am trying to write a script that when triggered by an ip address it will run the following
export DAVIDCOUNT=`(fgrep -ce 140.147.146.146 /export/home/ipconnect.txt) >> /local/cron/test_listen_out`;
I think this is my problem line.
What I like this line to do is when it sees the... (6 Replies)
I know this must be really easy, but i can't get it to work
I've got a perl script, with a file.
I want to print an empty line, and the following doesn't seem to work:
print nameoffile "\n"
thanks for your help!! (3 Replies)
Morning All,
Quite a simple one this, I hope. What I want to do is to re-write the first line of a file before it's sent to print. The line will be blank initially, and I want to insert some text. The operation can either be done on the file itself (modifying the file on disk), OR in a... (2 Replies)
The below line gives the perfect output when I mention the record number and file name as hardcoded.
awk 'NR==3{print}' samp2.txt
But when I pass the record num and file name as variable, it doesn't give any output.
row_num=3;file2=samp2.txt;awk 'NR==$row_num {print}' $file2
Can you... (2 Replies)
This is probably simple but I would like to print every line in a file 5 times like this:
awk 'NR' mens_csv.tab
Dub Tank 53%Hemp/42%Cotton/5%Lycra Jersey Dark Green 0 $22.50
Dub Tank 53%Hemp/42%Cotton/5%Lycra Jersey Indigo Blue 0 $22.50
---------------
Dub... (4 Replies)
Hi,
I have a file in which the entries are of the following type:
5649 S 1
0412 S 0
0423 S 1
0020 N 0
0020 N 0
1022 S 1
1022 S 1
I need to print the whole line which is having 0 in the third column into a different file
Thanks... (6 Replies)
Florida State University, Tallahassee, FL USA, Dr. Whalley, COP4342
1. The problem statement, all variables and given/known data:
Create a lex specification file that reads a C source program that ignores keywords and collects all identifiers (regular variable names) and also displays the line... (3 Replies)
I need to develop a script where I will take two date arguments as parameter date1 and date2 which will in format YYYYMM.
Below is the input file say sample.txt.
sample.txt will have certain blocks starting with P1.
Each block will have a value 118,1:TIMESTAMP.
I need to compare the... (7 Replies)
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT REDHAT
snmpxdmid
snmpXdmid(1M) System Administration Commands snmpXdmid(1M)NAME
snmpXdmid - Sun Solstice Enterprise SNMP-DMI mapper subagent
SYNOPSIS
/usr/lib/dmi/snmpXdmid -s hostname [-h] [-c config-dir] [-d debug-level]
DESCRIPTION
The snmpXdmid utility is a subagent in the Solstice Enterprise Agent Desktop Management Interface package. It maps the SNMP requests for-
warded by the Master Agent ( snmpdx(1M)) into one or more equivalent DMI requests. Further, it remaps the DMI response into SNMP response
back to snmpdx. By default, snmpXdmid also forwards the DMI indications as SNMP traps to snmpdx. The feature is configurable and can be
disabled by setting
TRAP_FORWARD_TO_MAGENT=0 in the snmpXdmid configuration file, snmpXdmid.conf.
This subagent runs as a daemon in the system. The subagent uses a set of .MAP files located in /var/dmi/map to map the SNMP Object Identi-
fier (OID) into a corresponding DMI component. The map files are generated using the MIF-to-MIB utility, miftomib. They are read by snm-
pXdmid when a corresponding MIF file gets registered with the DMI Service Provider ( dmispd(1M)).
The snmpXdmid.conf file is used for configuration information. Each entry in the file consists of a keyword followed by an equal sign (=),
followed by a parameter string. The keyword must begin in the first position. A line beginning with a pound sign (#) is treated as a com-
ment and the subsequent characters on that line are ignored. The keywords currently supported are:
"small and bold">WARNING_TIMESTAIndication subscription expiration, warning time.
EXPIRATION_TIMESTAMP Indication subscription expiration timestamp.
FAILURE_THRESHOLD DMISP retries before dropping indication due to comm errors.
TRAP_FORWARD_TO_MAGENT
0 Drop indication at the subagent level.
non-zero Forward indications as SNMP traps to snmpdx.
By default, the configuration file snmpXdmid.conf is located in the /etc/dmi/conf directory. You can specify an alternative directory with
the -c option.
OPTIONS
The following options are supported:
-c config-dir Specify the directory where snmpXdmid.conf file is located.
-d debug-level Debug. Levels from 1 to 5 are supported, giving various levels of debug information.
-h Help. Print the command line usage.
-s hostname Specify the host on which dmispd is running.
FILES
/etc/dmi/conf/snmpXdmid.conf DMI mapper configuration file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsadmi |
+-----------------------------+-----------------------------+
SEE ALSO dmispd(1M), snmpdx(1M), attributes(5)SunOS 5.10 17 Dec 1996 snmpXdmid(1M)