We help IT Professionals succeed at work.

How to get info from fcmsutil

oo07
oo07 asked
on
7,681 Views
Last Modified: 2011-09-20
How can I automate to get the fcmsutil of each fiber channel connection into script. I nee to get information on 100 servers

server1:>ioscan -funC fc
Class     I  H/W Path  Driver S/W State   H/W Type     Description
=================================================================
fc        0  0/8/0/0   td   CLAIMED     INTERFACE    HP Tachyon XL2 Fibre Channel Mass Storage Adapter
                      /dev/td0
fc        1  0/9/0/0   td   CLAIMED     INTERFACE    HP Tachyon XL2 Fibre Channel Mass Storage Adapter
                      /dev/td1
server1:fcmsutil /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 = 0x030b00
            N_Port Node World Wide Name = 0x50060b000023c7dd
            N_Port Port World Wide Name = 0x50060b000023c7dc
                           Driver state = ONLINE
                       Hardware Path is = 0/8/0/0
                 Number of Assisted IOs = 1242358963
        Number of Active Login Sessions = 3
                   Dino Present on Card = NO
                     Maximum Frame Size = 2048
                         Driver Version = @(#) libtd.a HP Fibre Channel Tachyon TL/TS/XL2 Driver B.11.11.12 PATCH_11.11 (PHSS_31326) /ux/kern/kisu/TL/src/common/wsio/td_glue.c: Sep  5 2005, 10:14:40


Comment
Watch Question

Commented:
Do you just want each host to run the ioscan and fcmsutil commands and log hte output?  Or are you looking for a particular field from the fcmsutil output?

Simple loop to run fcmsutil on all the devices listed by the ioscan (note I haven't used HPUX in a few years, so don't know if ioscan always names devices the same way):

#/usr/bin/ksh
for dev in `ioscan -funC fc | egrep ^fc|awk '{print "/dev/" $4 $2}'` ; do
   fcmsutil $dev
done

It'd be simple to pipe that to a log file, or to just extract whatever data you wanted out of it.  

Author

Commented:
sentner,
I am just wondering i would like to run this from central server and do ssh of the script and output the result of 100 servers in to the /var/ of the central server.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.