Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2003 > December

Questions and Answers

Amy Rich

Q I'm on a Solaris machine running 5.8, and I'm trying to capture some information with ps. Something keeps going awry with a job in the middle of the night, and I want to verify which arguments were passed to the command. I've been using ps -ef, but that seems to truncate the output.

A /usr/bin/ps will pull up to 80 unmodified characters straight from the kernel but stop there. The other caveat is that /usr/bin/ps separates the arguments by spaces, so if you had embedded spaces in the command line, it would be impossible to tell from looking at the ps output.

If you've installed SUNWscpux (or SUNWscpu if you're not on a 64-bit machine), you may want to try /usr/ucb/ps. If you give it enough w flags (they're cumulative), /usr/ucb/ps auwww will show all args, as modified by the process and stored in /proc. Programs like sendmail modify their arguments, though, so this may not give you exactly what you're looking for, either.

Solaris 9 contains a program called pargs in SUNWesu/SUNWesux that will examine a process or core file and print the program's arguments and environment variables and values.

Q I'm running BIND 9.2.2, and I'm trying to lock down security on my zones via the named.conf configuration file. I want to ensure that transfers are only allowed from hosts that match a certain IP and that have a matching TSIG key. I can easily do one or the other, but I can't seem to AND them together. Here's a snippet of my config file:

include "keys.txt";

acl slaves {
  10.2.1.1;
};

acl notslaves { ! slaves; };

options {
  directory "/etc/named";
  listen-on { 10.1

				  



MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Villanova University Six Sigma & IT Certificate Programs
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

WinDev 11 - Powerful IDE
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version

Wanna see your ad here?