How to push client from solaris master to HP client ?
Updated: 21 Sep 2010 | 12 comments
Hi,
I am having problem while pushing the client from solaris master to HP Client from command line. The below is what i get
pbrun ./update_clients -Force_Install -Install_Client_Bins -ClientList /tmp/client
/usr/openv/netbackup/bin/update_clients: uname: not found
usage: /usr/openv/netbackup/bin/update_clients [-ForceInstall -Install_Client_Bins -Install_SNC] \
[-ClientList filename | hardware_type operating_system]
/tmp/client is the location for the name and make of the client on which needs a client install for 6.5.3
We need to push this client as this is production server and we cannot afford to apply patches to upgrade already existing 6.5 client ..
Any advices on this ?
discussion Filed Under:
Comments
This error:
/usr/openv/netbackup/bin/update_clients: uname: not found
looks to me like it cannot find the 'uname' command on the server you are running update_clients from.
Can you confirm it is in the $PATH in the environment you are running it from?
# which uname
/usr/bin/uname
# echo $PATH
/usr/sbin:/usr/bin:/opt/openv/netbackup/bin/goodies:/opt/openv/netbackup/bin:/etc/opt/SUNWconn/bin:/opt/openv/netbackup/bin/admincmd:/opt/openv/volmgr/bin
***EDIT***
Never even heard of pbrun let alone used it so not sure what happens to environment variables (such as $PATH) when this is utilised!
Regards Andy
"It's not too late to panic ..."
It has nothing to do with
It has nothing to do with pbrun , or with uname i am sure of that ....
Why are you sure it's not a
Why are you sure it's not a uname error?
/usr/openv/netbackup/bin/update_clients: uname: not found
How can this message be explained if it's not a uname error?
No
it's probably a user environment variables (PATH) issue.
Regards Andy
"It's not too late to panic ..."
The PATH of uname, right? ;-)
I think we're agreeing to agree!
Indeed!
But will we ever find out?
Regards Andy
"It's not too late to panic ..."
Andy is a well respected troubleshooter on this board
he should not be given a negative vote for taking a crack at your issue.
Vote for Andy suggestion
I have checked the update_client script and the uname command is called without the path to the binary. Andy is right in his suggestion.
@wizard_s32: Are you running the script as root ?
Assumption is the mother of all mess ups.
If this post solved you’re questions please send a gratitude by marking it as a solution.
You've done the same as me
& come to the same conclusion.
One way to prove this would be to manually input the PATH variable at the start of the 'update_clients' script & then see if it works (or at least gets past the uname not found error). OR add echo $PATH to at least determine what it's using.
@wizard_s32:
This is why I made my original suggestion from the error that you supplied:
# echo $PATH
/usr/sbin:/usr/bin:/opt/openv/netbackup/bin/goodies:/opt/openv/netbackup/bin:/etc/opt/SUNW:/opt/openv/volmgr/bin
#
# which uname
/usr/bin/uname
#
# PATH=/usr/sbin
#
# echo $PATH
/usr/sbin
#
# uname -a
uname: not found
uname is not in the $PATH being used for the current shell & is therefore not found
And further:
# echo $PATH
/usr/sbin
#
# /opt/openv/netbackup/bin/update_clients
/opt/openv/netbackup/bin/update_clients: uname: not found
Regards Andy
"It's not too late to panic ..."
Googling pbrun gave up "PowerBroker 2.7"
from which, it appears, pbrun is a component/executable. From this, you may want to check entries for setenv (or even keepenv) for PATH in /etc/pb.conf for the user concerned (root?)
"...
a particular job's run-time operating environment can be set up with Symark PowerBroker. To securely delegate commands, system administrators must prevent users from running UNIX commands from anywhere other than the system directories. Using setenv in /etc/pb.conf prevents the system administrator from having to hard code the directory to the user's PATH, which eliminates the user from obtaining access to more files/programs than they need.
..."
Regards Andy
"It's not too late to panic ..."
Andy, I admire your patience
Andy, I admire your patience
Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows.
Handy NBU links
Hello its simple using gui
When installing the patch or client on any server it will ask the local or remote installation, from remote installation u can push the clients.
Would you like to reply?
Login or Register to post your comment.