Did not find 'MplsVpnName' in module MPLS-VPN-MIB (/usr/local/share/snmp/mibs/mib-jnx-ldp.txt)
IF-MIB::ifDescr.2500 = STRING: ae0.784
Timeout: No Response from 182.19.96.13
Not all those lines which you get in the output are seen by the grep command. The 1st and 3rd lines have been written by your command snmpwalk to standard error (by default the terminal). The 2nd line has been filtered by the grep command.
Is this what you need?
Code:
snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv 182.19.96.13 2>/dev/null|awk '/ae0\.784/{print $NF}'
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)
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)
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)
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)
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)
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)
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)
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)
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 FREEBSD
snmp_hostres
SNMP_HOSTRES(3) BSD Library Functions Manual SNMP_HOSTRES(3)NAME
snmp_hostres -- host resources module for bsnmpd(8)LIBRARY
(begemotSnmpdModulePath."hostres" = /usr/lib/snmp_hostres.so)
DESCRIPTION
The snmp_hostres module implements the HOST-RESOURCES-MIB as standardized in RFC 2790.
RESTRICTIONS
Not all information in the MIB is meaningful in FreeBSD or is available. The following variables are not implemented or carry no informa-
tion:
hrFSType
There are several types of file systems for which no appropriate OID exists yet which are supported by FreeBSD. For smbfs, procfs
and devfs , hrFSOther is returned. In all other cases, hrFSUnknown.
hrFSBootable
It is questionable what bootable means here. Does it mean that the BIOS is available to start a boot on that file system or does it
mean that there is something bootable? In either case this information is not available so this variable returns True for the root
file system (which is not necessarily correct) and False for all others.
hrFSLastFullBackupDate, hrFSLastPartialBackupDate
This is not available and always returns an empty string. Theoretically, this could be retrieved from /etc/dumpdates, which would
hardly be correct given the different ways of doing backups.
hrDiskStorageTable
Floppy devices are currently not reported. Also the names of the disks are hard-coded in the module.
FILES
/usr/share/snmp/defs/hostres_tree.def
The description of the MIB tree implemented by snmp_hostres.
/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
/usr/share/snmp/mibs/BEGEMOT-HOSTRES-MIB.txt
This is the MIB that is implemented by this module.
SEE ALSO gensnmptree(1), snmpmod(3)AUTHORS
Victor Cruceru <soc-victor@FreeBSD.org>
BSD January 3, 2006 BSD