Showing posts with label BIG-IP v4. Show all posts
Showing posts with label BIG-IP v4. Show all posts

Wednesday, November 25, 2009

F5 BIGIP: Verify/Restart SNMP Daemon

Just in case you need to check the status and/or restart the SNMP daemon of the bigip (i.e., because it has stopped responding to SNMP polling), enter the following commands via the CLI:

For BIGIP v4
  1. Check the SNMP daemon status:
    /etc/bigstart/status/S40snmpd status

    The correct output should be:
    Status snmpd: (pid xxxxx) is running
    Status bigsnmpd: (pid yyyyy) is running
    Status rlxsnmpd: is not running


  2. If the result is different from above (i.e., bigsnmpd is not running), restart the SNMP daemon:
    /etc/bigstart/status/S40snmpd restart



For BIGIP v9
  1. Check the current status of the SNMP daemon:
    bigstart status snmpd


  2. Restart the SNMP daemon
    bigstart restart snmpd


  3. Verify status of the SNMP daemon:
    bigstart status snmpd


  4. Example:
    [root@bigip:Active]~# bigstart status snmpd
    snmpd run (pid 12707) 90 days, 1 start
    [root@bigip:Active]~# bigstart restart snmpd
    [root@bigip:Active]~# bigstart status snmpd
    snmpd run (pid 4822) 6 seconds, 2 starts
    [root@bigip:Active]~#

Tuesday, July 28, 2009

BIG-IP License Error - Permission denied

Scenario:
After a reboot, the BIG-IP returns a licensing error. Reactivating the license does not work as well.

In the qkview output, we see the following:

2009-07-19 22:56:17,428 ERROR [Thread-15] util.F5Error: - An error has occurred while trying to process your request.

java.io.FileNotFoundException: /var/tmp/bigip.license (Permission denied)



Workaround:
  • Delete /var/tmp/bigip.license file if it exists.

  • Ensure that the user you are logged into has full premissions / full admin rights to the BIG-IP box.

  • Reactivate the license file.
  • Tuesday, July 29, 2008

    BIG-IP v4 - Common bigstart commands

    The bigstart is the command used for controlling the F5 BIGIP daemons/services. For Windows users, this is synonymous to Control Panel -> Admin Tools -> Services. Here is BIG-IP v4.x bigstart command syntax dissected:


    SYNTAX

    bigstart [-d] action [id]

    • -d
      Lists the execution order of the services for the specified action command.

    • action
      Performs whatever action is specified. Values are startup, shutdown, active, standby, status, reinit and restart.

    • id
      The specific service on which the specified action would be acted upon. That is, for example, bigstart shutdown named will shutdown the service named.


    ACTIONS
    • startup
      The target program commences. Bigstart startup is called from /etc/rc before rc.local is executed.

    • shutdown
      The target program should shut down gracefully.

    • active
      The target program takes any action necessary whenits host BIG-IP becomes the active unit. Bigstart active is called when the BIG-IP becomes the active
      BIG-IP.

    • standby
      The target program takes any action necessary when its host BIG-IP becomes the standby unit.

    • reinit
      The target program initializes itself from its configuration data.

    • restart
      The target program is to be restarted. Typically this means the program will be stopped then started.

    • status
      The target program responds by providing some status information.




    SCRIPT AND ACTION DIRECTORIES

    The scripts for each of the services are in the /etc/bigstart/scripts directory.

    Each of the actions have their own individual action directories in /etc/bigstart/action. Files in the action directories are actually symbolic links pointing to the actual scripts in the /etc/bigstart/scripts directory.


    SYMBOLIC LINK FORMAT

    Each symbolic link in the action directories follow this naming convention:

    SNNString

    NN - two digit number that determines the execution order of the services.

    String - name of the service

    The contents of, say, /etc/bigstart/startup will correspond to the output of the command bigstart -d startup.


    CASE STUDY: PREVENT A SERVICE FROM RUNNING ON STARTUP

    Scenario: In our setup, the name service named of the BIG-IP is not being used. Hence, it was decided to be not started during device startup.

    Procedure:
    1. Verify the status of the named service:

      bigip:# bigstart status named
      bigstart: status named
      status named: (pid=1130) is running
      bigip:#


    2. Shutdown the service:

      bigip:# bigstart shutdown named
      bigip:#


    3. Remove the named symbolic link in the startup action directory:

      bigip:# cd /etc/bigstart/startup
      bigip:/etc/bigstart/startup# ls *named*
      S10named
      bigip:/etc/bigstart/startup# rm S10named
      remove S10named? y
      bigip:/etc/bigstart/startup#


    Verification
    • Verify that the service is not in the execution order for the startup action.

      bigip:# bigstart -d startup
      ...
      <output omitted>
      ...


    • Verify status of the current running status of the service:

      bigip:# bigstart status named
      bigstart: status named
      status named: is not running
      bigip:#



    Friday, July 11, 2008

    BIG-IP RADIUS Login Authentication Checklist

    Our network BIG-IP suddenly had login problems after a firmware upgrade. I'd confirm at a later date (i.e., after upgrade of another F5 BIG-IP) if an upgrade indeed causes a authentication problems. The good thing is that the local root password was not affected. Anyway, here are some points to consider when troubleshooting remote RADIUS login authentication on BIG-IP via CLI (and some UNIX/Linux servers).

    REQUIRED INFORMATION:
    - RADIUS server IP address(es)
    - RADIUS server port (default is TCP 1812)
    - RADIUS server secret key


    BIG-IPv4 Checklist:
    • RADIUS server IP address and TCP port is configured in /etc/login.conf.

        radius-defaults:auth=radius,bploc,passwd:\
           :radius-server=10.10.10.10:\
           :radius-port=1812:\
           :radius-server-alt=10.10.20.10:\
           :radius-port-alt=1812:


    • RADIUS server IP address and secret key is configured in /etc/raddb/servers.

        MyBIGIP:~# cat /etc/raddb/servers
        10.10.10.10 myKey123
        10.10.20.10 myKey123
        MyBIGIP:~#


    BIG-IPv9 Checklist:
    • RADIUS server IP address, port, and secret key are in /etc/raddb/server.

        MyBIGIPv9:~# cat /etc/raddb/server
        10.10.10.10:1812 myKey123 3
        10.10.20.10:1812 myKey123 3
        MyBIGIPv9:~#


    • RADIUS server IP address and secret key are defined in the /config/bigip.conf under the radius server sections.

      radius server system_auth_name1 {
         server "10.10.10.10"
         secret "myKey123"
      }
      radius server system_auth_name2 {
         server "10.10.20.10"
         secret "myKey123"
      }
      auth radius system-auth {
         server system_auth_name1 system_auth_name2
      }


      You can opt to modify this file via the GUI, in System > Users > Authentication.