• Administration, HEADS UP, VCS, Vertias 12-13-2011 Comments Off

    http://www.symantec.com/business/support/index?page=content&id=HOWTO58833

  • HEADS UP, Solaris 11-22-2011 Comments Off

    A kernel patch caused the machine to panic, leaving it in a confused state. I was able to boot from a CD and back out the patch, but it did not update the boot archive, even after issuing
    /sbin/bootadm update-archive -R /a

    to fix:

    Boot into the disk failsafe, then run:

    /a/boot/solaris/bin/create_ramdisk -R /a

  • HEADS UP, Solaris 11-17-2011 Comments Off

    ksh -o vi
    export TERM=vt100
    /usr/openwin/bin/resize
    or, If booted from CD or in failsafe:
    /a/usr/openwin/bin/resize

  • HEADS UP, Linux, Networking 06-14-2011 Comments Off

    ETHTOOL_OPTS=”autoneg off speed 100 duplex full”

  • HEADS UP 05-15-2011 Comments Off

    _allow_resetlogs_corruption=TRUE

    This will at least allow you to open the database, then perform an export. It is NOT recommended that the database continue production operations as it will definitely crash in the near future.

  • HEADS UP, Linux 02-24-2011 Comments Off

    The script will need to run thru a wrapper, or the OS will ignore the setuid bit altoghether. Compile the following C program and make it setuid, and it will work:

    #include 
    #include 
    
    int main(int argc, char *argv[])
    {
    argv[0] = "some_script_path";
    
    setreuid(geteuid(), -1);
    execv(argv[0], argv);
    exit(1);
    }
    
  • HEADS UP, Solaris 02-22-2011 Comments Off

    connecting to sun blades

    start /CH/blade/SP/cli
    start SP/console

  • HEADS UP 02-22-2011 Comments Off

    ‘xauth list’ will give the current tokens for the first login user
    SOANDSO/unix:10 MIT-MAGIC-COOKIE-1 498e25150e75b1c319278813d853b1ca

    you can add some or alll of them to a second login user:

    xauth add SOANDSO/unix:10 MIT-MAGIC-COOKIE-1 498e25150e75b1c319278813d853b1ca

  • HEADS UP, Linux, iptables 02-16-2011 Comments Off

    #!/usr/bin/perl -w
    # server.pl
    #--------------------

    use strict;
    use Socket;

    # use port 7890 as default
    my $port = shift || 7890;
    my $proto = getprotobyname('tcp');

    # create a socket, make it reusable
    socket(SOCKET, PF_INET, SOCK_STREAM, $proto)
    or die "Can't open socket $!\n";
    setsockopt(SOCKET, SOL_SOCKET, SO_REUSEADDR, 1)
    or die "Can't set socket option to SO_REUSEADDR $!\n";

    # bind to a port, then listen
    bind( SOCKET, pack( 'Sn4x8', AF_INET, $port, "\0\0\0\0" ))
    or die "Can't bind to port $port! \n";
    listen(SOCKET, 5) or die "listen: $!";
    print "SERVER started on port $port\n";

    # accepting a connection
    my $client_addr;
    while ($client_addr = accept(NET_SOCKET, SOCKET)) {
    # send them a message, close connection
    print NEW_SOCKET "Smile from the server";
    close NEW_SOCKET;
    }

  • HEADS UP, Solaris 02-16-2011 Comments Off
    for i in `ndd -get /dev/${DEV} \? | awk '{print $1}'| grep ^[a-z]`;
    do
    echo -n "$i:"; ndd -get /dev/${DEV} $i;
    done