- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- HPE 3PAR StoreServ Storage
- >
- How do I use HP 3PAR cli commands?
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
02-02-2012 01:37 PM
02-02-2012 01:37 PM
All:
1st, am I in the correct Forum?
2nd, question: I'm used to EMC symcli and naviseccli, where you just issue the command you want, and then you "awk" or "grep" the output as you see fit. On the 3PAR, apparently, you issue the command "cli", then you get a "cli prompt" then you execute your commands. How do you run "scripts" of commands, with "awk" and "grep", etc?
Does anybody have a simple example of a 3PAR script session they can show me?
Stuart
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-2012 01:56 PM
02-02-2012 01:56 PM
Re: How do I use HP 3PAR cli commands?
>am I in the correct Forum?
(I've asked the topic to be moved to SAN enterprise.)
>On the 3PAR, apparently, you issue the command "cli", then you get a "cli prompt" then you execute your commands. How do you run "scripts" of commands, with "awk" and "grep", etc?
You can invoke cli in several ways.
1) Invoke the cli shell and do several commands, as you did.
2) Invoke cli with the command on the command line:
cli shownode
3) Or invoke the command directly as "shownode", which basically does 2).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-2012 02:14 PM
02-02-2012 02:14 PM
Re: How do I use HP 3PAR cli commands?
Dennis:
that's great news! but if I run "cli shownode" or just "shownode" how do I specify the Array IP address, my username and my password? Do i stick it in the command? Is there some kind of "environmnet setup"?
Stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-2012 03:02 PM - edited 02-28-2015 04:23 PM
02-02-2012 03:02 PM - edited 02-28-2015 04:23 PM
Solution>if I run "cli shownode" or just "shownode" how do I specify the Array IP address, my username and my password? Do I stick it in the command? Is there some kind of "environment setup"?
Two ways:
1) export TPDSYSNAME & TPDPWFILE
2) Use the -sys & –pwf options. (Or –user & –password instead of -pwf.)
See cli command page 70.
See setpassword command page 310 to create the -pwf file.
3.2.1 CLI ref manual:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-03-2012 07:02 AM
02-03-2012 07:02 AM
Re: How do I use HP 3PAR cli commands?
Dennis:
Thanks. I will try this today.
Stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-06-2012 07:52 AM
02-06-2012 07:52 AM
Re: How do I use HP 3PAR cli commands?
Note: If you have more than one array, you need a separate password file for each, even if they have the same username and password.
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-06-2012 06:46 PM - edited 02-08-2012 03:50 PM
02-06-2012 06:46 PM - edited 02-08-2012 03:50 PM
Re: How do I use HP 3PAR cli commands?
>you need a separate password file for each, even if they have the same username and password.
You're right for a normal user name. And it also fails if you delete and recreate the same user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-2012 03:49 PM
02-08-2012 03:49 PM
Re: How do I use HP 3PAR cli commands?
>If you have more than one array, you need a separate password file for each, even if they have the same username and password.
There is an obvious solution to this. :-)
1) On the first machine use createuser
2) Then login to that user and use setpassword -saveonly -file file1
3) Look inside file1 to get the encrypted password
Then on other machines, use:
createuser -e encrypted-password ...
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP