Networking :: Detect SNMP Object Identifiers Of A Device?
May 30, 2011
I have a pair of special radio-devices which support SNMP, but the problem is, that if I snmpwalk those devices, I only see few generic values(sysContact, sysDescr, sysServices etc) and nothing else. Most likely I need MIB files so NMS could know what values can be asked from the radio devices? If yes, is there a possibility to get all the OID's device supports without MIB files as those devices have been out or production for years?
In both CentOS 5.5 and FreeBSD 7.4 when I use Code: snmpget -v 1 -c public windows_host system.sysDescr.0 I get the remote windows machine system description just fine. But not in ubuntu. Searching snmp-net FAQ for the erroe message "Unknown Object Identifier", I got this to work around Code: snmpget -v 1 -c public 127.0.0.1 SNMPv2-MIB::system.sysDescr.0 But it not worked either.. Searching "MIB" using apt-file search, I installed "snmp-mibs-downloader", and now Code: snmpget -v 1 -c public 127.0.0.1 SNMPv2-MIB::system.sysDescr.0 works.. but Code: snmpget -v 1 -c public windows_host system.sysDescr.0 still breaks.. Why it works in CentOS and FreeBSD but not in Ubuntu?
I am currently using fedora 11 kernel 2.6.29 version, i wanted to write device driver for usb to detect my own device. My project is radio with computer. My fm radio get connected to usb port so i need to write h/w interfacing program.
I am attaching a LTO-3 tape drivce into my RHEL5 linux machine. Every time i used to restart my machine to detect the tape drive is there any way to rescan the buses to detect the newly attached scsi devices. In solaris "devfsadm" and "iostat" is there. I need the same kind of thing in linux.
So I bought an eMachine e250 from a friend of mine, and installed Backtrack on it. That worked fine, until I realised that I didn't like KDE, and decided to get the gnome-based Gnacktrack (based on Ubuntu 10.10, so I'm fairly sure they work the same). I also have a harddrive from an old laptop that I've scrapped with Ubuntu 10.4 that I run in the laptop, and fpr some bizzare reason, neither operating system is able to detect the wireless card. It worked fine with Backtrack (based on Noppix I believe), and I'm curious as to why the wireless card hates Ubuntu so much. I know that it's unable to detect the wireless card because on start-up it says "Unable to detect WMID device". I even added the wireless card from my scrapped laptop to the laptop, and that NIC was detected just fine. (though I can't use it because the antenna won't reach the slot for the secondary NIC)
I've been using the PPA version of banshee, and I got this error - just wondering if anyone else has it too! I'm able to play a song, but when the song finishes and the next one starts I get this error: Banshee Encountered a Fatal Error Object reference not sent to an instance of an object Error details:
Code: An unhandled exception was thrown: Object reference not set to an instance of an object at Hyena.Gui.Theming.GtkTheme.GetCairoTextMidColor (Gtk.Widget) <0x00017> at Banshee.NotificationArea.NotificationAreaService.get_TextLightColor () <0x0002f> at Banshee.NotificationArea.NotificationAreaService.MarkupFormat (string,string) <0x00043> at Banshee.NotificationArea.NotificationAreaService.GetByFrom (string,string,string,string) <0x000d7>
I'm using debian lenny, I bought a new Hp officejet j4500 scanner but the xsane is unable to detect the scanner. It says device not found. If I run xsane as root it detects and works properly it is obvious.I have added the user to scanner,saned and also to root user group.
I have a FireWire camera LifeSize connected to my PC in the FireWire interface. My PC has miniPCI slot and with external converter its having a FireWire interface. Now its Ubuntu who is not showing me anything at all when i try:
$ uname -a Linux desktop 2.6.38-11-generic-pae #48-Ubuntu SMP Fri Jul 29 20:51:21 UTC 2011 i686 i686 i386 GNU/Linux
How one could determine (for use in a Bash or Python script) which device (eg /dev/sda1, /dev/hda1... etc) a ramfs was loaded from when booting from a USB drive.
I have a RIPLinux/Tinycore live USB disk that automatically needs to run a script that is stored on the same USB drive but not part of the RIPLinux/Tinycore image. (Please note that I do not want to put this script into the RIPLinux image.) I therefore would like to remix the RIPLinux/Tinycore ISO to automatically run this script once it has started up. After RIP linux has booted I would like to automatically mount the USB drive that RIPLinux/Tinycore was booted from. I need help detecting which device this is.
I have installed Net-SNMP.It is binded to port udp 161I start it with the command: snmpd -Lo when I do snmpget -v 1 -c public localhost system.sysObjectID.0on the same machine the snmpd is running on- I get a respond SNMPv2-MIB::sysObjectID.0 = OID: ccitt.1when I send same request from another machine (using SNMPc program) - I see no reaction.I used "wireshark" to monitor packets, and I see the requests sent from the other machine. I also see them get to the first machine.
Only ones I can think of seem overly complex, and I'm sure there is a simple solution I am overlooking. I have a class, it has a member who is an object. This object needs to be able to represent an object of different types.
Where "surface" could be several different types, which will be set during execution. Hope this is clear enough. I have tried using templates but am getting "data member cannot be a member template". Either I have incorrect syntax, or am not implementing it right. another solution would have one class containing definitions of all possible shapes, But this would take up extra memory. Other solutions I thought of seem too round-about, and seems there is a simpler solution that I have overlooked.
I'm trying to get SNMP setup so I can send custom snmp trap messages. I followed this "How to" [URL] and I think I have it setup and working. This is my fist time messing around with SNMP, and I don't know where to check to see if I received the trap message. Do the snmp trap message even get logged any where?
I have recently set up nagios on a ubuntu server (9.10), and set it up to monitor all the servers, switches etc, following the quickstart guide provided on the nagios website.My problem is this:I have setup the nagios-plugins, and tried to set it up to monitor the network switches via SNMP but receive the following within the nagios web interface:SNMP problem - No data received from host I tried it from the command line, and got the exact same error.Is there some further configuration I need to do to be able to get this data?I've used up all my google-fu, and read over everyone else's problems on every forum I could find, but to no avail.
I have an issue when sending snmp traps. I have an embedded system connected to a SNMP manager. I am sending traps from the box to the manager continuosly. After sometime I don't see any trpas coming out. I get this error message.
Cannot open file /proc/net/tcp ... : Too many open files Cannot open file /proc/net/snmp ... : Too many open files
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP. SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB. SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching. SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
I am facing issues on few machines but rest all are ok. They have the same config but I don't know what is wrong. I tried as much as I could but couldn't fix it. Here is the rpms installed on this client
The same config is working for all clients but have problems with few machines. May be I am doing something wrong in config or testing at very basic level.
From there i can "poll" my system. But what should i do if i want my Linux system sending traps when disks are full or system overloaded etc...I have found information on Internet but not easily understandable It is for v3:
rwuser admin createUser admin MD5 mypasword # # From there i would have to comment the lines regarding the communities #
10.5.32.202 is my management host ... is this config ok ? But it seems that trap2sink is for v2 ? How does it work ?
I am trying to monitor a Centos 5.3 box using SNMP and I am having a lot of trouble getting the data that i need from it. Everytime I try to get information from the UCD-SNMP MIB it returns "End of MIB". It is my understanding that UCD-SNMP is a standard package when Net-SNMP is installed and should always be there. Then why can't I access it? I have tried removing the reinstalling Net-SNMP, but that hasn't worked. My server is update date on all it's patches as well. It is quite old hardware, but I don't believe that should affect SNMP from being gathered. Iptables is down, and I cant' even get it from the local machine.
Can any one tell me a network monitoring tool which can monitor remote connectivity and generate a comprehensive report about the link state like up/down, error timings, increase in latency and packet loss rate.
I'm curious as to what defines the SNMP trap info sent by switches? I would like to get updates on 802.1x authentication and state of switches (all manufacturers if possible). Is the data sent via traps determined by the manufacturer or is it possible to modify/select it from the switch MIB?
When I run the following GET commad: ./snmpget -m ALL -M /data/net/naamab/snmp/snmp_mib/ -v 3 -a MD5 -l authPriv -u test1 -A welcome1 -x DES -X privpass 127.0.0.1 NOVELSAT-MODULATOR-MIB::nsModLineCMMode.0 -d
I get the error: Encryption support not enabled. snmpget: USM encryption error
I have defined a user (and user, view and access) that should work with encryption: snmpd.conf: createUser test1 MD5 welcome1 DES privpass group debugGroup usm test1 view debugView included .1 access debugGroup "" usm priv exact debugView debugView none
General details: I am using net-snmp on linux embedded version 5.5 Configuration (part of it): ./configure --target=mips64-octeon-linux-gnu --build=mips64-octeon-linux-gnu --host=i686-pc-linux-gnu
i was trying mrtg, but when the light go off the graphics get distorted. Trying to adjust the conf files i get nothing than trying rrdtool but i keep having the same problems. So i was thinking to use php, i got working php snmp walk function but i am looking the way to get the bandwidth or usage of the device from snmp or any snmp function but still now i keep searching. Once done this stages i would be able to save the data into an array and the plot it into a graph and personalize the max and min values for avoiding distorted graphs.