10-10-2012
thanks all for the reply..
Hi team,
thanks elixir_sinari
the below command given by elixir works for me but in my output I want
some other column to be displayed(it is displaying the same output as i m searching for) and also it should write it to some other file, for e.g. output will be like..
IF-MIB::ifDescr.2500 = STRING: ae0.784
then I want highlighted part to be displayed in output..
snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv 1.1.1.1 2>/dev/null|awk '/ae0\.784/{print $NF}'
Kindly help on this.
thanks..
10 More Discussions You Might Find Interesting
1. Programming
hi all
how to terminate command eecution process.
can you please show me the way
thank you (2 Replies)
Discussion started by: munna_dude
2 Replies
2. UNIX for Dummies Questions & Answers
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies
3. Shell Programming and Scripting
How can I grep exactly a string that has .,/ characters using grep?
Example: I want to grep ONLY string1 and not string1.more or string1.more.evenmore
#lsauth ALL|grep 'string1'
All output:
string1 <--- This is the only I want.
string1.more
string1.evenmore.
more.string1... (4 Replies)
Discussion started by: iga3725
4 Replies
4. Shell Programming and Scripting
Hi,
I have written a shell script which is a combination of 5 scripts into one.
We have a Record Claim indicator in the scpt ($rc) with which we can come to an conclusion if the script failed to load the data or if the data loaded successfully.
Can any one please help me as to how to... (16 Replies)
Discussion started by: msrahman
16 Replies
5. Shell Programming and Scripting
I'm working on a script to make backup of various folder located on various host using different OS.
I got a strange behaviour because the script donět process all lines of a configuration file, the script execute only one loop even the input file have 6 lines:
This is the script:
#!/bin/bash... (4 Replies)
Discussion started by: |UVI|
4 Replies
6. Shell Programming and Scripting
This has been bothering me for 3 days.
$> hostname
cepsun64amd
And I just want "cepsun",
I would normally do h=`hostname`; ${h%%64*}
But I am looking for a one-liner just for my own knowledge, because if there is a way to do this, I should know it by now.
Anyway, so is this... (2 Replies)
Discussion started by: Ryan.
2 Replies
7. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
8. Shell Programming and Scripting
Hi All,
I have a file with name
Is there a LINUX command that will help me to output the word after the 9th Underscore(_).
ie the output should be DLY in this case.
Can anybody pls help me.
Thanks much in advance,
Freddie (4 Replies)
Discussion started by: dsfreddie
4 Replies
9. Shell Programming and Scripting
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Discussion started by: vivek d r
2 Replies
10. Shell Programming and Scripting
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
LEARN ABOUT SUNOS
snmpwalk
snmpwalk(1M) System Administration Commands snmpwalk(1M)
NAME
snmpwalk - communicate with a network entity using SNMP GETNEXT requests
SYNOPSIS
snmpwalk [application options] [common options] [oid]
DESCRIPTION
The snmpwalk utility is an SNMP applicationthat uses SNMP GETNEXT requests to query a network entity for a tree of information.
You can specify an object identifier (OID) on the command line. This OID specifies which portion of the object identifier space will be
searched using GETNEXT requests. All variables in the subtree below the specified OID are queried and their values returned. Each variable
name must be entered in the format specified in snmp_variables(4).
If no OID argument is present, snmpwalk searches MIB-2. If the network entity has an error processing the request packet, an error packet
is returned and a message displayed, indicating t the way in which the request was malformed.
If the tree search causes attempts to search beyond the end of the MIB, the message "End of MIB" is displayed.
OPTIONS
The following options are supported:
-Cc
Do not check whether the returned OIDs are increasing. Some agents (for example, agents for Laser-Jet printers) return OIDs out of
order, but can complete the walk anyway. Other agents return OIDs that are out of order and can cause snmpwalk to loop indefinitely. By
default, snmpwalk tries to detect this behavior and warns you when it encounters an agent acting illegally. Use -Cc to turn off this
feature.
-Ci
Include the given OID in the search range. Normally, snmpwalk uses GETNEXT requests starting with the OID you specify and returns all
results in the MIB tree beyond that OID. This option allows you to include the OID specified on the command line in the displayed
results (assuming the OID is a valid OID in the tree).
-Cp
Upon completion of the walk, display the number of variables found.
In addition to these options, snmpwalk takes the common options described in the snmpcmd(1M) manual page.
EXAMPLES
Example 1: Retrieving All of the Variables Under system
The following command retrieves all of the variables under system:
# snmpwalk -Os -c public -v 1 zeus system
Output from this command will be similar to:
sysDescr.0 = STRING: "SunOS zeus.net.cmu.edu 4.1.3_U1 1 sun4m"
sysObjectID.0 = OID: enterprises.hp.nm.hpsystem.10.1.1
sysUpTime.0 = Timeticks:(155274552) 17 days, 23:19:05
sysContact.0 = STRING: ""
sysName.0 = STRING: "zeus.net.cmu.edu"
sysLocation.0 = STRING: ""
sysServices.0 = INTEGER: 72
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsmcmd |
+-----------------------------+-----------------------------+
|Interface Stability |External |
+-----------------------------+-----------------------------+
EXIT STATUS
0
Successful completion.
1
A usage syntax error. A usage message is displayed. Also used for timeout errors.
2
An error occurred while executing the command. An error message is displayed.
SEE ALSO
snmpbulkwalk(1M), snmpcmd(1M), snmp_variables(4), attributes(5)
SunOS 5.10 20 Jan 2004 snmpwalk(1M)