Operating System - HP-UX
1752729 Members
5853 Online
108789 Solutions
New Discussion юеВ

Re: fcmsutil and tdutil to ge the WWN of the HBA and target port

 
v2_1
Advisor

fcmsutil and tdutil to ge the WWN of the HBA and target port

I want to write a script to do the discovery of the devicepaths and connected FC ports as a NON ROOT user.
I see fcmsutil can run only as root user, whereas tdutil can run as a non root user.

Is there any tool that can be used instead of fcmsutil?

thanks!!

Here is the sample output::

fcmsutil /dev/td0
Error: Must have SuperUser privileges to execute this command.
tdutil /dev/td0

Vendor ID is = 0x00103c
Device ID is = 0x001029
XL2 Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x00128c
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0xc20300
N_Port Node World Wide Name = 0x50060b000023d2bb
N_Port Port World Wide Name = 0x50060b000023d2ba
Driver state = ONLINE
Hardware Path is = 0/4/1/0
Number of Assisted IOs = 1160821
Number of Active Login Sessions = 1
Dino Present on Card = NO
Maximum Frame Size = 2048
Driver Version = @(#) libtd.a HP Fibre Channel Tachyon XL2 Driver B.11.23.03 /ux/core/isu/TL/kern/src/common/wsio/td_glue.c: Aug 16 2004, 13:49:26
6 REPLIES 6
Jupinder Bedi
Respected Contributor

Re: fcmsutil and tdutil to ge the WWN of the HBA and target port

What I believe that there is no any another command to see these outputs . but if you still want to use this command as a normal user than you can use sudo access.
All things excellent are as difficult as they are rare
v2_1
Advisor

Re: fcmsutil and tdutil to ge the WWN of the HBA and target port

I see as non-root tdutil is working on 2 HP-UX OS I have, how can I confirm that tdutil will always work?
v2_1
Advisor

Re: fcmsutil and tdutil to ge the WWN of the HBA and target port

using ioscan and fcmsutil,
I can find the fc class object, the disk, and the target for each fc object
BUT I can't associate the disk with the target port.

Any ideas?

fcmsutil /dev/fcd0 get remote all
.
.
Target N_Port_id is = 0x141e00
.
.
Target Port World Wide Name = 0x50060e8000c28634
Target Node World Wide Name = 0x50060e8000c28634

# ioscan -knf /dev/fcd0
# ioscan -knf /dev/fcd0 | more
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
fc 0 0/2/1/0 fcd CLAIMED INTERFACE HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd0
fcp 0 0/2/1/0.20 fcd_fcp CLAIMED INTERFACE FCP Domain
ext_bus 4 0/2/1/0.20.30.0.0 fcd_vbus CLAIMED INTERFACE FCP Array Interfa
ce
target 6 0/2/1/0.20.30.0.0.0 tgt CLAIMED DEVICE
disk 2 0/2/1/0.20.30.0.0.0.0 sdisk CLAIMED DEVICE HITACHI DF600F
Rita C Workman
Honored Contributor

Re: fcmsutil and tdutil to ge the WWN of the HBA and target port

The fcmsutil command is a restricted to processes having super user privileges.

Hence you must be root, or be granted super user rights to run this command.

See manpage fcmsutil

Regards,
Rita
smatador
Honored Contributor

Re: fcmsutil and tdutil to ge the WWN of the HBA and target port

Hi,
I think you have to interpret with scsimgr
http://www.docs.hp.com/en/A6826-96009/ch01s08.html
HTH
v2_1
Advisor

Re: fcmsutil and tdutil to ge the WWN of the HBA and target port

http://www.docs.hp.com/en/A6826-96009/ch01s08.html
helps
---
I got some more bit processing here
Fabrizio,

> Target N_Port_id is = 0x631700
> Target state = DSM_READY
> Symbolic Name = HP OPEN-XP12000 5001


Look at the FCID (N_Port_id) there and convert into deciaml:

0x631700 = 99.23.0

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1264597571611+28353475&threadId=1277892

thanks all!