HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell script
Operating System - HP-UX
1834395
Members
7277
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
05-19-2004 01:16 AM
05-19-2004 01:16 AM
Hello,
I am trying to write a fairly simple shell script & need some help(see below), instead of changing the script for every VA array I want a universal script so i don't have to change the alias every time. Also attached is a sample output of the command that gives the array alias.
#script at the moment#
mkdir /va || exit 1
armdowmload -I D imogenva74-1 > /va/armdownload_I.txt || exit 1
armdsp -d imogenva74-1 > /va/armdsp_d.txt || exit 1
armdiag -W imogenva74-1 > /va/armdiag_W.txt || exit 1
armdsp -c imogenva74-1 > /va/armdsp_c.txt || exit 1
armdsp -a imogenva74-1 > /va/armdsp_a.txt || exit 1
cd /va || exit 1
tar cvf /tmp/vainfo.tar . || exit 1
cd / || exit 1
rm -R /va
print THE OUTPUT IS IN /tmp/vainfo.tar PLEASE E-MAIL TO aidan.mcardle@hp.com || exit 1
#armdsp -i
Product ID: HP-A6189A
Device Type: Virtual Disk Array
Alias: imogenva74-1
World Wide Name: 50060b0000092940
Unique ID: HPA6189A00SG141G0061
Serial Number: 00SG141G0061
I am trying to write a fairly simple shell script & need some help(see below), instead of changing the script for every VA array I want a universal script so i don't have to change the alias every time. Also attached is a sample output of the command that gives the array alias.
#script at the moment#
mkdir /va || exit 1
armdowmload -I D imogenva74-1 > /va/armdownload_I.txt || exit 1
armdsp -d imogenva74-1 > /va/armdsp_d.txt || exit 1
armdiag -W imogenva74-1 > /va/armdiag_W.txt || exit 1
armdsp -c imogenva74-1 > /va/armdsp_c.txt || exit 1
armdsp -a imogenva74-1 > /va/armdsp_a.txt || exit 1
cd /va || exit 1
tar cvf /tmp/vainfo.tar . || exit 1
cd / || exit 1
rm -R /va
print THE OUTPUT IS IN /tmp/vainfo.tar PLEASE E-MAIL TO aidan.mcardle@hp.com || exit 1
#armdsp -i
Product ID: HP-A6189A
Device Type: Virtual Disk Array
Alias: imogenva74-1
World Wide Name: 50060b0000092940
Unique ID: HPA6189A00SG141G0061
Serial Number: 00SG141G0061
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 01:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 01:38 AM
05-19-2004 01:38 AM
Re: Shell script
Thanks Patrick, I will try this.
Aidan
Aidan
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP