GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: one liner
Operating System - HP-UX
1850488
Members
2693
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
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
09-23-2010 06:58 AM
09-23-2010 06:58 AM
Hi all
We want to run the following grep command and get the output read by lanadmin -x
grep -s -e PRIMARY -e STANDBY /etc/lanmon/lanconfig.ascii | awk '{print $2}' | cut -c 4-
so we get 5 6 7 8 , etc and want to run lanadmin -x for each of them
But want this on one line so can ssh it around - how do you pass the output one at a time to lanadmin ?
We want to run the following grep command and get the output read by lanadmin -x
grep -s -e PRIMARY -e STANDBY /etc/lanmon/lanconfig.ascii | awk '{print $2}' | cut -c 4-
so we get 5 6 7 8 , etc and want to run lanadmin -x for each of them
But want this on one line so can ssh it around - how do you pass the output one at a time to lanadmin ?
Solved! Go to Solution.
- Tags:
- lanadmin
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2010 07:58 AM
- Tags:
- awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2010 01:01 AM
09-24-2010 01:01 AM
Re: one liner
Many thanks that was perfect !!
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 2026 Hewlett Packard Enterprise Development LP