10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a requirement to extract the value from multiple xml node and print out the values to new file to compare.
Would be done using either awk/perl or some unix script.
For example sample input file:
.....
.....
<factories xmi:type="resources.jdbc:DataSource"... (2 Replies)
Discussion started by: slbmind
2 Replies
2. UNIX for Dummies Questions & Answers
i don't know where to put this question hence it is here.
Presently, i have X unix machines which each of them running a set of executables with various unique configurations.
i would like to have run multiple set of machines the same set of executeables but each running different... (0 Replies)
Discussion started by: lchunleo
0 Replies
3. Shell Programming and Scripting
I am using a for loop to copy files from say DIR1 and DIR2 to DIR3.I have to check whether files are copied from DIR1 and DIR2 and print the respective message.
@path=("$DIR1","$DIR2");
foreach (@path) {
$rc=system("cp $_/*xml $DIR3");
if ($rc == 0)
{
print "Files were copied... (1 Reply)
Discussion started by: liyakathali
1 Replies
4. Shell Programming and Scripting
Hello
Need your kind support to solve the below issue
I am returning oracle column value via sqlplus in the below code
my $sqlplus_settings = '';
my $newval = qx { sqlplus -s $connect_string <<EOF
set pages 0 feed off
$sqlplus_settings select (rcrd_cnt) from... (4 Replies)
Discussion started by: Pratik4891
4 Replies
5. UNIX for Dummies Questions & Answers
Ok, so i monitor disk space on remote machines using snmp. Works great for me. But whenever a particular partition happens to have Terabytes of data, snmp starts reporting negative values.
Can someone please tell me how to get around this problem?
The AllocationUnit is 512 bytes. Weird... (0 Replies)
Discussion started by: SkySmart
0 Replies
6. Shell Programming and Scripting
Hi,
I have nine files looking similar to file1 & file2 below.
File1:
1 ABCA1
1 ABCC8
1 ABR:N
1 ACACB
1 ACAP2
1 ACOT1
1 ACSBG
1 ACTR1
1 ACTRT
1 ADAMT
1 AEN:N
1 AKAP1File2:
1 A4GAL
1 ACTBL
1 ACTL7 (4 Replies)
Discussion started by: seqbiologist
4 Replies
7. Infrastructure Monitoring
Hi Gurus of UNIX,
I am newbi in UNIX. I work in a company that work with a certain type of equipment of networking. I want to configure a SNMP server.
I have a PC that had installed Opensolaris, Any want can help, step by step, how to configure a SNMP Server
Or can send me the links where I can... (3 Replies)
Discussion started by: andresguillen
3 Replies
8. UNIX for Advanced & Expert Users
hi all :)
does anyone ever set up an SNMP?? security team asked me to configure or set up my SNMP since it was set by default or no one configure it. but I do not know how to do it, I try to search using google but its hardly to find the tutorial on how to setup this snmp
I read this... (8 Replies)
Discussion started by: flekzout
8 Replies
9. SCO
Want to setup snmp with mib to track system issues on SCO OS5.0.5. Is there somewhere I can look that will give me insight in how to answer some of the questions the mkdev snmp asks? (0 Replies)
Discussion started by: herd5cusa
0 Replies
10. Shell Programming and Scripting
i am using perl in win2000advanced server...
---------------------------
perl -version:
---------------------------
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 638 provided by... (1 Reply)
Discussion started by: sekar sundaram
1 Replies
SNMPTRAP(1) Net-SNMP SNMPTRAP(1)
NAME
snmptrap, snmpinform - sends an SNMP notification to a manager
SYNOPSIS
snmptrap -v 1 [COMMON OPTIONS] [-Ci] enterprise-oid agent generic-trap specific-trap uptime [OID TYPE VALUE]...
snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] uptime trap-oid [OID TYPE VALUE]...
snmpinform -v [2c|3] [COMMON OPTIONS] uptime trap-oid [OID TYPE VALUE]...
DESCRIPTION
snmptrap is an SNMP application that uses the SNMP TRAP operation to send information to a network manager. One or more object identifiers
(OIDs) can be given as arguments on the command line. A type and a value must accompany each object identifier. Each variable name is
given in the format specified in variables(5).
When invoked as snmpinform, or when -Ci is added to the command line flags of snmptrap, it sends an INFORM-PDU, expecting a response from
the trap receiver, retransmitting if required. Otherwise it sends an TRAP-PDU or TRAP2-PDU.
If any of the required version 1 parameters, enterprise-oid, agent, and uptime are specified as empty, it defaults to 1.3.6.1.4.1.3.1.1
(enterprises.cmu.1.1), hostname, and host-uptime respectively.
The TYPE is a single character, one of:
i INTEGER
u UNSIGNED
c COUNTER32
s STRING
x HEX STRING
d DECIMAL STRING
n NULLOBJ
o OBJID
t TIMETICKS
a IPADDRESS
b BITS
which are handled in the same way as the snmpset command.
For example:
snmptrap -v 1 -c public manager enterprises.spider test-hub 3 0 '' interfaces.iftable.ifentry.ifindex.1 i 1
will send a generic linkUp trap to manager, for interface 1.
OPTIONS
snmptrap takes the common options described in the snmpcmd(1) manual page in addition to the -Ci option described above.
SEE ALSO
snmpcmd(1), snmpset(1), variables(5).
V5.6 19 Jun 2003 SNMPTRAP(1)