03-20-2005
You have to learn some how
That's fine, thats the whole point of community.
10 More Discussions You Might Find Interesting
1. HP-UX
My max user parm is set to 1050. I'm currently at 1038 this is causing major slow downs on the server. I looking for a way log off "idle" user logins with out having to do it individually. :confused: (5 Replies)
Discussion started by: rfmurphy_6
5 Replies
2. UNIX for Dummies Questions & Answers
I have the root password for my box, but I'm ignorant.
So, every time I start my computer, I have to run this command
/sbin/modprobe fuse
as su, so that I can do other stuff (like mount remote directories locally using sshfs)
I guess there's some file, like .bashrc, only it's applicable... (4 Replies)
Discussion started by: tphyahoo
4 Replies
3. Shell Programming and Scripting
Hi there,
I wrote a script that scans a folder for new files.
I don't want to run it at specific times but only when the computer is NOT busy.
I tried to use nice but it doesn't really work. I mean, even if my process has less priority, it still slows down the other processes. I did a test... (3 Replies)
Discussion started by: chebarbudo
3 Replies
4. AIX
Dear Friends ,
I am using DB2 database in AIX 5.3 server . In my server some IDLE process are generated after several times which I need to kill it manually each and every time .
The process I query like following :
root@bagpuss $ ps auxw|sort -r +3|head -10
USER PID %CPU %MEM ... (3 Replies)
Discussion started by: shipon_97
3 Replies
5. Shell Programming and Scripting
Hi
I want to put a timer or whatever it could be ,a similar to sleep which will make the script to wait before executing it self
like
#!/bin/bash
sleep 30 #or another comand which will wait 30 s. and than proceed with code but that timer should not freeze the OS .
shell code
... (5 Replies)
Discussion started by: brain!ac
5 Replies
6. UNIX for Advanced & Expert Users
Hi Everybody,
Can anybody explain how CPU idle% is about 50%, but runq-sz more than 1?
sar from Solaris 10:
00:00:05 %usr %sys %wio %idle
17:00:08 27 12 0 61
17:20:05 40 15 0 45
17:40:05 27 12 0 61
18:00:05 23... (2 Replies)
Discussion started by: sant
2 Replies
7. Shell Programming and Scripting
Hi,
I need a script that can automatically kill all processes named "webrepn" and "webrebw" if idle for more than 30 minutes.
Then I will have a Cron Job to run the script every night or 2-3 times a day depends on how this script helps.
Right now, I run "ps -ef | grep webrebn" and "kill -9... (7 Replies)
Discussion started by: MaggieL
7 Replies
8. Windows & DOS: Issues & Discussions
I am looking to run a Windows utility BitRecover PST Viewer.
To help me read a pst file. Can anybody guide me how can I run this Windows utility on Linux. (3 Replies)
Discussion started by: marktux
3 Replies
9. Shell Programming and Scripting
I use this as a startup program.
Is there a way that it could run when my computer returns from a sleep state?
Cpu_LogFile="/home/andy/bin/CPU_Fan_Info.txt" date +"%Y-%m-%d-%H:%M:%S" >> $Cpu_LogFile sensors -f | grep "temp4" >> $Cpu_LogFile sensors -f | grep "fan1" >> $Cpu_LogFile (5 Replies)
Discussion started by: drew77
5 Replies
10. Shell Programming and Scripting
I would like to run a command if my computer is idle.
I found this, but is not quite working.
#!/bin/sh
idletime=$(xprintidle)
threshold=300000 # 5 min = 5 * 60 * 1000 ms
if ; then
echo "idle for 5 minutes."
fi (4 Replies)
Discussion started by: drew77
4 Replies
LEARN ABOUT DEBIAN
nutscan_scan_snmp
NUTSCAN_SCAN_SNMP(3) NUT Manual NUTSCAN_SCAN_SNMP(3)
NAME
nutscan_scan_snmp - Scan network for SNMP devices.
SYNOPSIS
#include <nut-scan.h>
nutscan_device_t * nutscan_scan_snmp(const char * start_ip,const char * stop_ip,long timeout, nutscan_snmp_t * sec);
DESCRIPTION
The nutscan_scan_snmp() function try to detect NUT compatible SNMP devices. It tries SNMP queries on every IP ranging from start_ip to
stop_ip. Those IP may be either IPv4 or IPv6 addresses or host names.
You MUST call nutscan_init(3) before using this function.
This function waits up to timeout microseconds before considering an IP address does not respond to SNMP queries.
A valid nutscan_snmp_t structure must be passed to this function.
The nutscan_snmp_t structure contains the following members which must be filled as described below:
char * 'community';
char * 'secLevel';
char * 'secName';
char * 'authPassword';
char * 'privPassword';
char * 'authProtocol';
char * 'privProtocol';
If community is not NULL, SNMP v1 request are sent using this community.
If community is NULL and secLevel is NULL, SNMP v1 is selected and community is set to "public".
In the other cases, SNMP v3 is used. secLevel may be one of SNMP_SEC_LEVEL_NOAUTH, SNMP_SEC_LEVEL_AUTHNOPRIV or SNMP_SEC_LEVEL_AUTHPRIV.
secName is the security name and must be non NULL.
If secLevel is set to SNMP_SEC_LEVEL_AUTHNOPRIV, authPassword must be non NULL.
If secLevel is set to SNMP_SEC_LEVEL_AUTHPRIV, authPassword and privPassword must be non NULL.
If authProtocol is NULL, MD5 protocol is used. Else you can set authProtocol to either "MD5" or "SHA".
If privProtocol is NULL, DES protocol is used. Else you can set privProtocol to either "AES" or "DES".
peername and handle are used internally and do not need any initialization.
RETURN VALUE
The nutscan_scan_snmp() function returns a pointer to a nutscan_device_t structure containing all found devices or NULL if an error occurs
or no device is found.
SEE ALSO
nutscan_init(3), nutscan_scan_usb(3), nutscan_scan_xml_http(3), nutscan_scan_nut(3), nutscan_scan_avahi(3), nutscan_scan_ipmi(3),
nutscan_display_ups_conf(3), nutscan_display_parsable(3), nutscan_new_device(3), nutscan_free_device(3), nutscan_add_option_to_device(3),
nutscan_add_device_to_device(3), nutscan_cidr_to_ip(3)
Network UPS Tools 05/22/2012 NUTSCAN_SCAN_SNMP(3)