Report on unpatched client script SoftwareUpdate


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Report on unpatched client script SoftwareUpdate
# 1  
Old 10-28-2008
Report on unpatched client script SoftwareUpdate

I'm not sure how to do it yet. I just need a script that I can run on multiple computers that will tell me what machines require updates and the number of updates. I considered doing something along the lines of:
<code>softwareupdate --list |wc -l </code>
but that does not seem to be fool proof since there are obviously lines of output regardless of whether there are updates or not. I just need to get back the number of patches missing from unpatched machines. We have our own SUS, so the only updates being pulled should already be approved.

Please help.

Thanks!
# 2  
Old 10-28-2008
Actually this is exactly what I need, a script that will read the output of softwareupdate --list and count the asterisks and return with a number of how many there were. If there were no asterisks then it can skip that machine.
# 3  
Old 11-03-2008
How about:

Code:
softwareupdate --list | egrep '^[[:space:]]*\*' | wc -l
# or
softwareupdate --list | awk 'BEGIN { num=0 }; /^[[:space:]]*\*/{ num+=1 }; END { print num }'

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Any Help About this script how can i prevent client to use it ?

Hello i have server cpanel on centos 6 an there is a client used script to hack other accounts the script is like this _____ __________ <?php $auth_pass = "7815696ecbf1c96e6894b779456d330e"; $color = "#df5"; $default_action = 'FilesMan'; $default_use_ajax = true;... (1 Reply)
Discussion started by: jackmio
1 Replies

2. Shell Programming and Scripting

Bash script to copy apache log files to client directory

Our Apache log files are written to a location on the server that we as clients have no access. Don't ask. Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
Discussion started by: gregraven
3 Replies

3. Shell Programming and Scripting

*ix script to check port of client server and return output

Hello EveryOne, I am new to *ix. some could help to write a script. Problem :- Have to ssh to so many client and check port or filesystem usage, so thinking to automate using script. What i Need:- when i run script on my Launchpad server, it should Should ask and SSH to user provided... (3 Replies)
Discussion started by: MeFirst
3 Replies

4. Shell Programming and Scripting

Create a report for client with a text data file

Hi, I am an amateur bash scriptwriter and I need to write a script which creates a report in a formatted, easy to read table-like that is displayed to standard output. The script has to export the followings: Process ID,User Name, Command Name,Priority..... Now I have a file that I can see all... (3 Replies)
Discussion started by: bashily
3 Replies

5. Shell Programming and Scripting

Soap client script

Hi everybody, I`d llike to know if it is possible to create a script that call a specific soap method and collect the response time of this method. Can someone give some tips and examples ? Thank you so much ! (0 Replies)
Discussion started by: robdcb
0 Replies

6. Shell Programming and Scripting

Client-server script

Hi all, I am referring to this website . What I'm trying to do is to have a server script which will receive data from GPS in one line and store it in some file. Now from what I can see in this server file, server is sending the data to client but I don't need that .. I need only server script... (3 Replies)
Discussion started by: c0mrade
3 Replies

7. Shell Programming and Scripting

NFS client Mount script after boot

Hi, I have 12 AIX P series servers. One has the NFS DB2data and the others are client mounts. NFS is not in /etc/filesystem because if NFS DB2data not up the client takes 7+ minutes to give up on nfsmnt and boot up. I'd like to check that nfs is up, then do the client mount all from a startup... (0 Replies)
Discussion started by: sv2xs
0 Replies

8. Shell Programming and Scripting

copy file from server to client script

i want to run automated backup copy , using crontab and how to do that? the backup file should be taken from the sun server and put it in the client machine daily.pls help.. (5 Replies)
Discussion started by: gini
5 Replies

9. Shell Programming and Scripting

How to add Hyperlink with shell script(using mail client)

Hi ! plz let me suggest ..... By using of mail client methods I am trying to send mails through shell script. like.... To: From: Sub: Body: some sample text..... <my requirement is how to add hyper link to some text(click me) ... (0 Replies)
Discussion started by: rsukumar
0 Replies
Login or Register to Ask a Question