07-14-2008
FC card not working properly
Hi
I've a problem with Hp-ux 11.11 9000/800/rp3440 system. Already the software for driver & its patch are loaded for HBA Fibrechannel card, but still the fibrechannel card is showing the status "Unclaimed" . What will be reason for this? How to get the status "Claimed" ?
Pl. help me out.
Thanks
Mike
10 More Discussions You Might Find Interesting
1. Programming
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
struct stat s;
main() {
char c;
if (fork()==0) {
system("clear");
do {
printf("myAI\\>§ ");
scanf("%s",c);
if(stat(c,&s)>-1) {... (3 Replies)
Discussion started by: C|[anti-trust]
3 Replies
2. UNIX for Dummies Questions & Answers
telnet at my system is behaving stange. Some times I am able to telnet to other machines but sometimes it stop doing that. Then i have to reboot the machine and most of the time (not 100%) it works. SImilar is the case with SSH. Sometime it works , some time it don't. i am new to Unix and I do not... (1 Reply)
Discussion started by: deepak_pathania
1 Replies
3. HP-UX
Hi,
I do have three scripts. Whcih inserts records into a table using sqlldr, creating some reprot files etc. The first script will call the second and then the second will call the third. When I run my first script from the shell prompt, all my operation are completed successfully. If I do... (23 Replies)
Discussion started by: risshanth
23 Replies
4. Shell Programming and Scripting
Hi all,
I'm trying to generate a series of txt files starting from a plain csv file
part of my code:
#!/bin/ksh
INSTALLDIR=/Users/ME/Installdir
CSV=CSV.csv
TMP=/tmp/$(basename $0).txt
tr -s "\r" "\n" < /$INSTALLDIR/$CSV > $TMP
function Makefiles
{
printf '%24s:%30s\n' "sometext"... (1 Reply)
Discussion started by: Jive Spector
1 Replies
5. Shell Programming and Scripting
I am using mailx command in my script to attach a file and send an email. I need to attach a csv file and send email to a mail id -
I am using
uuencode output.csv output.csv | mailx -s "test mail" xyz@abc.com
This will send a mail with scrambled text in body.
am i missing something ?... (4 Replies)
Discussion started by: Sriranga
4 Replies
6. Red Hat
This is the first time for using sudo for me.
# visudo
## Allows people in group admin to run all commands
%admin ALL=(ALL) ALL
# groupadd admin
# useradd temp
# usermod -a -G admin temp
# id temp
uid=506(temp) gid=506(temp) groups=506(temp),507(admin)
#
#sudo... (5 Replies)
Discussion started by: getrue
5 Replies
7. Shell Programming and Scripting
Hello Everyone,
I'm very new to the shell script. I'm trying to send multiple attachments in unix using uuencode command.
Total I have 3 text files which should be send in mail.
but I'm getting 6 files and 3 files with subject as file name. And the content is
`
end
I'm working... (6 Replies)
Discussion started by: narikivar
6 Replies
8. Linux
Hi,
I am trying to enable rexec to automate certain tasks(it has to be rexec, not ssh or any other due to the system environment), so after switching to linux, I followed the certain instructions that were laid out in the web.
My operating system is fedora 17, so I first installed the... (1 Reply)
Discussion started by: wringer
1 Replies
9. UNIX for Dummies Questions & Answers
Hi There,
---------
file1
-------
~c asd@ac.com
--------------
Now i am using below command
cat file1|mailx -s " testing" -r " My Name" abc@tech.com (3 Replies)
Discussion started by: Tapan Sharma
3 Replies
10. Shell Programming and Scripting
Platform: RHEL 5.4
In the below text file I have strings like following.
$ cat /tmp/mytextfile.txt
DISK1
DISK10
DISK101
DISK102
DISK103
DISK104
DISK105
DISK106
DISK107
DISK108
DISK109
DISK110
DISK111
DISK112
DISK113
DISK114 (8 Replies)
Discussion started by: kraljic
8 Replies
LEARN ABOUT SUNOS
scf_card_reset
SCF_Card_reset(3SMARTCARD) Smartcard Library Functions SCF_Card_reset(3SMARTCARD)
NAME
SCF_Card_reset - perform a reset of a smartcard
SYNOPSIS
cc [ flag... ] file... -lsmartcard [ library...]
#include <smartcard/scf.h>
SCF_Status_t SCF_Card_reset(SCF_Card_t card);
PARAMETERS
card The card (from SCF_Terminal_getCard(3SMARTCARD)) to be reset
DESCRIPTION
The SCF_Card_reset() function causes the specified smartcard to be reset by the terminal.
A card can be reset only if it has not been locked (with SCF_Card_lock(3SMARTCARD)) by another client. A client wishing to reset a card
should either first call SCF_Card_lock() to obtain the card lock, or be prepared to retry the reset operation if it fails because another
client holds the card lock.
When the card is reset, any SCF_Card_t object representing the card will continue to remain valid after the reset. When the reset occurs,
an SCF_EVENT_CARDRESET event will be sent to all registered event listeners for the terminal (assuming they registered for this event).
This is the only notification of a reset provided to SCF clients. When a client receives this event, it should be prepared to reinitialize
any state on the card that might have been interrupted by the reset. New information about the card (for example, ATR, if it changed) can
also be available from SCF_Card_getInfo(3SMARTCARD).
RETURN VALUES
If the card is successfully reset, SCF_STATUS_SUCCESS is returned. Otherwise, the status of the card remains unchanged and an error value
is returned.
ERRORS
The SCF_Card_reset() function will fail if:
SCF_STATUS_BADHANDLE The specified card has been closed or is invalid.
SCF_STATUS_CARDLOCKED The card cannot be reset because another client holds a lock on the card.
SCF_STATUS_CARDREMOVED The card cannot be reset because the card represented by the SCF_Card_t has been removed.
SCF_STATUS_COMMERROR The connection to the server was lost.
SCF_STATUS_FAILED An internal error occured.
EXAMPLES
Example 1: Reset a card.
SCF_Status_t status;
SCF_Card_t myCard;
/* (...call SCF_Terminal_getCard to open myCard...) */
status = SCF_Card_lock(myCard, SCF_TIMEOUT_MAX);
if (status != SCF_STATUS_SUCCESS) exit(1);
status = SCF_Card_reset(myCard);
if (status != SCF_STATUS_SUCCESS) exit(1);
status = SCF_Card_unlock(myCard);
if (status != SCF_STATUS_SUCCESS) exit(1);
/* ... */
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
libsmartcard(3LIB), SCF_Card_getInfo(3SMARTCARD), SCF_Card_lock(3SMARTCARD), SCF_Terminal_addEventListener(3SMARTCARD), SCF_Terminal_get-
Card(3SMARTCARD), attributes(5)
SunOS 5.10 28 Feb 2001 SCF_Card_reset(3SMARTCARD)