Guys im trying to create a script that will load ballance 3 devices. Unix is still very alien to me having only been in this position for 3 months now. Not to mention the fact that i've been thrown in the deep end. Anyway so far i've managed to make a script that looks at all 4 devices and make a... (1 Reply)
I have a tab delimited file which has 27 character fields. The file needs to be loaded into an Oracle table. But the challenge is that everytime the file comes it may or may not have values in all 27 fields.
Column Definition of the 27 fields:
TYPE: Char (1)
NAME: Char (30)
CUSTOM_VAL: Char... (8 Replies)
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)
Ok so I have files that are going to land on /apps/, but I need to load balance them so I need to load balance them to four different folders.
The three file extensions I get are .mpe .mpd and mpf which will land here... /apps/ I can't move them until the mpf is there it triggers the next... (8 Replies)
Hi All,
I wanted to know what time the box jobs were loaded into a particular Autosys Instance.
Is there a autosys command to find out the above? (The timestamp at which a box was loaded)
I had loaded my JIL script without outputting it to the log file. (4 Replies)
Hi,
I need to balance the load to be processed by the system using shell script.
The scenario is like below:
Suppose there are some files in a directory:
-rw-rw-r-- 1 usr usrgrp 456432306 Oct 23 07:53 abc_queue_q1
-rw-rw-r-- 1 usr usrgrp 4123934 Oct 23 07:53... (1 Reply)
Hey everyone
can you check this script logic ?
it has to restart webservice if found server load is higher than X,
also i have put it in crontab to run every one minute
#!/bin/bash
loadavg=$(uptime | awk -F "." '{ print $1 }' | awk -F ":" '{ print $5 }')
if ; then
pkill -9 httpd
service... (7 Replies)
Hi,
Im going to use shell script for load the data into DB.
First i need to read the trail file(csv file has two columns with comma separated ) like file name trail1024(last 4 digitsMMDD).
In this trail file 27 entries will have like below,I need to read first csv file name and get the 4... (1 Reply)
Discussion started by: krajasekhar.v
1 Replies
LEARN ABOUT OPENSOLARIS
mp_setlogicalunitloadbalancetype
MP_SetLogicalUnitLoadBalanceType(3MPAPI) Common Multipath Management Library Functions MP_SetLogicalUnitLoadBalanceType(3MPAPI)NAME
MP_SetLogicalUnitLoadBalanceType - set a load balancing policy
SYNOPSIS
cc [ flag... ] file... -lMPAPI [ library... ]
#include <mpapi.h>
MP_STATUS MP_SetLogicalUnitLoadBalanceType(MP_OID logicalUnitoid,
MP_LOAD_BALANCE_TYPE loadBalance);
PARAMETERS
logicalUnitOid The object ID of the multipath logical unit.
loadBalance The desired load balance policy for the specified logical unit.
DESCRIPTION
The MP_SetLogicalUnitLoadBalanceType() function sets the multipath logical unit's load balancing policy. The value must correspond to one
of the supported values in MP_PLUGIN_PROPERTIES.SupportedLogicalUnitLoadBalanceTypes.
RETURN VALUES
MP_STATUS_INVALID_OBJECT_TYPE
The logicalUnitOid does not specify any valid object type. This is most likely to happen if an uninitialized object ID is passed to the
API.
MP_STATUS_INVALID_PARAMETER
The loadBalance is invalid or logicalUnitOid has a type subfield other than MP_OBJECT_TYPE_MULTIPATH_LU.
MP_STATUS_OBJECT_NOT_FOUND
The logicalUnitOid owner ID or object sequence number is invalid.
MP_STATUS_SUCCESS
The operation is successful.
MP_STATUS_FAILED
The specified loadBalance type cannot be handled by the plugin. One possible reason for this is a request to set MP_LOAD_BAL-
ANCE_TYPE_PRODUCT when the specified logical unit has no corresponding MP_DEVICE_PRODUCT_PROPERTIES instance (i.e., the plugin does not
have a product-specific load balance algorithm for the LU product).
MP_STATUS_UNSUPPORTED
The implementation does not support the API.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard: ANSI INCITS 412 |
| |Multipath Management API |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO libMPAPI(3LIB), attributes(5)
Multipath Management API Version 1.0
SunOS 5.11 15 Feb 2006 MP_SetLogicalUnitLoadBalanceType(3MPAPI)