HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Your input: effects of truncating hw path in l...
Operating System - HP-UX
1833704
Members
3181
Online
110062
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
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
10-17-2005 05:02 AM
10-17-2005 05:02 AM
Your input: effects of truncating hw path in lanscan?
Hi,
In future HP-UX releases, HP may have to deal with longer hw paths, therefore output of commands such as lanscan may go beyong the 80 chars of a line.
We would like to have your input as users on the following:
1. how disruptive would it be to have an output line go beyond 80 chars? why?
2. how disruptive would it be to truncate the hw path in the default output (for instance, showing 0/1/2/0*) and to show the whole hw path in the verbose mode only?
Any chance we would break your scripts doing so? Do your scripts analyze the contents or just the number of fields?
Note: same problem may happen in ioscan.
What looks like the best alternative to the problem of line length? Any other ideas?
Thanks,
Marie.
In future HP-UX releases, HP may have to deal with longer hw paths, therefore output of commands such as lanscan may go beyong the 80 chars of a line.
We would like to have your input as users on the following:
1. how disruptive would it be to have an output line go beyond 80 chars? why?
2. how disruptive would it be to truncate the hw path in the default output (for instance, showing 0/1/2/0*) and to show the whole hw path in the verbose mode only?
Any chance we would break your scripts doing so? Do your scripts analyze the contents or just the number of fields?
Note: same problem may happen in ioscan.
What looks like the best alternative to the problem of line length? Any other ideas?
Thanks,
Marie.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2005 05:48 AM
10-17-2005 05:48 AM
Re: Your input: effects of truncating hw path in lanscan?
Wow, I've never imagined paths that long. Can we ask what would cause paths to be that long?
However, I think for compatibility reasons, it would have to live in the same line as it does now. But, via command line switches different formatting options could be offered, as the ability to wrap a path at least on its own line would be nicer for visual presentation.
However, I think for compatibility reasons, it would have to live in the same line as it does now. But, via command line switches different formatting options could be offered, as the ability to wrap a path at least on its own line would be nicer for visual presentation.
We are the people our parents warned us about --Jimmy Buffett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2005 01:02 PM
10-17-2005 01:02 PM
Re: Your input: effects of truncating hw path in lanscan?
Whatever you do, do *NOT* split the line like bdf does. I'm sure some script writers assume column positions but after a few sysadmin scripts, they'll find out about awk and whitespace fields. For backward compatibility, I would just keep extending the field width as needed and keep the field count the same. You can always add a -n (nice format, like vmstat) which removes intermediate path info, something like:
0/1..15/2
which provides base and detailed info (better than 0/1/2*).
vmstat has survived for years with default output longer than 80 characters and ioscan has been (slightly) exceeding 80 characters for a long time too. The key is that the field count stays the same for parsing.
A nice feature would be to add a no-header option so script writers don't have to strip line 1 off the commands.
Bill Hassell, sysadmin
0/1..15/2
which provides base and detailed info (better than 0/1/2*).
vmstat has survived for years with default output longer than 80 characters and ioscan has been (slightly) exceeding 80 characters for a long time too. The key is that the field count stays the same for parsing.
A nice feature would be to add a no-header option so script writers don't have to strip line 1 off the commands.
Bill Hassell, sysadmin
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