Sponsored Content
Top Forums Shell Programming and Scripting Help it works but its to SLOW Post 302179069 by Garlandxj on Thursday 27th of March 2008 12:09:45 AM
Old 03-27-2008
Thanks for the response

I will look into your suggestions. I am sure my "style" Issues will improve with use. SNMP is a large monster in itself. The ping is one of the bottle necks but the information being requested via snmp is another. Each device in the list takes 15 to 30 seconds to process. Taking the larger number that is about 350 minutes to process all devices. I was hoping there is a way to process say 10 devices at once. This may be too advanced for a shell script. My only experience at programming is from Turbo Pascal 15 years ago in high school, so I am a bit out of date.

Thank you again for all your help. So over all its not a completely horrific example of a script? LOL
 

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
SNMP-UPS(8)							    NUT Manual							       SNMP-UPS(8)

NAME
snmp-ups - Multi-MIB Driver for SNMP UPS equipment NOTE
This man page only documents the hardware-specific features of the snmp-ups driver. For information about the core driver, see nutupsdrv(8). SUPPORTED HARDWARE
The snmp-ups driver automatically detects and supports a wide range of devices by loading various MIBS: ietf:: UPS that is RFC 1628 (UPS MIB) compliant, e.g. MGE UPS SYSTEMS, Liebert, perhaps others (default) mge MGE UPS SYSTEMS and MGE Office Protection Systems devices with SNMP cards (ref 66062, 66045, 66074 and 66244) apcc APC AP9605, AP9606, AP9617, and AP9618 APC network management cards, as well as any others supporting the APC POWERNET MIB netvision Socomec Sicon UPS with Netvision Web/SNMP management card/external box pw Powerware devices with ConnectUPS SNMP cards aphel_genesisII Eaton Powerware ePDU Monitored aphel_revelation Eaton Powerware ePDU Managed raritan Various Raritan PDUs baytech Various BayTech PDUs cpqpower HP/Compaq AF401A management card, perhaps others cyberpower Cyberpower RMCARD201. Should also support RMCARD100 (net version), RMCARD202 and RMCARD301 EXTRA ARGUMENTS
This driver supports the following optional settings in the ups.conf(5): mibs=name Set MIB compliance (default=auto, allowed entries: refer to the above SUPPORTED HARDWARE). With "auto", the driver will try a select set of SNMP objects until it finds one that the device responds to. community=name Set community name (default = public). Note that you require a RW community name to change UPS settings (as for a powerdown). snmp_version=version Set SNMP version (default = v1, the other allowed value is v2c) pollfreq=value Set polling frequency in seconds, to reduce network flow (default=30) notransferoids Disable the monitoring of the low and high voltage transfer OIDs in the hardware. This will remove input.transfer.low and input.transfer.high from the list of variables. This should only be used on APCC Symmetra equipment which has strangeness in the three-phase power reporting. secLevel=value Set the securityLevel used for SNMPv3 messages (default=noAuthNoPriv, allowed: authNoPriv,authPriv) secName=value Set the securityName used for authenticated SNMPv3 messages (no default) authPassword=value Set the authentication pass phrase used for authenticated SNMPv3 messages (no default) privPassword=value Set the privacy pass phrase used for encrypted SNMPv3 messages (no default) authProtocol=value Set the authentication protocol (MD5 or SHA) used for authenticated SNMPv3 messages (default=MD5) privProtocol=value Set the privacy protocol (DES or AES) used for encrypted SNMPv3 messages (default=DES) REQUIREMENTS
You will need to install the Net-SNMP package from http://www.net-snmp.org/ before building this driver. SNMP v3 also requires OpenSSL support from http://www.openssl.org. LIMITATION
Shutdown This driver does not provide a proper upsdrv_shutdown() function. There probably never will be one, since at the time this script should run (near the end of the system halt script), there will be no network capabilities anymore. Probably the only way to shutdown an SNMP UPS is by sending it a shutdown with delay command through upscmd(8) and hope for the best that the system will have finished shutting down before the power is cut. INSTALLATION
This driver is only built if the Net-SNMP development files are present on the system. You can also force it to be built by using "configure --with-snmp=yes" before calling make. IMPLEMENTATION
The hostname of the UPS is specified with the "port" value in ups.conf, i.e.: [snmpv1] driver = snmp-ups port = snmp-ups.example.com community = public snmp_version = v1 mibs = ietf pollfreq = 15 desc = "Example SNMP v1 device" [snmpv3] driver = snmp-ups port = 166.99.224.132 mibs = mge secLevel = authPriv secName = mysecurityname authPassword = myauthenticationpassphrase privPassword = myprivatepassphrase desc = "Example SNMP v3 device, with the highest security level" AUTHORS
Arnaud Quette, Dmitry Frolov Sponsored by Eaton http://www.eaton.com and originally by MGE UPS SYSTEMS http://www.mgeups.com/ SEE ALSO
The core driver: nutupsdrv(8) NUT SNMP Protocols Library Available at: http://www.networkupstools.org/protocols/snmp/ Internet resources: The NUT (Network UPS Tools) home page: http://www.networkupstools.org/ Network UPS Tools 05/21/2012 SNMP-UPS(8)
All times are GMT -4. The time now is 02:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy