04-16-2011
Quote:
Originally Posted by
shausy
Hi,
I'm using scli (Command line utility) to retrieve the information about qlogic HBA and I want to redirect the information to text file.
* While execution I'm getting the following warning "Unable to get terminal attribute!"
How to avoid that ?
By giving it a terminal, apparently... it seems to check whether its output is or not.
10 More Discussions You Might Find Interesting
1. Linux
Could anyone help i have a question that i have a problem with for my home work it is,
How do i change file permissions in a command line enviromet
thanx (1 Reply)
Discussion started by: Cube3k
1 Replies
2. Shell Programming and Scripting
Hello ,
I am stuck out in a part of my script, though I am trying it through a script of loops but i emphasis on having a short code :
Input file has Attribute values changing with time
Date Monday October 30 10:22:56 IST 2006
object values references Date ... (8 Replies)
Discussion started by: er_aparna
8 Replies
3. Red Hat
Hello Friends ,
Where do i check the following settings in redhat ?
1. Minimum required number of characters in the password (passwordMinLength)
2. Minimum number of digit characters, meaning numbers between zero and nine (passwordMinDigits)
3. Minimum number of ASCII alphabetic... (2 Replies)
Discussion started by: avklinux
2 Replies
4. UNIX for Dummies Questions & Answers
I'm trying to run these commands (keylset,keylget) but i keep getting a error message "invalid command name "keylset"". I've tried running it on both ubuntu's terminal and also Evolane Tcl Engine. Any idea what could be the problem? (1 Reply)
Discussion started by: abe171
1 Replies
5. Red Hat
Hi,
I'm using CentOS 5.5. I connected serial terminal using "cu". The command I had given was "cu -l /dev/ttyUSB0 -s 115200". It connects I'm seeing the target boards boot-up messages and log in screen. But I couldn't type anything on "cu" terminal window.
Any help is highly appreciated.
... (1 Reply)
Discussion started by: suryaemlinux
1 Replies
6. UNIX for Dummies Questions & Answers
I'm using xml_grep command to get the value of different tags in a xml-file.
No i also need the value of an attribute in a tag.
Can I use xml_grep for this? Does anybody know how?
ex. :
<Name xmlns:xsi="http://www.w3.org/2001/XMLinst" xsi:spaceSchema="Name_5879.xsd">
...
</Name>
I... (1 Reply)
Discussion started by: pistach
1 Replies
7. Shell Programming and Scripting
I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies
8. Shell Programming and Scripting
Hello All,
I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly.
Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
9. AIX
Hi guys
when ever i tried to connect aix server in my institute through ssh terminal the
pop is coming like network is unreachable .Am using MacBook air
the other guys who are using putty software in windows they can easily login in tho the server through remotely . Is there any one can... (3 Replies)
Discussion started by: aashishb007
3 Replies
10. Shell Programming and Scripting
Hi,
i want to list all system processes showing the attributes pid, user name, cpu consumption, and the difference between the resident memory and the swap memory needed to stock the process in case of suspending it.
i have two questions, the resident memory is the attribute size i think,... (4 Replies)
Discussion started by: Eskizoide
4 Replies
LEARN ABOUT SUNOS
hba_getadapterattributes
HBA_GetAdapterAttributes(3HBAAPI) Common Fibre Channel HBA Information Library Functions HBA_GetAdapterAttributes(3HBAAPI)
NAME
HBA_GetAdapterAttributes - retrieve attributes about a specific HBA
SYNOPSIS
cc [ flag... ] file... -lHBAAPI [ library... ]
#include <hbaapi.h>
HBA_STATUS HBA_GetAdapterAttributes(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES *hbaattributes);
PARAMETERS
handle an open handle returned from HBA_OpenAdapter(3HBAAPI)
hbaattributes a pointer to an HBA_ADAPTERATTRIBUTES structure. Upon successful completion, this structure contains the specified adapter
attributes.
DESCRIPTION
The HBA_GetAdapterAttributes() function retrieves the adapter attributes structure for a given HBA. The caller is responsible for allocat-
ing hbaattributes.
RETURN VALUES
Upon successful completion, HBA_STATUS_OK is returned. Otherwise, an error value is returned and the values in hbaattributes are undefined.
ERRORS
See libhbaapi(3LIB) for general error status values.
EXAMPLES
Example 1: Return adapter attributes.
The following example returns the adapter attributes into hbaAttrs for the given handle.
if ((status = HBA_GetAdapterAttributes(handle, &hbaAttrs)) !=
HBA_STATUS_OK) {
fprintf(stderr, "Unable to get adapter attributes for "
"HBA %d with name "%s".
", hbaCount, adaptername);
HBA_CloseAdapter(handle);
continue;
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard: FC-MI 1.92 (API |
| |version 1) |
+-----------------------------+-----------------------------+
| |Standard: FC-HBA Version 4 |
| |(API version 2) |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
HBA_OpenAdapter(3HBAAPI), libhbaapi(3LIB), attributes(5)
T11 FC-MI Specification
SunOS 5.10 1 Sep 2003 HBA_GetAdapterAttributes(3HBAAPI)