10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello,
i need a bit of help on how to do this effectively in bash without a lot of extra looping or massive switch/case
i have a long array of M elements and a short array of N elements, so M > N always. M is not a multiple of N.
for case 1, I want to stretch N to fit M
arrayHuge
H = (... (2 Replies)
Discussion started by: f77hack
2 Replies
2. Shell Programming and Scripting
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Discussion started by: briandanielz
4 Replies
3. Shell Programming and Scripting
I have an array and two variables as below,
I need to check if $datevar is present in $filename.
If so, i need to replace $filename with the values in the array.
I need the output inside an ARRAY
How can this be done.
Any help will be appreciated. Thanks in advance. (2 Replies)
Discussion started by: irudayaraj
2 Replies
4. Shell Programming and Scripting
Hi Everyone,
#!/usr/bin/perl
use strict;
use warnings;
my @test=("a;b;qqq;c;d","a;b;ggg;c;d","a;b;qqq;c;d");
would like to split the @test array into two array:
@test1=(("a;b;qqq;c;d","a;b;qqq;c;d"); and @test2=("a;b;ggg;c;d");
means search for 3rd filed.
Thanks
find the... (0 Replies)
Discussion started by: jimmy_y
0 Replies
5. Shell Programming and Scripting
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Discussion started by: zeekblack
1 Replies
6. UNIX for Advanced & Expert Users
I have a 3510 disk array attached to a T2000 server.
The dmesg command shows disk error as follows and is generated a couple of times during the day
Aug 18 03:35:51 myserver SUNWscsdMonitor: <rctrl6042> Standard General Event, CHL:2 ID:22 Drive NOTICE: Drive Recovered Error - 5F8E1F... (1 Reply)
Discussion started by: Tirmazi
1 Replies
7. Solaris
Hi Peeps,
Can anyone help me an EFI lablel on a 3510 raid array that I cannot get rid of, format -e and label just asks you if you want to label it. Want an SMI label writing to it.
Anyone got any ideas on how to remove the EFI label?
Thanks in advance
Martin (2 Replies)
Discussion started by: callmebob
2 Replies
8. Programming
I am facing a strange error while creating posix threads:
Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output.
Snippet 1
This works:
--------------
int *threadids;
threadids = (int *) malloc (num_threads * sizeof(int));
... (4 Replies)
Discussion started by: kmehta
4 Replies
9. Solaris
Hi everyone,
I changed the batteries on 29-Jun-2008 for the storedges.
But received error messages from the server today,I used the "-u" option to update the service date information but it syntaticaly fails. Why?
Jul 4 12:00:03 auriga SUNWscsdServer: <rctrl8001> The battery on... (3 Replies)
Discussion started by: incredible
3 Replies
10. Solaris
I would like to extend a logical drive on our 3510. I have four unallocated disks which I would like to use for this purpose.
The 3510 supports a Sun Cluster but for now all I wish to see is a "new" disk when I run format.
I am a little familiar with the telnet/ssh session on the 3510 but am... (2 Replies)
Discussion started by: malcqv
2 Replies
ASR(4) BSD Kernel Interfaces Manual ASR(4)
NAME
asr -- driver for Adaptec I2O based SCSI/ATA host bus adapters
SYNOPSIS
device asr
DESCRIPTION
The Adaptec asr driver provides access to disks and disk arrays controlled by I2O based host bus adapters and SmartRAID SCSI RAID adapters
through the standard SCSI disk da(4) interface.
The supported adapters provide 64 bit PCI, Compact PCI, Zero Channel PCI, and up to four channels of Ultra2, Ultra 160, or Ultra320 SCSI, or
two channels of 1GB Fibre. All support RAID-0, RAID-1, RAID-10, RAID-5 and RAID-50 arrays. All SCSI target types are supported. For the
ATA based controllers, one IDE drive per channel is supported. Hot-swapping of IDE drives is not supported at this time.
All host bus adapters must be configured before they can be used with any operating system. Please contact Adaptec directly to obtain the
latest information on configuration utilities for the adapters. Currently there are both a Motif based GUI configuration utility and a CLI
based configuration utility available from the Adaptec Web site. The cards and arrays can also be configured via the BIOS based configura-
tion tool (SMOR).
HARDWARE
The adapters currently supported by the asr driver include the following:
o Adaptec Zero-Channel SCSI RAID 2000S, 2005S, 2010S, 2015S
o Adaptec SCSI RAID 2100S, 2110S
o Adaptec ATA-100 RAID 2400A
o Adaptec SCSI RAID 3200S, 3210S
o Adaptec SCSI RAID 3400S, 3410S
o Adaptec SmartRAID PM1554
o Adaptec SmartRAID PM1564
o Adaptec SmartRAID PM2554
o Adaptec SmartRAID PM2564
o Adaptec SmartRAID PM2664
o Adaptec SmartRAID PM2754
o Adaptec SmartRAID PM2865
o Adaptec SmartRAID PM3754
o Adaptec SmartRAID PM3755U2B / SmartRAID V Millennium
o Adaptec SmartRAID PM3757
o DEC KZPCC-AC (LVD 1-ch, 4MB or 16MB cache), DEC KZPCC-CE (LVD 3-ch, 64MB cache), DEC KZPCC-XC (LVD 1-ch, 16MB cache), DEC KZPCC-XE (LVD
3-ch, 64MB cache) -- rebadged SmartRAID V Millennium
FILES
/dev/asr* Adaptec SCSI RAID control nodes
NOTES
The ATA based controllers present their devices as SCSI-like devices via CAM. For IDE drives attached to these cards, a subset of standard
SCSI commands and mode pages are understood via translation performed in the card's firmware.
SEE ALSO
da(4)
HISTORY
The asr (Adaptec SCSI RAID) driver first appeared as the dpti2o driver under BSDi BSD/OS 3.2, then under FreeBSD 2.2.8 and was ported over to
the CAM layer represented in 4.0.
AUTHORS
The asr driver was kindly donated by Adaptec and is maintained by Mark Salyzyn <mark_salyzyn@adaptec.com>. This manual page was written by
Mark Salyzyn and fixed up by Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>.
BSD
July 14, 2004 BSD