![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| While Loop assistance. | MaestroRage | UNIX for Dummies Questions & Answers | 2 | 02-05-2008 02:30 PM |
| I need an assistance | mytilini boy | Shell Programming and Scripting | 1 | 05-25-2007 05:42 PM |
| KSH Script Assistance | Brusimm | Shell Programming and Scripting | 3 | 05-10-2007 05:15 AM |
| Perl script assistance; paste word into external command | bru | Shell Programming and Scripting | 10 | 02-23-2007 12:04 AM |
| Need Assistance | yahoo14 | UNIX for Dummies Questions & Answers | 1 | 06-08-2006 07:21 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
We currently use the below basic scripts to output details that the business requires for our AIX and Sun servers. I have been asked to produce the same sort of script to be used for our NCR MP-RAS UNIX and OS/2 UNIX servers but am not formilar with these forms of Unix. Would greatly appreciate if anyone can assist me with this. AIX #!/bin/ksh OUT="/tmp/serverinfo_$(hostname).txt" print "Server Info" > $OUT print "hostname" > $OUT hostname >>$OUT print "\n-----------------------------------------------" >> $OUT print "ifconfig -a " >> /$OUT ifconfig -a >>$OUT print "\n-----------------------------------------------" >> $OUT print "Number of processors" >> /$OUT lsdev -Cc processor >>$OUT print "\n-----------------------------------------------" >> $OUT print "lslpp -L" >> /$OUT lslpp -L >>$OUT Sun touch /tmp/`uname -n`-swinv.txt echo Server Info >>/tmp/`uname echo =========HOSTNAME=========== >>/tmp/`uname -n`-swinv.txt uname -n >> /tmp/`uname -n`-swinv.txt echo >> /tmp/`uname -n`-swinv.txt echo =========IP ADDRESSES=========== >>/tmp/`uname -n`-swinv.txt ifconfig -a >>/tmp/`uname -n`-swinv.txt echo >> /tmp/`uname -n`-swinv.txt echo ===========HW/CPU INFO============== >>/tmp/`uname -n`-swinv.txt /usr/platform/`uname -i`/sbin/prtdiag >> /tmp/`uname -n`-swinv.txt echo >> /tmp/`uname -n`-swinv.txt echo ==============SW INSTALLED================ >>/tmp/`uname -n`-swinv.txt pkginfo |sed /SUNW/d|awk '{ print "pkginfo -l " $2}'>> /tmp/`uname -n`-swinv.txt |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|