Sponsored Content
Full Discussion: server load tracking
Top Forums Shell Programming and Scripting server load tracking Post 302175508 by zazzybob on Friday 14th of March 2008 08:20:48 AM
Old 03-14-2008
You're trying to compare two non-integer values, where integer values are expected.

This is a simplification, but it will work, and takes the absolute value from the uptime and compares it to an absolute threshold :
Code:
$ if [ "$( uptime | awk '{print $11}' | cut -d. -f1 )" -gt "10" ]; then echo "too high"; else echo "fine..."; fi

Cheers,
ZB
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

2. Solaris

Checking Server work load

Hey guys, I was task to look at a couple DNS servers for a co worker, Now they are running Solaris 2.6 on some Ultra 10 systems. How can I check the kind of load these systems are taking, I know that I can look at the network size and how many zones these servers are SOA of, but I looking in a... (3 Replies)
Discussion started by: aojmoj
3 Replies

3. UNIX and Linux Applications

LSF Server: could not load license

Hi All, Please help me to solve the problem when i submit a job on the client: #bsub -q normal -(blah blah....) I got the error messages: #batch system daemon not responding ... still trying #batch system daemon not responding ... still trying #batch system daemon not responding ... still... (0 Replies)
Discussion started by: teppyvn
0 Replies

4. Shell Programming and Scripting

Load of Unix server

Hi Folks, I want to see the proper status of a low performance server. I tried using top command but it doesn't give all the details. Any help in this regard would be appreciated. Regards, Sagar (1 Reply)
Discussion started by: sagarjani
1 Replies

5. Solaris

CPU load -12.50 in server.

Friends I have noticed that the Sun Fire v490 server with Solaris9 OS in my office, is showing a load of 12.50 during peak time and the CPU showing a max of 75% and an average of 60%. The Application running in this machine hung last month(For reasons unknown) and is running fine after... (5 Replies)
Discussion started by: Renjesh
5 Replies

6. Shell Programming and Scripting

Shell script in tracking both the passed and failed login in a unix server

Can you help me in providing the following output or a quite similar to this from a shell script ? *** Logins Summary Information ***** ---------------------------------- Failed Login Attempts for Invalid Accounts Date Time IP-ADD Account ... (0 Replies)
Discussion started by: linuxgeek
0 Replies

7. Solaris

Tracking Who Has Logged Into a Server?

I am running Solaris 10 on a variety of SUN servers. I need to be able to tell who has logged into the server. Is this info kept in any of the logs on the system? Thanks, LeonD (8 Replies)
Discussion started by: leond
8 Replies

8. Linux

Server Load balancer

Hello Guys, Hope you all doing well . :) I was checking load balance command (uptime)on VM server and got below output. # uptime 07:08:40 up 52 min, 2 users,a load average: 0.45, 0.11, 0.03 A :How we can calculate load average? Thank you in advance !! Cheers:) Dont forget... (1 Reply)
Discussion started by: Nats
1 Replies
addnode(8)						      System Manager's Manual							addnode(8)

Name
       addnode - add or change an entry in the nodes database

Syntax
       /etc/addnode node [ options ]

Description
       The  command adds a new node entry to the nodes database or modifies an existing entry.	The nodes database is the one used by DECnet.  The
       command defines the information that is necessary for your ULTRIX node to be capable of down-line loading and up-line dumping a	particular
       target  node.  The node address is the address of the target node.  If the target node is a DECnet node, then the node address is mandatory
       and the node name is optional.  However, if the target node is a non-DECnet node, for example, a terminal server, you should  specify  only
       the node name and omit the node address.

       If you do not specify an absolute pathname for secondary load, tertiary load, system load, diagnostic load, or dump file, the default path,
       is used during the load or dump process.

       A node address is a decimal integer in the range of 1 to 1023 for single area networks, or has the format a.n for multiarea networks, where
       a  is  the network area number (a decimal integer in the range of 1 to 63) and n is the node number (a decimal integer in the range of 1 to
       1023).

       The node name is the node name of the target node.

       If the target node is a DECnet node, the node name is optional.	However, if the target node is a non-DECnet node, for example, a  terminal
       server, the node name is mandatory (and the node address should be ignored).

       A node name can be from 1 to 6 alphanumeric characters, including at least 1 alphabetic character.

Options
       -A   Uses the specified host address (next argument) as that of the target node.

       -D   Creates an up-line memory dump of the target node in the specified file (next argument).

       -N   Uses the specified name (next argument) as that of the target node.

       -c   Uses the specified service and device number (UBA-n or QNA-n) as the circuit to the target node.

       -d   Sends the specified diagnostic load image (next argument) to the target node.

       -h   Uses the specified address (next argument) as the Ethernet address of the target node.

       -l   Sends the specified system load image (next argument) to the target node.

       -p   Uses the specified service and password (next arguments) in accessing the target node.

       -s   Sends the specified secondary load file (next argument) to the target node.

       -t   Sends the specified tertiary load file (next argument) to the target node.

Examples
       % /etc/addnode mynode -h aa-00-03-00-01-19  <RET>
       -s /usr/download/secondary  <RET>
       -t /usr/download/tertiary  <RET>
       -l system <RET>

       This command adds the non-DECnet, node mynode, to the nodes database, which has the Ethernet physical address aa-00-03-00-01-19.  This com-
       mand also specifies the file names for the secondary loader, the tertiary loader, and the system loader.  Note that  a  path  name  is  not
       specified for the system loader; consequently, the loader uses the default path when searching for that file.
       # /etc/addnode 44.71 -h aa-00-03-00-01-20 <RET>

       This command adds the DECnet node 44.71 to the nodes database, which has the Ethernet physical address aa-00-03-00-01-20.

See Also
       ccr(8), getnode(8), load(8), mop_mom(8), remnode(8), trigger(8)

																	addnode(8)
All times are GMT -4. The time now is 06:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy