Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring OID to disable/enable printing Post 302696713 by jim mcnamara on Wednesday 5th of September 2012 10:28:58 AM
Old 09-05-2012
I do not know of one. But this is a good repository:

Free Printer-MIB SNMP MIB Download - Free MIB Download - Search MIBs - OiDViEW

See what you cobble together - I think you have some C mib coding in your future.
 

10 More Discussions You Might Find Interesting

1. Linux

Enable and disable ttyS0

I have a modem connect it to ttyS0 , in unix sco i know i can disable and enable the port , how can i do this , is there a command that will allow me to do this. **** I'm running Redhat 9 *****External Usrobotics 56k Thanks a lot guys (1 Reply)
Discussion started by: josramon
1 Replies

2. Solaris

Enable/Disable rlogin and rcopy

How can i disable rlogin or rcopy from being running as a services in my system ? is there a way ? and is it gonna affect other remote services like ssh and telnet ? (3 Replies)
Discussion started by: XP_2600
3 Replies

3. UNIX for Advanced & Expert Users

Disable and Enable Backspace or Ctrl^H in vi

Could anybody tell me how I can disable or enable the backspace key in vi editor. I would like to feel the essence of the commands of vi editor but as I have the latest version and it is supporting the backspace key. I do it on promp using the command stty erase - This command stops the... (5 Replies)
Discussion started by: mobile01
5 Replies

4. Shell Programming and Scripting

Enable & disable cronjob

Hi All, I am new to cronjob and need some guidance on this. 1) How do i enable a cronjob ? Can it be done by "crontab mycronfile" or "crontab -e mycronfile" 2) How can i disable the cronjob? Can deleting of the "mycronfile" disable the cron or do i need to perform "crontab -r mycronfile"... (7 Replies)
Discussion started by: Raynon
7 Replies

5. Cybersecurity

How to disable RIP and enable EGP

Hello, We recently had a Nessus scan done of our system and the solution to one of the findings was this: disable the RIP agent and use an EGP routing protocol I have been unable to find any specific instruction on how to do either. We are running Solaris 8. Any help would be greatly... (3 Replies)
Discussion started by: stringman
3 Replies

6. Solaris

SSH enable, Telnet disable ...

Hi... How do I enable SSH and disable telnet.. Also - is there anything special I need to do to ensure that a new user can use ssh and su but not telnet? Adel (15 Replies)
Discussion started by: ArabOracle.com
15 Replies

7. Shell Programming and Scripting

How to disable Enable/Disable Tab Key

Hi All, I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:( Thanks, Rico (1 Reply)
Discussion started by: carnegiex
1 Replies

8. UNIX for Dummies Questions & Answers

crontab: disable/enable

since i don't have root access, i have been doing: crontab -l > /tmp/username.crontab crontab -r vi /tmp/username.crontab and copy page crontab -e, and paste sometimes, /tmp/username.crontab has more than 1 page, so i have to copy twice. how do i copy all contents from... (2 Replies)
Discussion started by: tjmannonline
2 Replies

9. UNIX for Dummies Questions & Answers

Enable and disable the auto mount

How to enable and disable the auto mount option for USB devices.? (3 Replies)
Discussion started by: ungalnanban
3 Replies

10. HP-UX

FTP service Enable/Disable

hi everybody, I can easily enable /disable the FTP service from SAM, how can I do this via command line? using inetd? how? cheers, messi (1 Reply)
Discussion started by: messi777
1 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 09:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy