Sponsored Content
Top Forums Shell Programming and Scripting Help it works but its to SLOW Post 302179197 by sysgate on Thursday 27th of March 2008 08:00:15 AM
Old 03-27-2008
Garlandxj, your script is pretty decent, besides the minor issues noted by "era".
The duration of the whole operation is probably, as you said, because you are collecting data from 700+ devices.
You also said that you don't have access to perl on the box - if you are granted with such, in the future, you might consider Perl:SNMP module, this could speed up the things a little bit, but not too much, since you are dependеnt on SNMP binary itself.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

slow ftp

On one of of solaris 7 boxes whenever i telnet or ftp it takes sometime before i get the prompt...any quick ideas where I should look...Thanks (3 Replies)
Discussion started by: suntan
3 Replies

2. Post Here to Contact Site Administrators and Moderators

Slow

The site has gone slow for quite some time... Can you do somethin abt it (2 Replies)
Discussion started by: DPAI
2 Replies

3. SCO

Slow cd response

Hi All We have one SCO Server here and it never gives us any trouble. Until Now!! Well its not earth shattering but we have one user who is complaining of a very slow response time when changing to his Home Directory. Other users who have similar profiles are OK. I have su'd to this user and I can... (0 Replies)
Discussion started by: JohnOB
0 Replies

4. UNIX for Dummies Questions & Answers

scp is slow

All of the sudden scp got really slow ... from 2-3 seconds to 30 seconds. This happened for 5 hours, and then it went back to running fast. Why? If I use the -q qualifier which "Disables the progress meter" could this have any adverse effect? Thanks (1 Reply)
Discussion started by: tomstone_98
1 Replies

5. UNIX for Dummies Questions & Answers

How ls | wc -l works?

ls displays files in tabbed output. Say a directory contains 3 files. ls will list all 3 in one line. So, I expect ls | wc -l to give 1, but it counts the nr of files and gives 3. Can someone explain how this works? (3 Replies)
Discussion started by: krishmaths
3 Replies

6. Programming

how this works?

pls explain me how this works.... DECODE (SUBSTR (field, 1, 1),'''', '''''' || field || '''','''' || field || '''') here field is a column in an oracle table.... (7 Replies)
Discussion started by: vijay_0209
7 Replies

7. UNIX for Dummies Questions & Answers

>./a.pl works, >a.pl - does not

When I try to execute script, I get message: >aa.pl zsh: command not found: aa.pl but >./aa.pl works OK. What to change in environment to force the former way to work? Thank you, Alex Z (4 Replies)
Discussion started by: zzol
4 Replies

8. UNIX for Advanced & Expert Users

How this works?

I have a program............ #include<stdio.h> #include<unistd.h> main() { if(fork == 0) { printf("Hi every body:p!!!!!!!!!!"); } } This program works with out any error. here fork is not a system call. It just act as a variable.But how it works without declaring it? What data type it... (19 Replies)
Discussion started by: carolsanjeevi
19 Replies
Info::Layer3::NetSNMP(3pm)				User Contributed Perl Documentation				Info::Layer3::NetSNMP(3pm)

NAME
SNMP::Info::Layer3::NetSNMP - SNMP Interface to L3 Net-SNMP Devices AUTHORS
Bradley Baetz and Bill Fenner SYNOPSIS
# Let SNMP::Info determine the correct subclass for you. my $netsnmp = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myrouter', Community => 'public', Version => 2 ) or die "Can't connect to DestHost. "; my $class = $netsnmp->class(); print "SNMP::Info determined this device to fall under subclass : $class "; DESCRIPTION
Subclass for Generic Net-SNMP devices Inherited Classes SNMP::Info::Layer3 Required MIBs UCD-SNMP-MIB NET-SNMP-TC HOST-RESOURCES-MIB Inherited Classes' MIBs See SNMP::Info::Layer3 for its own MIB requirements. GLOBALS
These are methods that return scalar value from SNMP $netsnmp->vendor() Returns 'Net-SNMP'. $netsnmp->os() Returns the OS extracted from "sysDescr". $netsnmp->os_ver() Returns the software version extracted from "sysDescr", along with the Net-SNMP version. $netsnmp->uptime() Returns the system uptime instead of the agent uptime. NOTE: discontinuity timers and other Time Stamp based objects are based on agent uptime, so use orig_uptime(). $netsnmp->serial() Returns ''. Globals imported from SNMP::Info::Layer3 See documentation in SNMP::Info::Layer3 for details. TABLE ENTRIES
These are methods that return tables of information in the form of a reference to a hash. Overrides $netsnmp->i_ignore() Returns reference to hash. Increments value of IID if port is to be ignored. Ignores loopback Table Methods imported from SNMP::Info::Layer3 See documentation in SNMP::Info::Layer3 for details. NOTES
In order to cause SNMP::Info to classify your device into this class, it may be necessary to put a configuration line into your snmpd.conf similar to sysobjectid .1.3.6.1.4.1.8072.3.2.N where N is the object ID for your OS from the "NET-SNMP-TC" MIB (or 255 if not listed). Some Net-SNMP installations default to an incorrect return value for "system.sysObjectId". In order to recognize a Net-SNMP device as Layer3, it may be necessary to put a configuration line similar to sysservices 76 in your snmpd.conf. perl v5.12.4 2011-09-28 Info::Layer3::NetSNMP(3pm)
All times are GMT -4. The time now is 12:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy