setuname(1M)setuname(1M)NAME
setuname - change machine information
SYNOPSIS
name] node]
DESCRIPTION
The command is used to modify the value for system name and/or the node name by using the appropriate option(s).
The command attempts to change the parameter values in both the running kernel and the system configuration to cross reboots. A temporary
change affects only the running kernel.
Options
The command supports the following options:
Changes the system name (for example, HP-UX) in the
field of the structure where name is the new system name and consists of alphanumeric characters and the special
characters dash, underbar, and dollar sign.
Changes the name in the
field of the structure where node specifies the new node name and consists of alphanumeric characters and the special
characters dash, underbar, and dollar sign.
Signifies a temporary change.
The change will not survive a reboot.
Either or both of the or options must be given when invoking
The size of the name and node is limited to characters. is defined in Only users having appropriate privileges can use this command.
EXAMPLES
To permanently change the system name to and the node name to issue the following command:
To temporarily change the system name to and the node name to issue the following command:
WARNINGS
Setting a nodename of more than 8 bytes is possible only with the appropriate configuration options enabled. It is strongly recommended
that all related documentation be completely understood before setting a larger node name. A node name larger than 8 bytes can cause
anomalous or incorrect behavior in applications which use the command or the system function to access the name.
SEE ALSO uname(1), uname(2), nodehostnamesize(5).
setuname(1M)
Check Out this Related Man Page
nodehostnamesize(5) File Formats Manual nodehostnamesize(5)NAME
nodehostnamesize - size of node name and host name
DESCRIPTION
The HP-UX operating system default configuration allows the system node name and host name to be up to 8 and 64 bytes in length, respec-
tively. The node name supports the UUCP utilities. The host name supports the internet Domain Name Services (DNS) host name label.
Setting a node name of more than 8 bytes or a host name of more than 64 bytes is possible only with the appropriate configuration options
enabled.
APPLICATION USAGE
See the whitepaper for more information.
WARNINGS
It is strongly recommended that all related documentation be completely understood before setting a larger node or host name. A node name
larger than 8 bytes, or host name larger than 64 bytes, can cause anomalous behavior or failure in applications which use the and/or com-
mands or the and/or system functions to obtain the names.
SEE ALSO hostname(1), uname(1), uucp(1), setuname(1M), gethostname(2), sethostname(2), uname(2), hostname(5).
whitepaper, available on
nodehostnamesize(5)
I want to know how to find a node path of a unix command. I tried the command which, but it didn't find the "makekey" command node path... Are there any tricks about the "which" command? Should I use this command on a special level of directories? Moreover, I am accessing in remote the computers of... (5 Replies)
I am trying to change an IP address on a machine running HPUX10
After I change it I can ping it from the outside but it completely locks the console. After a reboot it returns back to its previous IP. Any ideas??
Thanks
Brian (7 Replies)
somehow one of my directories got a number of files whose names start with a dash -
e.g. -1129.txt
how can I remove them?
If I issue rm -1129.txt I get the message of illegal options
if I issue rm /-1129.txt I get a message that -1129.txt is not found
Lisa
HP-UX 11.23 i64 (3 Replies)
Hi,
I want to removing ^M characters from a file and combine the line with the next line.
ex:
issue i have:
ABC^M^M
DEF
solution i need:
ABCDEF
I found that you by using the following command you can remove new line characters.
tr -d '\r' < infile.csv > outfile.csv
still... (10 Replies)
Hi Forum.
I've tried to search online for a solution but I cannot seem to find one.
Hopefully, someone here can help me out. I would appreciate it.
Input file abc.txt:
$InputFile_Borrower=CMTSLST\EDW_COMMERCIAL_MTGE_BORROWER_dat.lst... (14 Replies)
Hey,
I am getting the following error when I try to run a particular binary.
fatal: libmathpack.SunOS.so.1: open failed: No such file or directory
I have tried searching the Sun forums as well as google for any pointers towards what I might be missing.
Anyone seen this before ?
Thanks a... (7 Replies)
Hi all,
I was wondering how can i see the special characters like \t, \n or anything else in a file by using Nano or any other linux command like less, more etc (6 Replies)
Hi All,
I am new to Unix and trying to run some scripting on a linux box. I am trying to remove the non alphanumeric characters and alpha characters from the following line.
<measResults>883250 869.898 86432.4 809875.22 804609 60023 59715 </measResults>
Desired output is:
883250... (6 Replies)
Hello all,
I'll try to be as descriptive as possible, but the issue was described extremely vague to me. Essentially, we were running a performance test today and ran into configuration mismatch issues with our Oracle Web Services Manager, which in the end caused delays in our efforts. I believe... (3 Replies)
Hi. I found an issue with my appvg present in my server.my server is a single node and not part of hacmp.
pmut3# lspv
hdisk0 00c5c9cf92ebb96a rootvg active
hdisk1 00c5c9cfcf30eee9 appvg
hdisk2 00c5c9cfcf30ef98 ... (5 Replies)
Hallo Team,
I am trying to get rid of the dollar sign. I managed to remove all the other special characters but i am struggling with this one.
-bash-3.2$ cat -e missing_revenue_20141112.csv|less|head
BW0522168531211141180935668@196.23.110.141$
BW092218784121114-370120610@196.23.110.141$... (4 Replies)
Heyas
With my forum search term 'issue with leading dash' i found 2 closed threads which sadly didnt help me.
Also me was to eager to add the script, that i didnt properly test, and just now figured this issue.
So i have this code:
if ]
then while read line
do line="${line/-/'\-'}"... (7 Replies)
Hello,
I have a file temp.txt with the below contents :
Sep 9 03:04:51 adcsdp01 MAPDR2_00: Unable to open trace file adpstartarv.log. (Error 110 Resource temporarily unavailable)
Sep 9 03:05:35 adcsdp01 MAPDR2_00: SAP Service ADPMR2_00 successfully started.
Sep 9 03:04:51 adcsdp01... (7 Replies)
Hi Guys,
I need to replace the string based on specific value by keeping dollar sign
input=$1
var=$(echo "@code_temp_table_$value_table"| sed -r "s/\@code/${input}/;s/(nz|sa)_\$value_/\$value1_\1_/" )
Expected
if
input=nz,sa
then
nz_temp_table_$value1_table
else
if any other... (5 Replies)