Software :: Get Snmpwalk To Return Numeric Oids Instead Of MIB Resolutions?
Apr 4, 2011
I'm trying to find the full numeric OID's for a device. I'm able to do an snmpwalk on the device and get a ton of data, however, I don't want the pretty names, I just want the numeric OIDs. I would have thought this was relatively easy, and I'm sure I did it years ago.. but for now, I can't find a "built-in" way to do it.
I have a problem with snmp answers being empty or having spaces.
What I already have:
#get all interface indexes (if you wonder - I'm working for a cable company and different cablemodems have different number and types of interfaces):
The problem is the physical address which is sometimes empty and the description which has spaces. So I'm doing 2 snmpgets which is slower than 1 snmpget (sometimes I have up to 18 interfaces).
I'm trying to explain it a bit simpler.
Interface 5 gives me back the following lines:
Ethernet CPE Interface
Now the first line should go into variable ifadm, 2nd line should go into variable ifoper, 3rd line should go into variable ifspeed, 4th line should go into variable iftype, 5th line (which is empty) should go into variable ifphys and finally 6th line (which has spaces) should go into variable ifdescr
2 machines (one of them working as a server to monitor the network with IP 192.168.100.110 and the other one to be monitored with IP address 192.168.100.1):
In the first machine:
snmpwalk -v1 localhost -c public sysName (working fine) snmpwalk -v1 192.168.100.1 -c public sysName (don't works -> Timeout: No Response from 192.168.100.1)
In the monitored machine:
snmpwalk -v1 192.168.100.110 -c public sysName (it works) snmpwalk -v1 localhost -c public sysName (dont works -> Timeout: No Response from localhost)
I have a server that has snmp installed(Version is net-snmp-5.3.2.2-9.el5_5.1). This server has 5 n/w interfaces with diferent ip's. My problem is when i try snmpwalk on to the main interface, in my case "bond0" with the assigned ip address there is no response.
eg: snmpwalk v2c -c nature 172.17.241.190 No Response from 172.17.241.190 But when i run the same query with "localhost" snmpd responds. eg: snmpwalk v2c -c nature localhost
Just upgraded from UBUNTU to FEDORA 11. Installed most add on programs such as cacti & mysqld using YUM INSTALL. With help of 'scottro', I finally got cacti running, but still finding errors (most problems caused by different directory locations in this particular distro).
snmpwalk Binary Path The path to your snmpwalk binary. [ERROR: FILE NOT FOUND] snmpget Binary Path The path to your snmpget binary. [ERROR: FILE NOT FOUND] snmpbulkwalk Binary Path The path to your snmpbulkwalk binary. [ERROR: FILE NOT FOUND] snmpgetnext Binary Path The path to your snmpgetnext binary. [ERROR: FILE NOT FOUND]
Does anyone know where are these directories located in Fedora (11)? Is there a way to find where a directory is located (normally i use 'whereis' )? No such problems when using UBUNTU...
I use snmpv3, and experiencing problem in passwords containing special symbols like "!". For Ex.: snmpwalk -v 3 -a SHA -A xxxxxxx!xx -l authPriv -u user -x DES -X xxxxxxx <IP address/Name of device> -bash: !xx: event not found I also tried using "" before "!" in passwords for ex. xxxxxx!xx, but then I have failed authentication.
Fedora 12 live running from USB with persistence storage.My laptop has extra numeric key pad.But Fedora is not recognizing this keypad. Only number keys above the QWERTY working.---------- Post added at 04:55 PM CDT ---------- Previous post was at 08:16 AM CDT ----------Also, upon every restart my keyboard layout changes from UK to USA mode!
it just happened a few days ago. When i log in i pres ''Num lock'' and i type the password but after loging in the numeric keyboard won't work. I tried num lock several times but it doesn't work. It works in windows 7 so it's not a hardware problem. I hate using the number keys on the alphanumeric keyboard.
After changing the keyboard the numeric keys do not work using mandriva 2010.2. It works ok on windows xp and puppy linux. Under puppy linux the setting is pc 101. Mandriva the setting is Generic 105 key (intl) PC Have tried a few different options.
how do i ask in a query for any numeric or string field? It may not have any meaning, but i need it to fill a toplink DataReadQuery in java....Something like " select * from table where table.fieldA='?'
TO the sticky: My wireless doesn't work - a primer on what I should do next Section 2 b) I guess it would be easier for the user if she/he would just use one command instead of /sbin/lspci and than /sbin/lspci -n and compare both outputs to find the right section that inhales the hexadecimal numeric IDs for the wireless LAN/wireless/WLAN/bluetooth/..What do you (all and especially the sticky's author, dear Larry Finger) think of alternatives like:
i just got a new internet connection from the local service provider. While installation, he insisted that i use my mobile number as the wpa password for the wifi. From what Ive heard, this is company policy. Im a little skeptical about this as ive read wpa is crackable using a dictionary if the password is in there. So i looked around and found the air-crack suite to test the security for my access point. As my password is only numeric, i couldn't find only a numeric dictionary to use with air-crack.
So, i would like to create a dictionary that has only 10 digits, and the first two digit should be "05", because thats what mobile numbers here start from. I would be really grateful if anyone could point me to a way to do this easily.
it just happened a few days ago. When i log in i pres ''Num lock'' and i type the password but after loging in the numeric keyboard won't work. I tried num lock several times but it doesn't work. It works in windows 7 so it's not a hardware problem.when i press number keys it will actualy move the mouse (8-up,6-right 2-down etc.).
My ubuntu was working well for the past few months, and suddenly my numeric keypad wont work now. the num lock's light toggles, but there is no input on the screen while typing.
I'm using Ubuntu installed on a vmware virtual machine and everything worked find except accessing Shift-Insert (Shift-0 on the numeric pad) in VMware console window (Windows XP). I'm one of those who used to using Shift-Ins and Ctrl-Ins for clipboard and Insert is where 0 on the numeric pad (Num-Lock is off). With this configuration any Shift-Numeric keys give numbers (as if NumLock was on)
What I noticed:
- The problem is not present if I use TightVNC for Windows for remote access (works as expected) - The problem doesn't go out if I install open-vm-tools (installed with apt-get install --no-install-recommends open-vm-tools
- Vmware console works correctly if the system installed on a virtual machine is Windows
I would like to set my postfix to reject any numeric domains. I am seeing in my mail queue mail from domains like 2212.com, 263.com, 29.com and others. Because there is a variety of these, I don't want to track each of them and block them one by one. What do I need to put in my access file to reject any numeric domain? Is it possible to have a numeric wild-card reject in the access db?
I have tried rebuilding pygtk after installing Numpy and ended up making a mess of python. I have it back to functional now, but I would like to know how to properly add numeric python support. I suspect there is a proper order to building all of the python dependencies that yields success. Ultimately I am trying to run mypaint.
I have a problem with GDM, I'll explain: When system boot up and GDM show up, always need to press the NUM LOCK key for numeric keypad, for any reason this is disable always
On my Sony Vaio VPCF12M1E I have a small but irritating problem: Since yesterday the numeric pad on my keyboard doesn't work anymore. I can use the numbers at the top, but not on my numpad. This happened out of nowhere when I was just setting up an access point. No idea what I did wrong, cause I only configured a static IP Reboot, and numpad was gone. I tried restarting the laptop, I tried disabling and enabling Numlock over and over again. Nothing works.
I am running Ubuntu on an Acer 5742 laptop and running XP on Oracle Virtual box and plugged in externally (keyboard, mouse etc...) I have lost ability on both the laptop numeric keyboard (only the numeric keys) and the external keyboard when plugged in. This happened while I was working in Virtual box and running Windows XP.
When the laptop is on its own the numeric keyboard doesn't work (only numeric keys) either. I have toyed with the number lock and I have un-installed and re-installed both"keyboard input methods" and "input method switcher" within Ubuntu software centre to with no change. Not that I bought the damn computer for the numeric keyboard but it should work.
What is the quickest way, from the command line, to convert:Ip address --> Binary --> Base64I've been using an online calculator to do this, but I have need to script it now, so having it in a single command would be great.
I think read A1 A2 makes A1, A2 string variables. Then, when A2 gets the value 01, '01' should be a string. But for some reason bash takes it as numeric. I know there are no types in bash.