- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Reading in variables (system names) from OVO i...
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
тАО12-04-2002 07:42 AM
тАО12-04-2002 07:42 AM
Thanks!
Jeff (new to scripting)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2002 07:51 AM
тАО12-04-2002 07:51 AM
Re: Reading in variables (system names) from OVO into a script.
In HP-UX you can use hostname command. This shows you the name of the machine.
Regards, Vicente.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2002 08:25 AM
тАО12-04-2002 08:25 AM
Re: Reading in variables (system names) from OVO into a script.
e.g.
POSIX shell (i.e. standard HP-UX sh)
node=$(/usr/bin/uname -n)
or
node=$(/usr/bin/hostname)
in other shell you may have to use backticks instead of $(...)
node=`/usr/bin/uname -n`
If you like Perl you can either use
use POSIX;
my ($node) = (POSIX::uname)[1];
or
use Sys::Hostname;
my $node = hostname;
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2002 09:45 AM
тАО12-04-2002 09:45 AM
Solutionin Opc/ITO/VPO/OVO the "Applications" in your "Application Bank" get the names of the selected "Managed Nodes" passed over in the variable "$OPC_NODES".
So within your script you do something like:
for node in $OPC_NODES
do echo "going for $node:"
# call your command here
echo "done with $node"
done
Find the details in the OVO "Application Integration Guide", chapter 3 (="Integrating External Applications into the VPO GUI")...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2002 01:50 PM
тАО12-04-2002 01:50 PM
Re: Reading in variables (system names) from OVO into a script.
Thank you Wodisch for YOUR help!!
Jeff