- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Saving Sam's list
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
Discussions
Discussions
Forums
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
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
тАО08-10-2009 01:00 PM
тАО08-10-2009 01:00 PM
Thanks
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2009 09:18 PM
тАО08-10-2009 09:18 PM
SolutionRun the following command.
#script /tmp/temp2.txt
then you run command, you will get all in this file when you will ..
#exit
Check file /tmp/temp2.txt, everything you will find in this file.
Try this may be you will get solution.
Regards,
Gokul Chandola
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2009 10:30 AM
тАО08-11-2009 10:30 AM
Re: Saving Sam's list
better way to do this is:
after you list the contents of your disks and what not, go to options menu and select View SAM Log. In this list, the lines starting with * or ---- are informational lines. Commands start with / followed by a path to the command running. Look at the last few commands and figure out which one is giving you the output you are looking at. As a root user, execute this command and redirect the output to a file. Now you have a clean (formatting free) version of the SAM output in the file you redirected the output to.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2009 10:42 AM
тАО08-11-2009 10:42 AM
Re: Saving Sam's list
---cut here---
#/bin/ksh
cat <
Disk Summary for `hostname`
version 1.0
HP-UX Disk Device Vendor Type Size(Kb)
--------------------------------------------------------------------
HEAD
ioscan -kfnC disk|awk 'NR>2 {print $NF}'|grep -iv SUBSYSTEM|grep rdsk|while read
disk;do
diskinfo $disk>/tmp/diskinfo.$$ 2>/dev/null
[ $? -eq 1 ] && continue
vendor=`cat /tmp/diskinfo.$$|grep vendor:|awk -F: '{print $NF}'`
type=`cat /tmp/diskinfo.$$|grep id:|awk -F: '{print $NF}'`
size=`cat /tmp/diskinfo.$$|grep size:|awk '{print $2}'`
[ $size -eq 0 ] && continue
printf "%-22s %-12s %-20s %9d\n" $disk "$vendor" "$type" $size
done
[ -f /tmp/diskinfo.$$ ] && rm /tmp/diskinfo.$$
--end cut--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2009 10:46 AM
тАО08-11-2009 10:46 AM
Re: Saving Sam's list
Yes. There is a option. Once you get into the desired section of SAM goto File -> Print -> selcet as File ->give the filename to save(Ex:/tmp/lvnames.txt
Content will be saved in the above file. You can view all the lvnames
Ganesh.