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 strongm 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: tagyourit
  • Content: Threads
  • Order by date
  1. tagyourit

    script output to columns with headers

    netstat -an | grep tcp | awk '{print $6}' | sort | uniq -c | sort -nr 294 FIN_WAIT_2 173 ESTABLISHED 83 TIME_WAIT 33 LISTEN 9 CLOSED 3 CLOSING 2 CLOSE_WAIT 1 SYN_RCVD Would like the output to be in the following format instead FIN_WAIT_2 ESTABLISHED TIME_WAIT LISTEN CLOSED CLOSING...
  2. tagyourit

    bind_columns called with 1 values but 25 are needed

    Getting the following error when running my query DBD::mysql::st bind_columns failed: bind_columns called with 1 values but 25 are needed at ./getdata.pl line 42. Is there a way for me to pull all the columns, but only print the five or six that I need witout having to bind each and every...
  3. tagyourit

    only need 5 our of 25 columns returned

    Getting the following error when running my query DBD::mysql::st bind_columns failed: bind_columns called with 1 values but 25 are needed at ./getdata.pl line 42. Is there a way for me to pull all the columns, but only print the five or six that I need witout having to bind each and every column?
  4. tagyourit

    remove characters inline

    I've got a perl script running on AIX that issues an MySQL select against a table and pulls back four columns of data. name port status host I'm getting stuff in the status column that I want to remove, specifically in the column status, if I get down (Administratively down) I want to remove...
  5. tagyourit

    using tabs to align, $1 field too long

    Here's my output. YZ_DISKPOOL 0.0 0.0 XYZ_123_789_DISKPOOL 44.0 43.6 UX_DISKPOOL 0.3 0.0 UNIX_DISKPOOL 0.0 0.0 UNIX2_DISKPOOL 0.0 0.0 UNIX3_DISKPOOL 0.5 0.0 I'm taking input which is comma delimited and...
  6. tagyourit

    uname shows hostname, not OS ( AIX )

    The server was built from a mksysb NIM image of another server by another tech who is out. Our monitoring software needs to be able to pull the OS type ( AIX, Linux, etc ) and it uses the uname command to get this. Normal uname -a shows: AIX server01 6 00C000000C00 But on this server, it...
  7. tagyourit

    tripwire segfault

    Anyone here have experience with tripwire? Trying to have it only monitor one directory. However, that directory has over 37k files :O I am getting this when trying to run tripwire --init -polfile ../etc/tw.pol Please enter your local passphrase: Parsing policy file...
  8. tagyourit

    formatting script output

    Need help formatting script output. I dug up a watchfile.pl script on the net ( it was posted here as an alternative to Tripwire ) to monitor files/directories for changes. It generates fairly consistent output. First, it builds a list of files you tell it to watch, which at the end of that...

Part and Inventory Search

Back
Top