Forum Discussion

Bob_M_10973's avatar
Bob_M_10973
Icon for Nimbostratus rankNimbostratus
Mar 25, 2009

shell on F5 does not respond as normal shell

I would search the forums for this but the hyperlinks returned upon searches don't work..

 

 

This link:

 

http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/LTM_Backup_Shell_Script.html

 

 

has a handy script for backing up configs to an sftp server. Problem is, when it reaches the line:

 

export b=`hostname`...

 

 

the shell complains that you should use bigpipe commands to configure the system and of course the export command fails to do what it's supposed to. Since I'm aware of what the hostname is, I could just hardwire it but that is against my religion.

 

 

It also means there are other commands that will probably come up due to this behavior so it'd be better to understand why this is happeing and know how to deal with it. I tried this with bash and sh and both produce the same error.

 

 

Oh, if anyone can tell me why searches aren't working on this forum...

7 Replies

  • The hostname command was changed in 9.4.2+ to an annoying alias suggesting you use the 'b system hostname' command to change the hostname. You can avoid this by using the full path for the real hostname command '/bin/hostname' or by using 'command hostname':

     

     

    [me@ltm:Active] ~ uname -a

     

    Linux ltm.example.net 2.4.21-9.4.6.401.0smp 2 SMP Fri Oct 31 08:15:59 PDT 2008 i686 i686 i386 GNU/Linux

     

     

    [me@ltm:Active] ~ hostname

     

    Use the bigpipe shell utility to make changes to the system configuration.

     

    For more information, see "bigpipe system help."

     

     

    [me@ltm:Active] ~ /bin/hostname

     

    ltm.example.net

     

     

    [me@ltm:Active] ~ command hostname

     

    ltm.example.net

     

     

    I updated cmbhatt's script to use /bin/hostname as it's a bit shorter and more intuitive than command hostname.

     

     

    I'm not sure what the problem is with forum searches. Any DC admin able to take a look?

     

     

    Aaron
  • Are you saying the links are failing, or that you are not receiving any results? I can't reproduce the former in IE or Firefox, and for the latter, click the search button to the right of the text field instead of hitting return and you should get results.
  • Word from Joe is that the problem with hitting return on the forum search is fixed!
  • the search is not the problem, it is the hyperlinks returned by the search, clicking on them gives a "Page not found" error
  • and thanks julio for the note on /bin/hostname

     

    BUT

     

    i thought only microsoft hijacked keywords that the ENTIRE WORLD has agreed on then gone on to redefined them, hide the fact in a release note somewhere then shook their heads wondering why the ENTIRE WORLD doesn't accept their wisdom or at least search their entire website for a few hours just to make sure all is well
  • don't want this to get lost so here's a screenshot of the error when i click on a list of search items returned by the search, again:

     

     

    the search is not the problem, it is the hyperlinks returned by the search, clicking on them gives a "Page not found" error
  • The link in your browser snapshot above that is failing for you works just fine for me in IE7, Firefox3, and Opera9. I don't have an earlier version of IE that I can test from, anyone else?