Showing posts with label BIG-IP v9. Show all posts
Showing posts with label BIG-IP v9. 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.
  • 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.


    Monday, June 23, 2008

    Case Study: D51 BIGIPv9 cannot be accessed via Web User Interface

    Device:
    Hardware: BIG-IP 5100 (D51)
    Software: BIG-IP 9.2.3 Build 34.3

    Problem / Symptoms:
    - Device access via the GUI results in a page containing only "Configuration Utility is restarting";
    - Device access via SSH and console works as expected.

    Error Messages Encountered:
    - GUI: Only message is "Configuration Utility is restarting" and that's it;
    - SSH/Console: repeatedly gets the message "tomcat4 can't start because /var is at 100%"

    Root Cause:
    Most UNIX (Linux)-based network devices use Tomcat as the webserver, which then enables any web-based service (in this case, the Management GUI) on the device.

    In this case, an existing bug in the current OS version causes the system to create jar_cache files which accumulates in the /var/cache/tomcat4/temp directory, which may eventually lead to the Java Virtual Machine (JVM) halting unexpectedly.

    As in this case, the 100% of the /var partition has been used up.

    Workaround:
    1. Login (via SSH or console) into the device. As soon as you login, you should see the tomcat4 failing to startup messages such as the following:

    Jun 19 11:04:40 x81glx04 LOGIN: tomcat4 can't start because /var is at 100%.
    Jun 19 11:04:50 x81glx04 LOGIN: tomcat4 can't start because /var is at 100%.
    Jun 19 11:05:00 x81glx04 LOGIN: tomcat4 can't start because /var is at 100%.


    2. Verify the available drive space using df:

    [root@MyBigIP:Standby] config # df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/hda5 373652 294142 60217 84% /
    /dev/hda7 57481 7688 46825 15% /config
    /dev/hda8 47900 47456 0 100% /var
    none 190508 5828 184680 4% /shared/rrd.1.0
    none 190508 40 190468 1% /dev/shm
    none 190508 1356 189152 1% /var/tmpfs
    [root@MyBigIP:Standby] config #


    You can check the actual space used up by the /var/cache/tomcat4/temp directory using the du command:

    [root@MyBigIP:Standby] config # cd /var/cache/tomcat4
    [root@MyBigIP:Standby] tomcat4 # du -h
    204K ./temp
    1.0K ./work/Standalone/localhost/tmui
    2.0K ./work/Standalone/localhost
    3.0K ./work/Standalone
    4.0K ./work
    209K .


    3. Stop the tomcat4 daemon: bigstart stop tomcat4

    4. Delete out the files in /var/cache/tomcat4/temp directory. Alternatively, using any SFTP application such as WinSCP, copy out the jar_cache files, in case your vendor wants to take a look at them.

    5. Restart the tomcat4 daemon: bigstart start tomcat4

    6. Verify the disk space available using df:

    [root@MyBigIP:Standby] cache # df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/hda5 373652 295704 58655 84% /
    /dev/hda7 57481 7711 46802 15% /config
    /dev/hda8 47900 24600 20827 55% /var
    none 190508 5828 184680 4% /shared/rrd.1.0
    none 190508 40 190468 1% /dev/shm
    none 190508 1356 189152 1% /var/tmpfs
    [root@MyBigIP:Standby] cache #



    Permanent Fix:
    BIG-IP version upgrade.

    References:
    SOL7361: The BIG-IP system can create an excessive number of jar_cache files, filling up the /var directory (requires F5 login)