- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: The specified number is not valid for this com...
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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
02-05-2003 11:22 PM
02-05-2003 11:22 PM
sbin/rc[38]: 048 The specified number is not valid for this command
This message is displayed after the DHCP message and before the start of the list of services being started. HPUX 11.00 QPK1100 SEP 2002
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:35 PM
02-05-2003 11:35 PM
Re: The specified number is not valid for this command
Was this message displayed on the first reboot of the system after applying the patch bundle?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:45 PM
02-05-2003 11:45 PM
Re: The specified number is not valid for this command
yes, the message displayed on the first reboot of the system, after applying QPK1100 SEP 2002.
There are no changes in sbin/rc or /etc/rc.config.d
The colored highlights on status message (list of services being started) are all white. Normaly its green or yellow.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 01:59 AM
02-06-2003 01:59 AM
SolutionSee for example the following thread (for 11.11, but, as far as I know, the problem is similar for 11.00):
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x161e06350fe2d61190050090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:04 AM
02-06-2003 02:04 AM
Re: The specified number is not valid for this command
See if you have loaded patch PHCO_26789.
It has the following strange special instructions.
..
Special Installation Instructions:
Shell now recognizes octal and hexa numbers inside arithmetic expression.
This may have impact on some of the scripts.
For example: rc.utils might have configured as follows:
let ROWS="$rows"
let COLS="$cols"
Now, if the rows/cols variables start with a 0, the shell will interpret the
data as octal numbers resulting in incorrect interpretations or errors. Hence we
advise users to change the rc.utils as follows:
let ROWS="${rows##*(0)}"
let COLS="${cols##*(0)}"
If so try the change as it happened to me.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 03:14 AM
02-06-2003 03:14 AM
Re: The specified number is not valid for this command
thanks to all, the problem is solved. Steve and Frank had the correct reference
That is the solution:
let ROWS="${rows##*(0)}"
let COLS="${cols##*(0)}"
Bye,
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 03:30 AM
02-06-2003 03:30 AM
Re: The specified number is not valid for this command
Can this be changed proactively (i.e. before the QPK is applied)?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 04:27 AM
02-06-2003 04:27 AM
Re: The specified number is not valid for this command
As far as I know, this can be changed proactively (i.e. before the QPK is applied).
The problem is that the shell treats 048, i.e. with a leading zero, as octal and you can not have octal 8. The "${rows##*(0)}" construct strips of the leading zero(s) and also works in an old shell:
$ rows=048
$ let ROWS="${rows##*(0)}"
$ echo $ROWS
48
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 04:49 AM
02-06-2003 04:49 AM
Re: The specified number is not valid for this command
Pete
Pete