Posts Tagged ‘file’
As a Tivoli consultant, I’ve had to tweak, torque and tune ITM v6 to fulfill requirements not met out of the box. Several of my clients have felt ripped off by IBM for having paid for a product billed as covering best practices out of the box, only to discover, there is significant development costs involved.
I’m going to itemize and update the shortcomings as I think or run across them, and in all fairness, update if ITM fills the void.
Situations
- Attributes, values and situation specific data is not passed to the ‘Take Action” command
- Typically this is passed in the shell’s environment
- However, these important pieces of info ARE passed to the EIF
- Inability to determine what situations are running on which systems, or reversed, inability to derive which situations are running on any particular system
Windows Agent
- No regular expressions for directory/file matching
Unix Agent
- No regular expressions for directory/file matching (Unix and Linux)
Oracle Agent (ITMfDatabases)
- (<= v6.2.0) Does not detect listeners if dynamically configured
Tags: Agent, best practices, box, directory, fairness, file, Inability, itm, linux oracle, listeners, oracle agent, regular expressions, shortcomings, system windows, Tivoli, unix and linux
Posted in ITM6.x | Comments (0)
Not that there is a lot to the TDW layout, but knowing the schema assists in the documentation process and developing queries and procedures of the TDW (Tivoli Data Warehouse).
Make short work of this by using the opensource tools of SchemaSpy and Graphviz
SchemaSpy is a jar file that supports over 21 DBs, including the 3 supported by ITM TDW (Oracle, Sybase, MSSQL) and is run from the command line to generate a html directory of content about the interrogated schema.
jdsmedia@deant61p /usr/local/bin
$ java -jar ./schemaspy.jar -t ora -db testtdw -s ITMUSR -dp c:\\OraClient11g\\jdbc\\lib\\ojdbc5_g.jar -u XXX -p XXX -o c:/cygwin/tmp/tdw
Using database properties:
[./schemaspy.jar]/net/sourceforge/schemaspy/dbTypes/ora.properties
Connected to Oracle – Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 – 64bit Production
With the Partitioning, OLAP and Data Mining options
Gathering schema details………………………………………………..
………………………………. |
Tags: cygwin, Data, data mining, data warehouse, database, database properties, dbs, Documentation, dp, file, graphviz, html directory, jar, jar file, java jar, jdbc, layout, lot, mssql, olap, opensource, ora, oracle, oracle database, oracle sybase, process, schema, SchemaSpy, tdw, Tivoli, tivoli data, tmp, warehouse, work
Posted in ITM, TDW2.x | Comments (0)
ITM 6.2 FP1 contains several new and changed T/EC class changes, ranging from new classes, new slots, and only ONE new slot (omnux_value replacing kux_value).
**I have not seen an ITM event containing kux_value nor omnux_value, but to be safe, I added the old ‘kux_value’ slot to the kux.baroc file.
TOTAL: 22 baroc files
|
Baroc
|
Difference
|
Desc
|
|
ka4.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
14 new classes
** JDS: Replace with new baroc
|
|
khd.baroc
|
New
|
|
|
kib.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
one new slot: link_table in ITM_Universal_Messages
** JDS: Replace with new baroc
|
|
klz.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
3 new classes : File pattern, comparison and host availability
several new slot changes : file information file content changed and checksum
** JDS: Replace with new baroc
|
|
knt.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
8 new classes
several slot changes
** JDS: Replaced with new baroc
|
|
koq.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
3 new classes
** JDS: Replaced with new baroc
|
|
kor.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
11 new classes
several new slots : including table space used/allocated, processes, session details, lock wait time
** JDS: Replaced with new baroc
|
|
koy.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
1 new class : Sybase segment detail
several new slots : lock wait time, engine number and status, number of databases open, logon available
** JDS: Replaced with new baroc
|
|
kp5.baroc
|
New
|
|
|
kph.baroc
|
None
|
|
|
kpk.baroc
|
None
|
|
|
kpv.baroc
|
New
|
|
|
kpx.baroc
|
None
|
|
|
kqr.baroc
|
New
|
|
|
kqv.baroc
|
New
|
|
|
kqx.baroc
|
New
|
|
|
ksy.baroc
|
New
|
|
|
kud.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
3 new classes
new slots added to existing classes
** JDS: Replace with new baroc
|
|
kul.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
** JDS: Replace with new baroc
|
|
kux.baroc
|
Changes
|
Sentry3_5_Base class changed to Omegamon_Base
kux_value(STRING) changed to omunx_value(STRING)
8 new classes added
** JDS: Modified new kux.baroc to include kux_value slot
|
|
kva.baroc
|
None
|
|
|
om_tec.baroc
|
None
|
|
Tags: baroc, base, class, class changes, databases, ec, file, file pattern, fp1, itm, JDS, kux, New, None, number, Omegamon, omnux, Replace, Replaced, segment, Sentry, session details, slot, slots, STRING, table, table space, time, time engine, universal messages, value
Posted in Non-Tivoli | Comments (0)
Reference: http://help.mosso.com/article.php?id=180
Your script is calling for the “REMOTE_ADDR” and receives the IP of a server in front of one of our back-end servers. The web facing server is then passing the scripts output without giving the expected REMOTE_ADDR of the visitor. In order for your scripts to recognize that they are on a cluster and log the correct IP of your visitors, you will need to replace and add the code below.
For PHP:
Locate any lines of code that are similar to this snippet of code,
$_SERVER['REMOTE_ADDR'];
And replace it with this snippet of code,
$_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];
For ASP:
Locate any lines of code that are similar to this snipper of code,
Request.ServerVariables(“REMOTE_ADDR”)
And replace it with this snipper of code,
Request.ServerVariables(“HTTP_X_CLUSTER_CLIENT_IP”)
My fix for this required a unix shell (if you’re on a Windows look at installing cygwin on your system.
# Ftp your web content down to your local system
$ for file in `find <path_to_files> -exec grep -l REMOTE_ADDR {} \;`; do base=`basename $file`; sed ’s/REMOTE_ADDR/HTTP_X_CLUSTER_CLIENT_IP/g’ $file > /tmp/$base; grep HTTP_X_CLUSTER_CLIENT_IP /tmp/$base >/dev/null 2>&1 && grep REMOTE_ADDR $file && echo “Updated $base” && mv
/tmp/$base $file; done
# Then simply upload the changed files to your system.
Tags: ADDR, amp, base, CLIENT, cluster, code, code request, code server, correct ip, cygwin, exec grep, file, g file, grep, HTTP, local system, Locate, lt, mosso, mv, Reference, REMOTE, remote addr, remote_addr, Request, request servervariables, Scripts, server, servers, ServerVariables, shell, snipper, snippet, statistics, system, tmp, unix, unix shell, web, web content
Posted in web_programming | Comments (0)
Instead of copying a large tar file over ssh then extracting, take care of the whole process with one command:
PUSH METHOD:
cat tarfile | ssh –C user@remotehost “(cd targetdirectory && tar –xf -)”
This will stream the tarfile over a compressed ssl tunnel and the other side will only extract if the target directory exists. The “cd targetdirectory” piece I used as a good prevention to blowing files all over an undesired/unexpected location.
PULL METHOD:
ssh -C user@remotehost”cd sourcedirectory; tar -cvf – dir_or_file” > outputfile
This is the opposite method, obviously. Please note, the output of the SSH needs to be redirected to an output file.
Tags: amp, command cat, file, lt, METHOD, ssh, tar, tar cvf, tar file, tarfile, target directory, targetdirectory, unexpected location, user
Posted in Non-Tivoli | Comments (0)