- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Saving Sam's list
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP