netSnmp question


 
Thread Tools Search this Thread
Special Forums IP Networking netSnmp question
# 1  
Old 07-28-2008
netSnmp question

Hello all, I have a question about NetSnmp "http://net-snmp.sourceforge.net/" I wanna configure my NetSnmp that when i get information by snmpget|walk from snmpagent from specific OID, netsnmp will execute configured command and will return me command output with string .... For example: I do get from oid that i configured and netsnmp see that i get this oid and run command "for example "echo 1" and return me command output in string with snmpget... Thanks , and sorry about my English
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

including netsnmp with rc scripts

Hi Admins, I have configured net-snmp with my aix 5.3 server. how to add the same in rc scripts,so that net-snmp will start automatically post server reboot. As per now , i have to start snmp manually after server reboot. Thanks in advance newaix (0 Replies)
Discussion started by: newaix
0 Replies

2. Shell Programming and Scripting

wc question

I am new to unix. how to get only the no. of lines output from the wc -l command. Input: wc -l filename it gives <no.of lines> filename i need only the interger value. as <no.of lines> Thanks in advance (2 Replies)
Discussion started by: sanvel
2 Replies

3. Solaris

netsnmp on solaris8 sparc

hello, I installed netsnmp 5.6 on solaris 8 (sparc). now I want to have cpu, memory and disk used, for this when i execute: snmpwalk -v1 -c public localhost memory it displays me: End of mib please tel me how to do, to have this information (cpu, memory and disk used). thank you (0 Replies)
Discussion started by: lamou23
0 Replies

4. Infrastructure Monitoring

Solaris 9 netsnmp-5.4.2.1 and WUG.

Hi, I have set up netsnmp-5.4.2.1 as below on a Solaris 9 SPARC server, but it is still not working with What's Up Gold. gzip -dc /mnt/sysinstall/Net-SNMP/libgcc-3.4.6-sol9-sparc-local.gz > libgcc-3.4.6-sol9-sparc-local pkgadd -d libgcc-3.4.6-sol9-sparc-local gzip -dc... (0 Replies)
Discussion started by: sparcman
0 Replies

5. Infrastructure Monitoring

compiling netsnmp on solaris 8

Hello all Currently I am trying to install net-snmp-5.5 on a V480 Solaris 8 machine however things are hardly going smooth. I'm running configure will the following options. ./configure --prefix=/usr/local --with-mib-modules="smux ucd-snmp/diskio ucd-snmp/lmSensors host"... (2 Replies)
Discussion started by: krabu
2 Replies

6. UNIX Desktop Questions & Answers

Please Help me out with this question

. Make a new copy of mars.txt called marsx. What happens if you give the following commands when the files bio and marsx both already exist? Don't guess, try it! a) cp bio marsx b) mv bio marsx (2 Replies)
Discussion started by: rohit.katpalli
2 Replies

7. UNIX for Dummies Questions & Answers

Question

I was given a computer that has been wiped clean and has never had windows installed how do I format the hardrive so I can install windows XP (3 Replies)
Discussion started by: gemini61
3 Replies

8. Programming

Question !

Hi a am writing a C Programe on Vi Editor (File Handelling),and i am compiling it using fcc but it not compiling ,Even Vi not saving my file.Tell me how can i do that.One More Thing I want to know that ,Is their any subsitute of conio.h. (3 Replies)
Discussion started by: at_renai2001
3 Replies
Login or Register to Ask a Question
OID(3)							User Contributed Perl Documentation						    OID(3)

NAME
NetSNMP::OID - Perl extension for manipulating OIDs SYNOPSIS
use NetSNMP::OID; my $oid = new NetSNMP::OID('sysContact.0'); if ($oid < new NetSNMP::OID('ifTable')) { do_something(); } my @numarray = $oid->to_array(); # appending oids $oid = new NetSNMP::OID('.1.3'); $oid += ".6.1"; # -> .1.3.6.1 # appending index strings $oid2 = $oid + ""wes""; # -> .1.3.6.1.3.119.101.115 $oid3 = $oid + "'wes'"; # -> .1.3.6.1.119.101.115 $len = $oid3->length(); # -> 7 # retrieving indexes from an oid: $arrayref = $tableoid->get_indexes() DESCRIPTION
The NetSNMP::OID module is a simple wrapper around a C-based net-snmp oid (which is an array of unsigned integers). The OID is internally stored as a C array of integers for speed purposes when doing comparisons, etc. The standard logical expression operators (<, >, ==, ...) are overloaded such that lexographical comparisons may be done with them. The + operator is overloaded to allow you to append stuff on to the end of a OID, like index segments of a table, for example. EXPORT int snmp_oid_compare(oid1, oid2) int compare(oid1, oid2) AUTHOR
Wes Hardaker, <hardaker@users.sourceforge.net> SEE ALSO
SNMP, perl. Copyright Copyright (c) 2002 Networks Associates Technology, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2012-10-09 OID(3)