- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ioscan output formatting...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 05:39 AM
12-04-2006 05:39 AM
disk 27 0/0/6/1/0.1.25.0.0.1.2 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t1d2 /dev/dsk/c7t1d2s2 /dev/rdsk/c7t1d2 /dev/rdsk/c7t1d2s2
/dev/dsk/c7t1d2s1 /dev/dsk/c7t1d2s3 /dev/rdsk/c7t1d2s1 /dev/rdsk/c7t1d2s3
disk 28 0/0/6/1/0.1.25.0.0.1.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t1d3 /dev/dsk/c7t1d3s2 /dev/rdsk/c7t1d3 /dev/rdsk/c7t1d3s2
/dev/dsk/c7t1d3s1 /dev/dsk/c7t1d3s3 /dev/rdsk/c7t1d3s1 /dev/rdsk/c7t1d3s3
How can I make my output ommit the "s2" or "s3" lines? I don't really need to see them. I really only want the output to look like this...
disk 36 0/0/6/1/0.1.25.0.0.2.7 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t2d7 /dev/rdsk/c7t2d7
disk 37 0/0/6/1/0.1.25.0.0.3.0 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t3d0 /dev/rdsk/c7t3d0
disk 38 0/0/6/1/0.1.25.0.0.3.1 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t3d1 /dev/rdsk/c7t3d1
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 05:44 AM
12-04-2006 05:44 AM
Re: ioscan output formatting...
tries ioscan -fnC disk |grep -v argument that must be ommit of output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 05:45 AM
12-04-2006 05:45 AM
Re: ioscan output formatting...
ioscan -fnC disk |grep -v s2 |grep -v s3
That may well be too simple an approach, but, given your example, it works.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 05:50 AM
12-04-2006 05:50 AM
Re: ioscan output formatting...
disk 27 0/0/6/1/0.1.25.0.0.1.2 sdisk CLAIMED DEVICE NETAPP LUN
disk 28 0/0/6/1/0.1.25.0.0.1.3 sdisk CLAIMED DEVICE NETAPP LUN
disk 29 0/0/6/1/0.1.25.0.0.1.4 sdisk CLAIMED DEVICE NETAPP LUN
Noy I can't see my device files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:00 AM
12-04-2006 06:00 AM
Re: ioscan output formatting...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:03 AM
12-04-2006 06:03 AM
Re: ioscan output formatting...
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:03 AM
12-04-2006 06:03 AM
Re: ioscan output formatting...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:09 AM
12-04-2006 06:09 AM
Re: ioscan output formatting...
These LUN's are raw disks assigned Windows Virtual MAchines. Yes, there are partitions on them but only one.
I don't mind using awk, I use it on other commands, however, I have only been an HP-Unix admin since the end of July and I rely on asking questions on the forum. So any responses from anyone on this is very much appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 07:00 AM
12-04-2006 07:00 AM
Re: ioscan output formatting...
Thanks!
Now there's less clutter of stuff for me. Here's the output...
disk 36 0/0/6/1/0.1.25.0.0.2.7 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t2d7 /dev/rdsk/c7t2d7
disk 37 0/0/6/1/0.1.25.0.0.3.0 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t3d0 /dev/rdsk/c7t3d0
disk 38 0/0/6/1/0.1.25.0.0.3.1 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c7t3d1 /dev/rdsk/c7t3d1
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 07:07 AM
12-04-2006 07:07 AM
Re: ioscan output formatting...
They should be assigned to the Windows machine ONLY. Having them available to HP-UX is only asking for trouble, in my opinion. It would be very easy to do a 'pvcreate' on one of those disks and thus blow up your Windows VM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 10:18 AM
12-04-2006 10:18 AM
Re: ioscan output formatting...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 10:21 AM
12-04-2006 10:21 AM