coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 22 guests online

Newest Member

beyondimagem

Hit Counter
9133536 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595500
Members:16437





Category Search coolcommands.com
Select Category:


coolcommand

awk - oneliners for use with IBM Infoprint Manager
Description

To create a file with all logical printers defined in IBM Infoprint Manager:

# pdls -c dest -f "destination-realization==logical" *: | awk '{print $1}' > logical.txt

To create a script to print a file on all logical printers in IBM Infoprint Manager (output to screen):

# awk '{printf("pdpr -d %s file.pcl\n",$1)}' logical.txt

To create a script to print a file on all logical printers in IBM Infoprint Manager (output to file):

# awk '{printf("pdpr -d %s file.pcl\n",$1)}' logical.txt > logical.sh

To output a list of all logical printers for a particular pdserver instance in IBM Infoprint Manager:

# pdls -c dest -f "destination-realization==logical" pdserver: | awk '{print $1}'
Example

pdls -c dest -f

Return to search results

Random coolcommands

coolcommand: how to verify a JFS2 filesystem has internal snapshots enabled in AIX
Example: lsfs -q /filesystem_name
[show me the details]
coolcommand: how to enable entended history in AIX 5.3
Example: export EXTENDED_HISTORY=ON
[show me the details]
coolcommand: how to show network interface information in Sun Solaris
Example: ifconfig -a; kstat -n hme0 | egrep "ifspeed|duplex"
[show me the details]
coolcommand: lssysconn - how to list connection info for systems and frames managed by IBM HMC
Example: lssysconn -r all
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43933
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum