Email:

Posts by jimsander:

    Trying to delete a folder on windows …

    November 30th, 2010

    Trying to delete a folder on windows sometimes is thwarted by the error “ Cannot delete” “volume label syntax is incorrect

    I tried every non-destructive method listed out there

    rd <path> /s  aka; rmdir <path>   /s

    changing long file or directory names

    When I want to delete something I don’t have time to mess around, so came up with this quick little workaround…
    using cygwin…
    opened a cygwin shell and cd to the parent directory of the stubborn folder
    ran find -type f -exec mv {} /tmp/delme ; && rm -f /tmp/delme
    Now, the directory structure is empty, proceed with your rmdir

    No Comments "

    VMWare/Linux Add New Disk CHEATSHEET

    November 24th, 2010

    Add the disk via vSphere/VirtualCenter

    Reboot (if you have scsitools you can also run ‘rescan-scsi-bus.sh’ instead of rebooting

    Commands

    fdisk -l # Display new disks w/o partition tables
    fdisk /dev/<newdisk>
    n (for new partition)
    p (for primary partition)
    1 (partition number)
    (keep the other values default)
    w (write changes)
    fdisk /dev/<newdisk>
     (change partition type)
    8e (for Linux LVM)
    w (write changes)
    pvcreate /dev/<newdisk>
    vgcreate <NewVolGrpName> <newdisk> OR vgextend <VolGrpName> /dev/<newdisk>
    
    
    lvdisplay # shows all logical volumes
    lvextend -L +10G /dev/<VolGroupName>/Name

    No Comments "

    ESX/VM Error: “VM has virtual disk in link-cloned mode that prevents migration”

    October 19th, 2010

    In my environment am running ESX v4.0 U1, and migrating several VMs (vMotion) to new datastores, we ran into an error with a couple of systems: ”

    Solution was so straight-forward it was pitiful.

    Snapshot the problem system, then delete the just created snapshot, the vMotion proceeded as expected.

    No Comments "

    Changing Unix Account Passwords in Bulk

    September 22nd, 2010

    In migrating a standalone FTP system, I found that I needed to re-add several users, and wanted a scripted method of updating passwords.

    awk -F, ‘{ printf(“%s:%s\n”,$3,$4); }’ /tmp/ftpusers.csv | while read line; do echo $line | chpasswd; done

    where ‘ftpusers.csv’ format is 3rd and 4th column is username and desired password

    AIX: chpasswd
    Linux: chpasswd

    No Comments "

    IBM ITM Product Code Table

    July 23rd, 2010
    10 Monitoring Agent for Cobb EAI
    14 Monitoring Agent for CobbRemoteAgent
    15 Monitoring Agent for BillPrint
    15 Monitoring Agent for Cobb BillPrintLog
    20 Monitoring Agent for Cobb DBClient
    3z IBM Tivoli Monitoring Active Directory Feature
    3z Monitoring Agent for Active Directory
    40 Monitoring Agent for DD690G
    41 Monitoring Agent for Cobb UnixExtended
    41 Monitoring Agent for JDS UnixCustom
    42 Monitoring Agent for Cobb NuBridges FTP
    a2 AF/Remote Alert Adapter
    a4 Monitoring Agent for i5/OS
    a4 OS/400 Monitoring Agent
    ah System Automation for z/OS
    am OMEGACENTER Gateway MVS Alert Adapter
    au CA-Unicenter Alert Emitter
    ax Candle Shared Libraries
    ax IBM Tivoli Monitoring Shared Libraries
    bc ITCAM System Edition for WebSphere DataPower
    bf CASP Native Connector
    bl CASP Directory Server Monitoring Agent
    bo CandleNet eBP Object Access
    br CASP Exchange Connector Monitoring Agent
    bs Basic Services
    bx CASP Audit and Log
    c3 IBM Tivoli Monitoring for CICS
    c3 OMEGAMON(R) XE for CICS
    cf CMS Configurator
    cf CandleNet Command Center for OS/390
    cf TEMS Configurator
    cg IBM Tivoli Monitoring for Cryptographic Coprocessors
    cg OMEGAMON XE for IBM Cryptographic Coprocessors
    ci Candle Product Installer
    ci IBM Tivoli Monitoring Product Installer
    cicatrsq Candle SQL Files
    cicatrsq IBM Tivoli Monitoring SQL Files
    cienv Candle Product Installer
    cienv IBM Tivoli Monitoring Product Installer
    cj Tivoli Enterprise Portal Desktop Client
    cj Windows NT CandleNet Portal
    co Command and Control
    cp CCC for CICS
    cp IBM Tivoli Monitoring for CICS
    cp OMEGAMON XE for CICS on z/OS
    cq Tivoli Enterprise Portal Server
    cr CandleNet eBP Connector for R/3
    cw Tivoli Enterprise Portal Browser Client
    cz Candle CommandPro
    cz IBM Tivoli Monitoring CommandPro
    d3 IBM Tivoli Monitoring for DB2
    d3 OMEGAMON(R) XE for DB2
    d4 ITCAM for SOA
    dd Distributed Database common code
    do IBM Tivoli Decision Support for z/OS
    dp IBM Tivoli Monitoring for DB2 on zOS
    dp OMEGAMON XE DB2 PE and PM on z/OS
    dp OMEGAMON XE for DB2 PE and PM on z/OS
    dp OMEGAMON XE for DB2 on zOS
    e3 R/3 Clients (for ETEWatch) Monitoring Agent
    e5 OSIsoft PI Agent
    e6 Johnson Controls Metasys Agent
    e7 APC Agent
    e7 APC InfraStruXure Agent
    e8 Eaton Agent
    e8 Eaton Power Xpert Agent
    e9 Active Energy Manager Agent
    ea Internet Monitoring Agent
    el Lotus Notes Clients (for ETEWatch) Monitoring Agent
    en SNMP Gateway on Windows NT
    er Management Agent for Tivoli Enterprise Console Gateway
    es EIF to WS-Notification Converter
    eu Custom Clients (for ETEWatch) Monitoring Agent
    ew Web Browsers (for ETEWatch) Monitoring Agent
    ex MS Exchange Monitoring Agent
    ex MS Exchange Server Monitoring Agent
    ex Monitoring Agent for Microsoft Exchange Server
    ez OMA for eBA Solutions
    fi CandleNet eBP FIX Connector
    fw Windows NT Tivoli Enterprise Portal
    fx CASP File Transfer
    ga SNMP Gateway on AIX
    gb IBM Tivoli Composite Application Manager Agent for Lotus Domino
    gb IBM Tivoli Monitoring for Domino
    gb IBM Tivoli Monitoring for Messaging and Collaboration: Lotus Domino Agent
    gr Graphics and Sound Library for TEP
    gs IBM GSKit Security Interface
    gs IBM Tivoli GSKit
    gw OMEGAMON XE for CICS TG on z/OS
    hc HMC Alert Adapter
    hd Warehouse Proxy
    hi HP OpenView IT/Operations Alert Adapter
    hl OMEGAMON z/OS Management Console
    ho HP OpenView NNM Alert Adapter
    ht IBM Tivoli Composite Application Manager Agent for HTTP Servers
    ht IBM Tivoli Composite Application Manager Agent for Web Servers
    ht IBM Tivoli Composite Application Manager for Web Servers
    ht Monitoring Agent for Web Servers
    ic IBM Tivoli Monitoring for WebSphere InterChange Server
    ic OMEGAMON XE for WebSphere Interchange Server
    ic WebSphere InterChange Server Monitoring Agent
    ie IBM Tivoli Monitoring for WebSphere InterChange Server Data Source
    ie WebSphere InterChange Server Data Source
    ih OpenView ITO Alert Emitter
    ip CCC for IMSplex
    ip OMEGAMON XE for IMS on z/OS
    is IBM Tivoli Composite Application Manager for Internet Service Monitoring
    it TEC GUI Integration
    iv IBM Tivoli Enterprise Portal Server Extensions Update
    iv Tivoli Enterprise Portal Server Extensions Upgrade
    iw IBM Tivoli Enterprise Portal Server Extensions
    iw Tivoli Enterprise Portal Server Extensions
    jr Candle-Supplied JRE
    jr Tivoli Enterprise-supplied JRE
    ju Monitoring Agent for JMX JSR-77
    ka Monitoring Agent for Tivoli Enterprise Console
    kf IBM Eclipse Help Server
    ln Lotus Notes Monitoring Agent
    lz Linux Monitoring Agent
    lz Monitoring Agent for Linux OS
    m3 IBM Tivoli Monitoring for OS/390
    m3 OMEGAMON XEs
    m3 OMEGAMON(R) XE for OS/390
    m4 PathWAI Secure for WebSphere MQ Global Administrator
    m5 IBM Tivoli Monitoring for z/OS
    m5 OMEGAMON XE on z/OS
    ma Remedy ARS Alert Adapter
    mc IBM Tivoli Composite Application Manager Configuration Agent for WebSphere MQ
    mc IBM Tivoli Monitoring for WebSphere MQ Configuration
    mc IBM Tivoli OMEGAMON XE for Messaging Configuration
    mc MQSeries Configuration Agent
    mc OMEGAMON MQ Configuration Agent
    mc OMEGAMON WMQ Configuration Agent
    mc WebSphere MQ Configuration Agent
    mc WebSphere MQ Configuration
    md PQEdit
    mf PathWAI Secure for WebSphere MQ
    mq IBM Tivoli Composite Application Manager Agent for WebSphere MQ
    mq IBM Tivoli Monitoring for WebSphere MQ
    mq IBM Tivoli OMEGAMON XE for Messaging Monitoring
    mq MQSeries Monitoring Agent
    mq OMEGAMON MQ Monitoring Agent
    mq OMEGAMON XE for WebSphere Business Integration
    mq WebSphere MQ Monitoring Agent
    mq WebSphere MQ
    ms Candle Management Server
    ms Tivoli Enterprise Monitoring Server
    n3 IBM Tivoli Monitoring for Mainframe Networks
    n3 OMEGAMON XE for Mainframe Networks
    na IBM Tivoli NetView for z/OS Enterprise Management Agent
    nd Monitoring Agent for Tivoli NetView Server
    no Tivoli Omnibus ObjectServer Agent
    np IBM Tivoli Network Manager
    np Tivoli Monitoring for IBM Tivoli Netcool/Precision
    nt IBM Tivoli Monitoring for Windows Servers
    nt Monitoring Agent for Windows OS
    nt OMEGAMON XE for Windows Servers
    nv NetView/AIX Alert Adapter
    nw Novell NetWare Monitoring Agent
    oe CCC for OS/390 Unix System Services
    oq Microsoft SQL Server Monitoring Agent
    oq Monitoring Agent for Microsoft SQL Server
    or IBM Tivoli Composite Application Manager Agent for Oracle Database
    or Monitoring Agent for Oracle
    or Oracle Monitoring Agent
    os CCC for Sysplex
    os IBM Tivoli Monitoring for Sysplex
    ox Informix Monitoring Agent
    oy IBM Tivoli Composite Application Manager Agent for Sybase ASE
    oy Monitoring Agent for Sybase Server
    oy Sybase Monitoring Agent
    p5 Base Monitoring Agent for AIX
    p5 IBM Tivoli Monitoring for AIX Base Agent
    p8 IBM Tivoli Composite Application Manager Agent for Peoplesoft Enterprise Application Domain
    p8 ITCAM Agent for PeopleSoft Enterprise Application Domain
    p9 IBM Tivoli Composite Application Manager Agent for Peoplesoft Enterprise Process Scheduler
    p9 ITCAM Agent for PeopleSoft Enterprise Process Scheduler
    pa Performance Analytics for TEP
    pc DEC Polycenter Alert Adapter
    pe Monitoring Agent for Provisioning
    ph Base Monitoring Agent for HMC
    pk Base Monitoring Agent for CEC
    pl CandleLight Workstation
    ps PeopleSoft Monitoring Agent
    pt Peregrine ServiceCenter Alert Adapter
    pv Base Monitoring Agent for VIOS
    pv IBM Tivoli Monitoring for VIOS Base Agent
    px Premium Monitoring Agent for AIX
    q5 Monitoring Agent for Microsoft Cluster Server
    qa Monitoring for Microsoft Applications
    qb BizTalk Server Agent
    qb Monitoring Agent for Microsoft BizTalk Server
    qd IBM Tivoli Monitoring for IBM Director
    qf Microsoft .NET: .NET Framework support
    qf Monitoring Agent for Microsoft .NET Framework
    qi IBM Tivoli Composite Application Manager Agent for WebSphere Message Broker
    qi IBM Tivoli Monitoring for WebSphere Integration Brokers
    qi OMEGAMON XE for WebSphere Integration Brokers
    qi OMEGAMON XE for WebSphere MQ Integrator
    qi WebSphere Message Broker Monitoring Agent
    qp Monitoring Agent for Microsoft SharePoint Server
    qp SharePoint Agent
    qr Monitoring Agent for Microsoft Virtual Server 2005
    qr Monitoring Agent for Microsoft Virtual Server
    qv Monitoring Agent for VMware ESX
    qx Monitoring Agent for Citrix Access Suite
    r0 Agentless Monitoring for Dell OpenManage Hardware
    r2 Agentless Monitoring for Windows Operating Systems
    r3 Agentless Monitoring for AIX Operating Systems
    r3 Monitoring Agent for Microsoft SQL Server
    r4 Agentless Monitoring for Linux Operating Systems
    r5 Agentless Monitoring for HP-UX Operating Systems
    r6 Agentless Monitoring for Solaris Operating Systems
    r7 Agentless Monitoring for HP InsightManager Hardware
    r8 Agentless Monitoring for Sun Management Center Hardware
    r9 Business System Manager Common Agent
    rc IBM Tivoli Monitoring for Rational Applications
    rg IBM Tivoli Advanced Audit for DFSMShsm
    rh Advanced Reporting for DFSMShsm
    rh IBM Tivoli Advanced Reporter for DFSMShsm
    rj IBM Tivoli Allocation Optimizer for z/OS
    rk IBM Tivoli Automated Tape Allocation Manager
    rn IBM Tivoli Advanced Catalog Management for z/OS
    ro Directory Administrator
    rq Candle Application Services Pac
    rq Tivoli Enterprise Application Services Pac
    rr CASP Conversion with XML-MDR
    ru CASP HTTP File Server
    rv IBM Tivoli Advanced Backup and Recovery for z/OS
    rw IBM Tivoli Tape Optimizer
    rx CASP HTTP File Server
    rz IBM Tivoli Composite Application Manager Agent for Oracle RAC
    rz IBM Tivoli Composite Application Manager Extended Agent for Oracle Database
    s2 OS/2 Monitoring Agent
    s3 IBM Tivoli Monitoring for SMS
    s3 IBM Tivoli OMEGAMON XE for Storage on z/OS
    s3 OMEGAMON XE for Storage on z/OS
    sa IBM Tivoli Composite Application Manager Agent for SAP Applications
    sa IBM Tivoli Monitoring v6.1 Agent for R/3 SAP
    sa IBM Tivoli Monitoring v6.1 Agent for mySAP
    sa Monitoring Agent for mySAP
    sa R/3 Monitoring Agent
    sa mySAP Monitoring Agent
    sd Status Data Manager
    sh OMEGAMON SOAP
    sh Tivoli Enterprise Monitoring SOAP Server
    sj Best Practices for WebSphere
    sk Reporting Agent for Tivoli Storage Manager
    sp SNMP Alert Adapter
    sr IBM Tivoli Service Level Advisor
    ss Windows NT SNA Server Monitoring Agent
    sw CandleNet eBP FS/Access
    sy Summarization and Pruning Agent
    t1 ITCAM File Transfer Enablement
    t2 IBM Tivoli Composite Application Manager for Response Time Tracking
    t2 ITCAM for Response Time Tracking
    t3 ITCAM Console
    t3 ITCAM for End User Response Time Dashboard Agent
    t4 ITCAM for Client Response Time Agent
    t4 ITCAM for Client Response Time
    t5 ITCAM for Web Response Time Agent
    t5 ITCAM for Web Response Time
    t6 ITCAM for Robotic Response Time Agent
    t6 ITCAM for Robotic Response Time
    th ITCAM for MQ Tracking
    tl Omegamon XE for Message Transaction Tracker
    tm Monitoring Agent for IBM Tivoli Monitoring 5.x Endpoint
    tn Unicenter TNG Alert Emitter
    to ITCAM for Transaction Reporter
    to Transaction Reporter
    tr NetView Alert Emitter
    tu ITCAM for Transactions
    tu Transaction Collector
    tv TME 10 Enterprise Console Alert Adapter
    tv Tivoli Enterprise Console Alert Adapter
    tx Tuxedo Monitoring Agent
    ua CA-Unicenter Alert Adapter
    ub IBM Tivoli Composite Application Manager Agent for Siebel CRM
    ub IBM Tivoli Monitoring for Applications: Siebel Agent
    ub IBM Tivoli Monitoring v6.1 Agent for Siebel
    ub Monitoring Agent for Siebel
    uc CASP Universal Connector
    ud DB2 Universal Database Monitoring Agent
    ud IBM Tivoli Composite Application Manager Agent for DB2
    ud Monitoring Agent for DB2
    ue Tivoli Enterprise Services User Interface Extensions
    uf Universal Agent Framework
    ui Tivoli Enterprise Services User Interface
    uj Unison Maestro Alert Adapter
    ul Monitoring Agent for UNIX Logs
    ul UNIX Logs Monitoring Agent
    um Universal Agent
    ur Unison RoadRuner Alert Adapter
    ut Unicenter TNG Alert Adapter
    ux Monitoring Agent for UNIX OS
    ux UNIX OS Monitoring Agent
    va Premium Monitoring Agent for VIOS
    vi HP OpenView Alert Emitter
    vl OMEGAMON XE on z/VM and Linux
    vm IBM Tivoli Monitoring for Virtual Servers
    vm Monitoring Agent for VMware VI
    vt TME 10 Enterprise Console Alert Emitter
    vt Tivoli Enterprise Console Alert Emitter
    vw NetView for z/OS Agent Support
    we WebSphere Application Server Monitoring Agent
    wf CandleNet eBP WorkFlow Access
    wj IBM Tivoli Composite Application Manager Common Components
    wl BEA Weblogic Server Monitoring Agent
    wo IBM Tivoli Monitoring for OMEGAVIEW II for the Enterprise
    wo OMEGAVIEW II for the Enterprise
    ww WebSphere Application Server on OS/390
    x2 KRRTOOLKIT Driver
    x3 KXBCONVERSION Driver
    x4 KXCUTIL Driver
    x5 CASP MDR
    x6 KXCTOOLKIT Driver
    x9 KROMDR Driver
    xb CASP Conversion with XML-API
    xc CASP eBusiness Platform
    xe Xercesc C XML parser and DOM online documentation
    xm CASP Conversion with XML
    xo CASP for WebSphere Access
    xr KRRXML Driver
    xs CASP Directory Services
    xt CandleNet eBP Developer’s Toolkit
    xy PathWAI Editor for Messages
    yb IBM Tivoli Information Management for z/OS
    yj IBM Tivoli Composite Application Manager Agent for J2EE
    yj IBM Tivoli Composite Application Manager for J2EE
    yj Monitoring Agent for J2EE
    yn IBM Tivoli Composite Application Manager Agent for WebSphere Application Server
    yn IBM Tivoli Composite Application Manager Agent for WebSphere Applications
    yn IBM Tivoli Composite Application Manager for WebSphere
    yn Monitoring Agent for WebSphere

    No Comments "

    Increasing the TEPS Navigator “more” limit

    May 9th, 2010

    In some cases the TEPS navigator will hang on the “more” nodes, I haven’t bothered trying to run down the how and why, I just want to see all child-nodes when I select a parent-node.

    Here’s how you do it…

    Add the following lines to the teps.jnlpt, then rebuild the teps.jnlp

    <property name=”cnp.http.url.host” value=”$HOST$”/>
    <property name=”cnp.navigator.branch.pagesize” value=”1000″/>
    <property name=”cnp.navigator.branch.threshold” value=”500″/>

    No Comments "

    Great Amazon Web Services Overview

    April 19th, 2010

    If your new to or just need to learn more about AWS.. this is a great slide presentation I stumbled across

    No Comments "

    ITM Situation Rename — BEWARE

    February 28th, 2010

    As of ITM 6.2.1, there is a perceived capability to now rename situations within the editor.

    However, the rename is actually a new attribute called ‘Full Name’ and only changes the TEPS display name for the situation; the EIF will still send the original situation name.

    IBM responds this is “working as designed” — a load of crap if you ask me and a “feature” that should not have been introduced at all if it were to be so counter-intuitive.

    Here’s IBM’s response:

    Problem(Abstract)
    Situation names that are less than 32 characters in length do not populate the “Fullname” field when running the ‘tacmd viewsit -s ‘ command.

    Symptom
    tacmd viewsit shows null Fullname Field

    Cause
    The Fullname field is only populated when the original situation name is 32 characters or greater or if a situation name is changed.

    Resolving the problem
    When a situation is created with a name less than 32 characters in length, the situation name is stored in the “Name” column. At this point, the “Name” column serves two purposes: a unique ID for the situation and the situation display name. The “Fullname” column is blank.

    If an existing situation name is changed, the “Name” column still serves as the unique ID and will not be updated to reflect the situation name change.

    The new situation name is stored in the “Fullname” column, the new name now assumes the role of situation display name. The length of the new name does not matter, the new name must be stored in the “Fullname” column, since the “Name” column containing the unique ID cannot be changed.

    The only time we should expect the “Full Name” field to be populated is when the original situation name is 32 characters or greater or when a situation name has changed from it’s original name (regardless of the length of the new situation name).

    No Comments "

    ITM6 : Take Action : Remount Stale remote filesystems

    July 8th, 2009

     

    Situation

    An ITM6 Unix (UX) or Linux (LZ) agent detects that its remote filesystems are unavailable, a “stale” connection.

    Automate an action to remount it if possible

    Methodology

    Two (2) ITM situations are created where

    1. detects the mount point has become stale
    2. the other is triggered by the “correlated situation” condition of #1 being tr

    Situation #1 : Detect “Stale” remote FS

    Simple enough – if “Space Available” fails collection, there is an issue


     

    Situation #2 : Remount Situation

    Formula Conditions

    Use the “Situation Comparison” for a condition against the situation above

    Take Action

    Note: the lines are strung together on one line in the Take Action field, to make it more legible here, newlines are after the semicolons

    f=”&{Linux_Disk.Mount_Point}” ;
    u=`umount -f $f 2>&1 && echo $f`;
    m=`mount $f 2>&1 && echo $f`;
    echo -e “umount: $u\nmount:$m” | mail -s “ITM ACTION: Remount $f” junkmail@JdsMedia.net

     

    No Comments "

    ITM Logs Timestamp Conversion

    July 8th, 2009

    ITM v6 log files use a hexadecimal timestamp (to save space? who the hell knows), which adds unnecessary effort when the reason you’re looking at the logs is to determine an issue in the first place. In any case… Here’s the script I wrote when I first encountered the nonsense in ITM v6 logs a few years ago:

    #!/bin/perl
    foreach (<STDIN>) {
    if (/^[^\s\d\w]+([\w\d]*)/) {
    @t=localtime(hex($1));
    $time=sprintf(“%02d:%02d:%02d %02d/%02d/%04d”,
    $t[2],$t[1],$t[0],$t[4]+1,$t[3],$t[5]+1900);s/^[^\s\w\d]+[\w\d]*/$time/;}print $_;}

    Here’s a one-liner that Venkat.Saranathan at Gulfsoft.com cranked out, rendering my script pretty much obsolete

    perl -lane ‘if ($_ =\ /^(.)([\dA-F]+)(\..*)/) { printf “%s%s%s”, $1, scalar(localtime(oct(“0x$2″))),$3; }’

    No Comments "