search for: getoutput

Displaying 15 results from an estimated 15 matches for "getoutput".

2016 Feb 16
3
slightly off-topic, RAID program for on-board SAS 2308-4i ?
Does anyone know what program can be used to query the RAID status from the OS for an on-board LSI SAS 2308-4i? On this page: http://docs.avagotech.com/docs/12351997 there is a curious note on the left that reads: "Integrated MegaRAID support available upon request" After one mostly fruitless round of chatting with LSI/Avago/Broadcom and one completely fruitless round of chatting
2015 Jan 30
5
Very slow disk I/O
On 1/30/2015 1:53 AM, Gordon Messmer wrote: > On 01/29/2015 05:07 AM, Jatin Davey wrote: >> Yes , it is a SATA disk. I am not sure of the speed. Can you tell me >> how to find out this information ? Additionally we are using RAID 10 >> configuration with 4 disks. > > What RAID controller are you using? > > # lspci | grep RAID [Jatin] [root at localhost ~]# lspci |
2015 Jan 30
0
Very slow disk I/O
...nt -d, only print disk info printarray = True printcontroller = True if len(sys.argv) > 1: if sys.argv[1] == '-d': printarray = False printcontroller = False else: print 'Usage: lsi-raidinfo [-d]' sys.exit(1) # Get command output def getOutput(cmd): output = os.popen(cmd) lines = [] for line in output: if not re.match(r'^$',line.strip()): lines.append(line.strip()) return lines def returnControllerNumber(output): for line in output: if re.match(r'^Controller Count.*$...
2016 Feb 16
0
slightly off-topic, RAID program for on-board SAS 2308-4i ?
...nt -d, only print disk info printarray = True printcontroller = True if len(sys.argv) > 1: if sys.argv[1] == '-d': printarray = False printcontroller = False else: print 'Usage: lsi-raidinfo [-d]' sys.exit(1) # Get command output def getOutput(cmd): output = os.popen(cmd) lines = [] for line in output: if not re.match(r'^$',line.strip()): lines.append(line.strip()) return lines def returnControllerNumber(output): for line in output: if re.match(r'^Controller Count.*$...
2015 Feb 02
1
Very slow disk I/O
...t; printcontroller = True > if len(sys.argv) > 1: > if sys.argv[1] == '-d': > printarray = False > printcontroller = False > else: > print 'Usage: lsi-raidinfo [-d]' > sys.exit(1) > > # Get command output > def getOutput(cmd): > output = os.popen(cmd) > lines = [] > for line in output: > if not re.match(r'^$',line.strip()): > lines.append(line.strip()) > return lines > > def returnControllerNumber(output): > for line in output: >...
2023 Mar 18
1
Can't seem to setup remote access to doveadmI'm using
...= data[1] print 'Creating Email Account : %s' % (username) #Now create the mail box #Now go make the email account message = '' for n in range (0,100) : command1 = commands.getoutput('/usr/local/bin/doveadm mailbox create -s -u %s INBOX' %str(username)) print 'Command1 : %s' %command1 if 'Mailbox already exists' in command1 : message = 'BAD'...
2017 Nov 02
3
low end file server with h/w RAID - recommendations
On Thursday 02 November 2017 14:10:25 Bowie Bailey wrote: > If you want raid 5 or 6, then you should get a hardware controller. For > raid 1, mdadm should work just fine.? I would suggest trying it before > buying a raid controller.? If it works for you, you save a few hundred > dollars and you have one less piece of hardware to worry about. > > I haven't looked at them in
2023 Mar 18
1
Can't seem to setup remote access to doveadmI'm using
I?m running version 2.1.7 under Raspbian Wheezy (and have been for a number of years). I want to allow one of my other computers to remotely issue doveadm commands to my server but can?t seem to find the right way to add an inet listener to permit this. Using ?doveconf -a? I?ve found the default service definition for doveadm-server. So I copied that and added it to the dovecot configuration with
2014 Aug 25
3
Hardware raid health?
I just had an IBM in a remote location with a hardware raid1 have both drives go bad. With local machines I probably would have caught it from the drive light before the 2nd one died... What is the state of the art in linux software monitoring for this? Long ago when that box was set up I think the best I could have done was a Java GUI tool that IBM had for their servers - and that seemed like
2023 Feb 23
1
creating a mailbox via imap
> is there any way with Dovecot to open an admin imap connection and create a brand new mailbox? > With Cyrus imapd I can do this by connecting as the Cyrus admin user and then create a folder "user/newuser at domain.tld". Wouldn't that be dependent on how Dovecot auth worker verifies a user exist and is valid? Such as for one method, database queries. How would Dovecot know
2004 Aug 06
2
C++ wrapper for speex
...wParam, LPARAM lParam) { LPWAVEHDR lpHdr = (LPWAVEHDR) lParam; int buflen = lpHdr->dwBufferLength; //160 float * buf = toFloat(lpHdr->lpData, buflen); // Encode some audio int nRet = enc.encode(buf, buflen); unsigned char *compressed = enc.getOutput(); int clen = enc.getOutputLength(); int speechDetected = enc.getSpeechDetected(); // delete temporary float buffer delete []buf; // Decode it int decodedSamples = dec.decode(compressed, clen); // Prepare decoded da...
2004 Aug 06
0
C++ wrapper for speex
...at happens to use VAD: // buf is float[] or short int[], buflen is multiple of frame size // (there is a getFrameSize() method for both classes) // Encode some audio tgAudioEncoder enc(16000); // you could do 8000 instead enc.enableVAD(1); enc.encode(buf, buflen); unsigned char *compressed = enc.getOutput(); int clen = enc.getOutputLen(); int speechDetected = enc.getSpeechDetected(); // Decode it tgAudioDecoder dec(16000); int decodedSamples = dec.decode(compressed, clen); memcpy(buf, dec.getOutput(), decodedSamples * sizeof(short int)); Anyway, that's the basic idea. I don't think it cou...
2004 Aug 06
1
C++ wrapper for speex
...> LPARAM lParam) > { > LPWAVEHDR lpHdr = (LPWAVEHDR) lParam; > > int buflen = lpHdr->dwBufferLength; //160 > float * buf = toFloat(lpHdr->lpData, buflen); > > // Encode some audio > int nRet = enc.encode(buf, buflen); > unsigned char *compressed = enc.getOutput(); > int clen = enc.getOutputLength(); > int speechDetected = enc.getSpeechDetected(); > > // delete temporary float buffer > delete []buf; > > // Decode it > int decodedSamples = dec.decode(compressed, clen); > > // Prepare decoded data for WAV &...
2006 Nov 21
2
Handle Options Method
Hi, I have an Alteon in test (a sip/rtp load balancer). This Alteon sends to the asterisk box a "SIP OPTIONS" to know if asterisk is alive. However, asterisk sends me a 404 message and not a response like, for example, a Thomson (200 + SDP) I wrote a very little script (you can find it at the end of the email) to send an Options message to asterisk/phones to try. It works
2009 Feb 04
2
Best way to migrate Xen Disk IMG w/LVM''s to a block-device? (e.g. DRBD)
Hi All, I was hoping to pick someone''s brain about the best way of moving a Xen disk image (which has LVM''s inside of it) to a new block-device?  I have the target DRBD device ready but unsure what''s the best & safest way to do it. I was actually tempted to mount the Xen disk image in a dom0, and make it visible via loop devices and promote that DRBD node for