i wanna know how can i create a new customize MIB file ?
i wanna create a MIB file and use it in LINUX that with this mib i wanna monitor an application
please help me
thanks
MIB files are created in a simple text editor (following the rules for SMIv2). Then you'll need to turn it into code, modify the code to suit your data, compile it into an agent and run the agent. Then you can use a management application to request the data from the agent.
Net-SNMP is the most popular linux stack for linux, so you might start with it's tutorials at http://www.net-snmp.org/tutorial/
Related
I'm just starting to learn Inspec. I'm wondering to know is there any resources for check installed the driver(e.x virtio-win) or kernel in windows?
or is that possible to looking in one directory and say that test.sys exists?
Check the docs. What you see is what you get. I have no idea how to query a running a Windows kernel for which modules are loaded but if you know how to do that you can probably use a command resource. Otherwise just check for files like normal.
I found that there are no resources for windows kernel. So, I just used driverquery to check the drivers.
I am writing a small apllication that will tell list of attached devices to my linux laptop.There is one utility that is udev that can be used for hot plugging but is their some other way where i can write simple c program where it will tell that these devices are attached to your laptop.or it will pop up message when new devices will be attached and removed.please provide some basic stuff so that i can start my project.thanx in advance.
As far as I can see, there are two parts to your question. I will answer them separately.
Get a list of current devices
Your source of information would be /sys/ and proc and their sub directories. You can get most information by simply reading the appropriate file from here. For example, trying running utilities such as lsusb using strace and see what files they access - you will see it reads /sys/devices. Also look at lshw and it's source code.
Notification of hardware events
This is where udev comes in. Here are couple of articles I came across they may be helpful:
http://www.signal11.us/oss/udev/
http://www.reactivated.net/writing_udev_rules.html
I try to read and write the MAC white-list of a wireless Hotspot.
I try to be able to configure such a wireless access point (and multiple devices) with a command line or a batch file without logging into the web interface of every single hotspot.
I am writing my tool in Java using SNMP4J.
My testing device is a Funkwerk bintec w2002 (Teldata GmbH).
Does anyone know where I can get the OID of the MAC white-list.
You'll need to find the appropriate MIB file(s) for the hotspot. The MIB files specify which objects can be polled, and what their OIDs are. If the vendor publishes the MIB files on their web site, you're in luck. Otherwise, try the customer support.
If you can't find the MIB files, you can try doing an SNMP walk of the hotspot. That will give you all the data, but you won't know what the OIDs mean (unless it's a standard MIB which you or your tools are familiar with). Anyway, a MAC address is pretty distinctive so you should be able to spot it.
A suitable command-line tool for doing the SNMP walk would be the net-snmp cli suite, with the "snmpwalk" command. Their web site (http://www.net-snmp.org/) can also give you some prods in the right direction when it comes to a system administrator's use of SNMP.
If you're really lucky, the MIB objects are writable so you could set them using the snmpset command.
Im development an app for OSX that will check the status of a MAC. I would like check:
Memory in Hard Drive
Memory Ram
OS System...
Does anyone know how I can access these parameters?
Thanks for all!
Best Regards.
Apple's already written that app. It's called System Information.
There is a command-line version of the app, called system_profiler. You can make it print out the information in XML for easy parsing.
The simplest way to get lots of information about the Mac programmatically is by running system_profiler as a child process and parsing its output. You will want to look at using NSTask and NSXMLParser.
I need to create an ELF image file from shared objects (.so files) and write it to another partition in Windows. Then open this partition in Linux and load the shared objects.
Does anybody know how to create an ELF image (a bundle of many shared objects) in Windows?
You can use Cygwin and try a suitable GCC cross-toolchain. Perhaps you'll have to build it yourself first (which is troublesome), but there it goes...
EDIT:
Okay, here you are:
A simplified one:
Building GCC cross compiler (from "Linux" to "Windows") -- the basic steps are the same as described there. You'll just need to ./configure it with relevant --host=... and --target=.... And oh! Don't forget to set the build root, since building "in the source tree" is not supported -- you'll just get stuck in errors if you try (I did...)
A killer one:
http://cygwin.wikia.com/wiki/How_to_install_a_newer_version_of_GCC#Build_and_Install_GCC -- a complete guide.
Nowadays Linux understands NTFS. At least, it should be able to read off it.
You can also use a flash stick formatted as FAT32 or NTFS as the shared storage.
You can also run Linux in a VM and set up FTP server on it and exchange files through it.
There're many ways of sharing data between different OSes.