Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dwcasey
  • Content: Threads
  • Order by date
  1. dwcasey

    file date check

    I am wanting to check the date of all files in a directory and if they are not today's date, send an alert ( email, log, etc. ) If I run: find . -type f -mtime +1 in my directory where the files are, I get files that are 1 day old. This will work, but I was just wondering if there was a...
  2. dwcasey

    file comparison

    I am trying to look at files in a directory and compare that list of files with a list I have in file. So compare ls -1 output with a file called allfiles.lst and tell me if any are missing from the ls -1 listing. I just run ls -1 > current then compare current with allfiles.lst. I've tried...
  3. dwcasey

    Daylight Savings, fall back, coming

    I thought AIX did some time creep/slew so that at 2am, it was just 2am and it didn't slam it back to 1am, then hit 2am again. Does anyone have a link to a doc explaining this?
  4. dwcasey

    how to copy compiled binaries to other system

    I have downloaded and compiled tripwire on my dev machine. Now i want to push this out to other systems as-is. I don't want to have to install gcc and compile a dozen other systems. We like to keep those systems 'clean' if you know what I mean. I compiled and tar'd up the dir, then ftp'd it...
  5. dwcasey

    system accounting?

    Looking for a way to track file level movement/changes, etc. I've heard about accounting on unix systems, but that it's a hog. How does this work on AIX? What about any open-source alternatives?
  6. dwcasey

    too many files to list

    Trying to do a simple ls in a directory and I'm getting: ls: 0653-340 There is not enough memory available now. Is there a way to format a find command to say show me files that are 6-months or 12-months old? That might allow me to get some of what's in there.
  7. dwcasey

    sql query to return login names of users

    We send login information from some systems to an MySQL server. I am requested to do an audit for specific id's. How can I select where name = mscroot ? I'm using Mysqlcc. So I click on the table, then click SQL and get SELECT * FROM `login_sessions` The column name I want to match mscroot...
  8. dwcasey

    change username and keep uid

    How can I change only username ( login name ) and preserve the UID? I tried to use usermod, but I get an error.
  9. dwcasey

    grep for pattern get the next line

    This is on AIX, so I don't have GNU grep. I need to search for differing application versions. Application name is on one line, version is on the next. Something like: aa This is an application to do stuff aix Version: 11.22.33.44 There is some unique data on the application...
  10. dwcasey

    scp then ssh? other option?

    I have a script I want to run on a many servers. It essentially is cleaning up some old files from an old application. It's designed to run locally on the server itself. It has a few functions within...kill necessary processes associated with cleanup, check if filesystem exists, if so, remove...
  11. dwcasey

    publish email to website

    Not sure if this is the right forum, but here goes...I have a unix script that polls some servers for failed backups, then writes that data to a file as well as email the file out. Is there a way for me to send this file or email to a webserver for publishing? I guess the simplest would be to...
  12. dwcasey

    comparing files

    I have two files. One file has all the servers with my software installed. The other file is a list of all servers that may or may not have one of my servers in the list. I had considered a diff, but it would simply show me all the differences. What I would like is something like: Do any of...
  13. dwcasey

    unique filter sort

    I have two columns of data. First is servername, second is issue found. It so happens that the way I retrieved this data ( unix korn shell script ) will create a servername & issue for each issue found: serv01 resolv.conf issue serv01 no /tmp/echo file found serv01 cannot ping...
  14. dwcasey

    grep with spaces

    Is there a grep equivalent to the following perl search/replace? perl -pi -e 's{LTAPEDEV\s+/dev/infmx/log_tape_dev}{LTAPE /dummy}g' onconfig Not necessarily the search/replace, but searching for something like: LTAPEDEV /dev/infmx/log_tap_dev LTAPEDEV /dev/infmx/log_tap_dev So a...
  15. dwcasey

    parsing output for excel

    I run a script that does some checks on many, many servers. If an error condition exists, I write out to a file ERR: with the issue that was found. I'm wanting to be able to create some format from this that will go into a spreadsheet. Really just looking for ideas on what would be a good way...
  16. dwcasey

    search and replace in a file

    This works fine...it searches onconfig and looks for LTAPEDEV /dev/infmx/log_tape_dev And replaces with LTAPEDEV /dummy perl -pi -e 's/LTAPEDEV \/dev\/infmx\/log_tape_dev/LTAPE \/dummy/g' onconfig What can I do so that if there is extra spaces ( white space ) between LTAPEDEV and /dummy and...
  17. dwcasey

    server inventory import

    What is the best way to import a CSV file into MySQL? Are there tools available to assist in this? Once in there, is there anything similar to msaccess to run queries, generate reports, etc? We were looking at bringing this into MSAccess, but I started thinking if we put it in MySQL, it would...
  18. dwcasey

    server inventory in Excel

    We have a script that retrieves server information, places it into a CSV file, then we bring it into Excel. Since we have various model servers, I want to count how many of this type or that type, then translate a machine model to a common model name. So a 887766 might be a D15 model server...
  19. dwcasey

    grep blocks of text out of file

    I have a text file I've created with server info. I have a little over a hundred servers in this list. For each server, I put the data between asterisks *** so I have a file with the information shown below. What I want do now is put each block between the *** into it's own file called...
  20. dwcasey

    using wscript to batch telnet...

    I have to telnet to a lot of hosts and was able to use the below script for automating a single telnet. How can I combine this with a loop of sorts to read through a list of hostnames and open a telnet to each host? The "catch" is that I have to telnet to two boxes before I can telnet out to...

Part and Inventory Search

Back
Top