- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgdisplay output and MCSG
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
тАО07-07-2005 08:35 AM
тАО07-07-2005 08:35 AM
Working with HPUX 11.23, MCSG 11.16, ia64 systems.
Trying to write a script that uses the vgdisplay command. Trouble is I do not want the VGs that are not activated.
Tried using grep -v, parsing through the /etc/lvmtab file, etc.
Any hints?
Thanks
Solved! Go to Solution.
- Tags:
- vgdisplay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 08:45 AM
тАО07-07-2005 08:45 AM
SolutionAfter getting your VG name from /etc/lvmtab then:
vgdisplay -v ${VGNAME} > /dev/null 2>&1
STAT=${?}
if [[ ${STAT} -eq 0 ]]
then # ok
vgdisplay -v ${VGNAME}
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 08:48 AM
тАО07-07-2005 08:48 AM
Re: vgdisplay output and MCSG
vgdisplay | grep -v "not activated" | grep -v "Cannot display" > /tmp/file
and the output is the details from active groups only. error messages dump to screen. for some bizzare reason I could not get itto work with 2>/dev/null directive.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 08:51 AM
тАО07-07-2005 08:51 AM
Re: vgdisplay output and MCSG
vgdisplay 2>/dev/null
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2005 08:51 AM
тАО07-07-2005 08:51 AM
Re: vgdisplay output and MCSG
Mel - I was having similar issues as well.
Thanks to both of you!