Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring How to get the Linux system information? Post 302455272 by Neo on Tuesday 21st of September 2010 08:00:16 AM
Old 09-21-2010
Quote:
Originally Posted by forumguest
Can you give the MIB files used for this?
Better if you use Google or some other search engine and search for the MIBs you need, don't you think?

Then, you can create a table of your required information and the name of the MIB and post back as a reference for others?

Thanks.

Hint: MIB Depot
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Please help me find out system information

I'm just getting started with unix and would like to know 1) how to tell how big the harddrive is 2) how to tell if there are multiple harddrive installed on the machine 3) a relitavely easy way to tell what programs are installed on the machine. I'm using Sun OS 5.6 Thanks (3 Replies)
Discussion started by: ViperD
3 Replies

2. UNIX for Dummies Questions & Answers

AIX System information

Hi All, I am new to Unix and am working on AIX ( rs6000 ). I am looking for the system info of the unix box like 1. Number of CPUs 2. CPU speed 3. RAM size Your help is much appreciated Thanks rao. (6 Replies)
Discussion started by: rao
6 Replies

3. HP-UX

System Information

How do I get the system information on a HP UNIX server. details like CPU speed, number of processors etc. (4 Replies)
Discussion started by: Olamide
4 Replies

4. Shell Programming and Scripting

system general information

hi I am new to this forum. hope to get help from u all. how can i write these by using shell programming? 1. The name of the machine and the date/time at which the report was produced. 2. Licensing information such as the operating system revision level and license restrictions in terms of... (1 Reply)
Discussion started by: nokia1100
1 Replies

5. UNIX for Advanced & Expert Users

Solaris and Linux system information.

Hey, I have a program that takes more time on a solaris machine than on a linux machine. So I guess the best way to know whats going on is to compare the two systems ? CPU and Memory ? Is there any other parameter that I should look at ? So on the linux box I ran: And on the Solaris: ... (6 Replies)
Discussion started by: the_learner
6 Replies

6. HP-UX

HP-UX system information

Hi, I'm writing a script to display a lot of information which describe a server (OS distrib, release, Hardware platform, CPU, HD, S/N...). For Linux side it is ok as you have almost all the information in /proc/cpuinfo, /proc/meminfo... and you can use dmidecode but for HP-UX I didn't find... (13 Replies)
Discussion started by: biker007fr
13 Replies

7. Solaris

How to get the Solaris system information?

Hi, How to get the Solaris system hardware and software basic information using terminal command with guest login? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS Configuration: ... (15 Replies)
Discussion started by: forumguest
15 Replies

8. BSD

How to get the FreeBsd system information?

Hi, How to get the FreeBsd system hardware and software basic information using terminal command with guest login? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS... (2 Replies)
Discussion started by: forumguest
2 Replies

9. AIX

AIX System Information

Hi all, I have googled around quite a bit and tried many different commands to get system information about my AIX 5.3 box but none of the commands I've used have given me quite what I'm looking for. I am interested in finding out the model of the motherboard, and amount of available RAM, the... (2 Replies)
Discussion started by: ThePistonDoctor
2 Replies

10. UNIX for Advanced & Expert Users

Linux Command To Find the System Configuration And Hardware Information

Hello guys. I wanted to find the System Configuration and Hardware Information on one of my servers. Here is part of the cpu info: CPU core info: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU... (2 Replies)
Discussion started by: Ymir
2 Replies
SNMP::MIB::Compiler(3pm)				User Contributed Perl Documentation				  SNMP::MIB::Compiler(3pm)

NAME
SNMP::MIB::Compiler - a MIB Compiler supporting SMIv1 and SMIv2 SYNOPSIS
use SNMP::MIB::Compiler; my $mib = new SNMP::MIB::Compiler; # search MIBs there... $mib->add_path('./mibs', '/foo/bar/mibs'); # possibly using these extensions... $mib->add_extension('', '.mib', '.my'); # store the compiled MIBs there.. $mib->repository('./out'); # only accept SMIv2 MIBs $mib->{'accept_smiv1'} = 0; $mib->{'accept_smiv2'} = 1; # no debug $mib->{'debug_lexer'} = 0; $mib->{'debug_recursive'} = 0; # store compiled MIBs into files $mib->{'make_dump'} = 1; # read compiled MIBs $mib->{'use_dump'} = 1; # follow IMPORTS clause while compiling $mib->{'do_imports'} = 1; # load a precompiled MIB $mib->load('SNMPv2-MIB'); # compile a new MIB $mib->compile('IF-MIB'); print $mib->resolve_oid('ifInOctets'), " "; print $mib->convert_oid('1.3.6.1.2.1.31.1.1.1.10'), " "; print $mib->tree('ifMIB'); DESCRIPTION
SNMP::MIB::Compiler is a MIB compiler that fully supports both SMI(v1) and SMIv2. This module can be use to compile MIBs (recursively or not) or load already compiled MIBs for later use. Some tasks can be performed by the resulting object such as : - resolution of object names into object identifiers (OIDs). e.g. ifInOctets => 1.3.6.1.2.1.2.2.1.10 - convertion of OIDs. e.g. 1.3.6.1.2.1.2.1 => iso.org.dod.internet.mgmt.mib-2.interfaces.ifNumber - drawing MIB trees. e.g. ifTestTable => ifTestTable | +-- --- ifTestEntry(1) | +-- -rw Integer ifTestId(1) +-- -rw Integer ifTestStatus(2) +-- -rw ObjectID ifTestType(3) +-- -r- Integer ifTestResult(4) +-- -r- ObjectID ifTestCode(5) +-- -rw String ifTestOwner(6) The MIB to be compiled requires no modification. Everything legal according to SMIs is accepted, including MACRO definitions (which are parsed but ignored). This module is shipped with the basic MIBs usually needed by IMPORTS clauses. A lot of IETF MIBs has been successfully tested as well as some private ones. Methods "new" "SNMP::MIB::Compiler::new()" class method To create a new MIB, send a new() message to the SNMP::MIB::Compiler class. For example: my $mib = new SNMP::MIB::Compiler; This will create an empty MIB ready to accept both SMIv1 and SMIv2 MIBs. A lot of attributes can be (des)activated to obtain a more or less strict and verbose compiler. The created object is returned. "add_path" "SNMP::MIB::Compiler::add_path(p1[,p2[,p3]])" object method Add one or more directories to the search path. This path is used to locate a MIB file when the 'compile' method is invoqued. The current list of paths is returned. Example: # search MIBs in the "mibs" directory (relative # to cwd) and in "/foo/bar/mibs" (absolute path) $mib->add_path('./mibs', '/foo/bar/mibs'); "add_extension" "SNMP::MIB::Compiler::add_extension(e1[,e2[,e3]])" object method Add one or more extensions to the extension list. These extensions are used to locate a MIB file when the 'compile' method is invo- qued. All extensions are tested for each directory specified by the add_path() method until one match. The current list of extensions is returned. Example: $mib->add_path('./mibs', '/foo/bar/mibs'); $mib->add_extension('', '.mib'); $mib->compile('FOO'); The order is "./mibs/FOO", "./mibs/FOO.mib", "/foo/bar/mibs/FOO" and "/foo/bar/mibs/FOO.mib". "repository" "SNMP::MIB::Compiler::repository([dir])" object method If 'dir' is defined, set the directory where compiled MIBs will be stored (using the compile() method) or loaded (using the load() method). The repository MUST be initialized before a MIB can be compiled or loaded. The current repository is returned. Example: $mib->repository('./out'); print "Current repository is ", $mib->repository, " "; "compile" "SNMP::MIB::Compiler::compile(mib)" object method Compile a MIB given its name. All information contained in this MIB is inserted into the current object and is stored into a file in the repository (see the 'make_dump' attribute). The choosen name is the same as the real MIB name (defined in the MIB itself). If a precompiled MIB already exists in the repository and is newer than the given file, it is used instead of a real compilation (see the 'use_dump' attribute). The compiler can be recursive if IMPORTS clauses are followed (see the 'do_imports' attribute) and in that case, uncompiled MIB names must be explict according to paths and extensions critaeria (see add_path() and add_extensions() methods). The current object is returned. "load" "SNMP::MIB::Compiler::load(mib)" object method Load a precompiled MIB given its name. All information contained in this MIB is inserted into the current object. The file is searched in the repository which MUST be initialized. In case of success, returns 1 else returns 0. Example: $mib->load('SNMPv2-SMI'); $mib->load('SNMPv2-MIB'); "resolve_oid" "SNMP::MIB::Compiler::resolve_oid(node)" object method Example: print $mib->resolve_oid('ifInOctets'), " "; "convert_oid" "SNMP::MIB::Compiler::convert_oid(oid)" object method Example: print $mib->convert_oid('1.3.6.1.2.1.31.1.1.1.10'), " "; "tree" "SNMP::MIB::Compiler::tree(node)" object method Example: print $mib->tree('ifMIB'); Attributes "do_imports" "accept_smiv1" "accept_smiv2" "allow_underscore" "allow_lowcase_hstrings" "allow_lowcase_bstrings" "make_dump" "dumpext" "use_dump" "debug_lexer" "debug_recursive" BUGS
Currently, it is more a TODO list than a bug list. - not enough documentation - not enough methods - not enough test scripts - find a better name for compiled MIBs than 'dump's.. even if they are no more than dumps. If your MIBs can't be compiled by this module, please, double check their syntax. If you really think that they are correct, send them to me including their "uncommon" dependencies. AUTHOR
Fabien Tassin (fta@oleane.net) COPYRIGHT
Copyright 1998, 1999, Fabien Tassin. All rights reserved. It may be used and modified freely, but I do request that this copyright notice remain attached to the file. You may modify this module as you wish, but if you redistribute a modified version, please attach a note list- ing the modifications you have made. perl v5.8.8 2002-02-21 SNMP::MIB::Compiler(3pm)
All times are GMT -4. The time now is 10:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy