you should be running 'getlic' from within NSH - is that the case ?
Before you run getlic run this command.
@ is a shortcut in nsh for the machine you are physically running the nsh shell on. If you open nsh and cd to //blappserver/ nsh does not realize it is on the physical machine blappserver it could be a remote machine to its knowledge. When you cd to //@/ your prompt will still be <appserver%> but your nsh context is now local. getlic should no longer give you the "getlic: Command and be run only on local host" error.
Thanks a lot Bill / Dan for the info.
your current path is on a remote server, e.g. //remoteserver/etc
cd to //@
which is shorthand for the local machine that you are running nsh from.
getlic should then work, and will dump the license.raw file into the current working directory.
for some reason, I didn't see the earlier replies!