- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Urgent:How to get the node name
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
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
тАО09-22-2008 09:19 AM
тАО09-22-2008 09:19 AM
Urgent:How to get the node name
I have some custom code written in some node of a module.In that code i am displaying an error Msg.By using the active module i can get the current module where the code is present, but i also want the Current node i which the code is present. Can anyone Plz help me in this regard.I tried using ActiveDialogName ,but its not working.
Thanks in Advance,
Shiva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 09:36 AM
тАО09-22-2008 09:36 AM
Re: Urgent:How to get the node name
NODENAME is an environment variable.
echo $NODENAME
Normally it is set in /etc/profile
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 02:52 PM
тАО09-22-2008 02:52 PM
Re: Urgent:How to get the node name
Thanks for your response. Can you eleborate a bit on that.Can i directly use the echo$Nodename in my Msgbox code.
Regards,
Shiva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 05:45 PM
тАО09-22-2008 05:45 PM
Re: Urgent:How to get the node name
NODENAME=`hostname`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 08:38 PM
тАО09-22-2008 08:38 PM
Re: Urgent:How to get the node name
Two way to do the same
1. Using variable that is
nodename=`hostname`
echo $nodename
Or
printf "NODENAME : "$nodename for formatted output
2. Using directly
echo ├в my nodename is : `hostname` is having os `uname ├в s`├в
Suraj