Sponsored Content
Full Discussion: UNIX System Admin Document
Top Forums UNIX for Advanced & Expert Users UNIX System Admin Document Post 33316 by hugo_perez on Friday 27th of December 2002 11:50:46 AM
Old 12-27-2002
In mid-time in your HP-UX systems you can relevate software whith an script ...

In mid-time in your HP-UX systems you can relevate software whith an script ...
#!/bin/ksh
linea=""
LOG="./datos/kernel.txt"
> $LOG
header="Parameter;Current;Planned;Default;Minimum;Module;Version;Dynamic"
echo "$header" |tee -a ./datos/kernel.txt
inicio=1
kmtune -l | while read c1 c2
#!/bin/ksh
echo "Relevando software"
OS="`uname -s`"
server="`uname -n`"

if [ ! -d ./datos ]
then
mkdir ./datos
cod_ret=$?
if [ $cod_ret -ne 0 ]
then
echo "ERROR: al crear el directorio ./datos"
fi
fi

if [ -d ./datos/software ]
then
rm -fR ./datos/software
fi

if [ ! -d ./datos/software ]
then
mkdir ./datos/software
cod_ret=$?
if [ $cod_ret -ne 0 ]
then
echo "ERROR: al crear el directorio ./datos/software"
fi
fi



if [ -f ./datos_software_$server.tar ]
then
rm -f datos_software_$server.tar
fi

case "$OS" in
"HP-UX")
echo "Relevando Productos instalados en `uname -a`" | tee -a ./datos/softwa
re/"$server"_products.txt
swlist -l product | tee -a ./datos/software/"$server"_products.txt
echo "Relevando Bundles instalados en `uname -a`" | tee -a ./datos/softwar
e/"$server"_bundles.txt
swlist -l bundle | tee -a ./datos/software/"$server"_bundles.txt
then
rm -fR ./datos/software
fi

if [ ! -d ./datos/software ]
then
mkdir ./datos/software
cod_ret=$?
if [ $cod_ret -ne 0 ]
then
echo "ERROR: al crear el directorio ./datos/software"
fi
fi



if [ -f ./datos_software_$server.tar ]
then
rm -f datos_software_$server.tar
fi

case "$OS" in
"HP-UX")
echo "Relevando Productos instalados en `uname -a`" | tee -a ./datos/softwa
re/"$server"_products.txt
swlist -l product | tee -a ./datos/software/"$server"_products.txt
echo "Relevando Bundles instalados en `uname -a`" | tee -a ./datos/softwar
e/"$server"_bundles.txt
swlist -l bundle | tee -a ./datos/software/"$server"_bundles.txt
echo "Relevando Patches instalados en `uname -a`" | tee -a ./datos/software
/"$server"_patches.txt
swlist -l patch | tee -a ./datos/software/"$server"_patches.txt
echo "Relevando Filesets instalados en `uname -a`" | tee -a ./datos/softwa
re/"$server"_filesets.txt
swlist -l fileset | tee -a ./datos/software/"$server"_filesets.txt
echo "Relevando de modo Verbose todo lo instalado" |tee -a ./datos/software
/"$server"_verbose_de_todo.txt
swlist -R -v |tee -a ./datos/software/"$server"_verbose_de_todo.txt
echo "Relevando /etc/inittab" | tee -a ./datos/software/"$server"_etc_initt
ab.txt
cat /etc/inittab | tee -a ./datos/software/"$server"_etc_inittab.txt
echo "Relevando directorios rc e init.d"
tar cvf ./datos/software/"$server"_rc_init_d.tar /sbin/rc* /sbin/init*
;;

*) echo "Debe agregar al script la forma de relevar el OS $OS"

esac


tar cvf datos_software_$server.tar ./datos/software
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Scripted Document Management System

Over the past 4 -5 years, I have cobbled together a rudimentary 'Document Management System' for a school district I support using Linux Bash Shell scripts.. The purpose of the scripting was to supplement features of a Job Applicant Center that had very simplistic methods of handle file... (1 Reply)
Discussion started by: rmuledeer
1 Replies

2. HP-UX

After becoming HP UX 11iV3 System Admin

What is a logical step forward to learn much more about HP UX? Learn HP Integrity BladeSystem Administration or learn more about scripting? Learn more about storage? Can someone tell me how to become more effective? I am already working with HP UX everyday. Thanks a lot for every reply I... (4 Replies)
Discussion started by: velde_van_der_a
4 Replies

3. Homework & Coursework Questions

System Admin. Lab

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Create a group id with your last name. Create 2 user IDs using your last name and the numbers 1 and 2. For each... (3 Replies)
Discussion started by: Jagst3r21
3 Replies

4. Red Hat

System Admin related document with example

Hi, I am looking for perfect document.which is covered all the admin role with examples..... --> Please say that "search in google"...... Can you please help on this.... Thanks & Regards, Mani (3 Replies)
Discussion started by: Mani_apr08
3 Replies

5. What is on Your Mind?

Regarding Admin life either as DBA or UNIX Linux admin

I am planning to choose my career as Unix/Linux Admin or a DBA. But I have come to know from forums and few admins like the job will be 24/7. I have few questions on that. Can we get "DAY" shifts in any one of the admin Job ? Can't we have shift timings in any company ? Eventhough the... (7 Replies)
Discussion started by: Jacktts
7 Replies
smbios(7D)							      Devices								smbios(7D)

NAME
smbios - System Management BIOS image SYNOPSIS
/dev/smbios DESCRIPTION
The smbios device is a character special file that provides access to a snapshot of the System Management BIOS (SMBIOS) image exported by the current system. SMBIOS is an industry-standard mechanism that enables low-level system software to export hardware configuration infor- mation to higher-level system management software. The SMBIOS data format is defined by the Distributed Management Task Force (DMTF). For more information on SMBIOS and to obtain a copy of the SMBIOS specification and implementation guidelines, refer to http://www.dmtf.org. The SMBIOS image consists of a table of structures, each describing some aspect of the system software or hardware configuration. The con- tent of the image varies widely by platform and BIOS vendor and may not exist on some systems. You can use the smbios(1M) utility to inspect the contents of the SMBIOS image and copy it to a file. ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWkvm.i | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ SEE ALSO
prtdiag(1M), smbios(1M), attributes(5) System Management BIOS Reference Specification, Version 2, Release 4 -- 2005 NOTES
The implementation of a System Management BIOS image is entirely at the discretion of the system and BIOS vendors. Not all systems export a SMBIOS. The SMBIOS structure content varies widely between systems and BIOS vendors and frequently does not comply with the guidelines included in the specification. For example, some structure fields may not be filled in by the BIOS, while others may be filled in with non- conforming values. SunOS 5.11 26 August 2005 smbios(7D)
All times are GMT -4. The time now is 02:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy