1833756 Members
2821 Online
110063 Solutions
New Discussion

Need script for HP-UX

 
GPrakash
Advisor

Need script for HP-UX

Hi folks,

Small help.

Iam writing script to findout Swap size, dumpsize, NIC duplex,ssh package installed or not with version.

If anyone has ready made script or giving suggestions will be helpful for me.

thanks in advance.

-prakash
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: Need script for HP-UX

Hi:

# print_manifest

...which when you make an Ignite recovery backup is snapped automatically.

Regards!

...JRF...
GPrakash
Advisor

Re: Need script for HP-UX

Hi

I need to write script with HP-UX commands, I do not want to use other tools, ignite-UX.

can you suggest on scripting?
smatador
Honored Contributor

Re: Need script for HP-UX

Hi,
In fact print_manifest or cfg2html and other tools like that permit to have systeme info like you are asking. Look in them, test them and after that, why not take the command in the script.
Hope it helps
Suraj K Sankari
Honored Contributor

Re: Need script for HP-UX

Hi,

Run nickel script to know all the above details.

Suraj
GPrakash
Advisor

Re: Need script for HP-UX

Hi Folks,
thanks for your suggestions, actually we are writing script to put keep in Bladelogic tool.

for that we are writing scripts.

thanks
Rick Garland
Honored Contributor

Re: Need script for HP-UX

The print_manifest, cfg2html, nickel, sysinfo, etc are all comprosed of HPUX commands as this is how they query the system to gather the info. Look into thse utilities and see the commands and how they are used for your examples. If you want to reinvent the wheel, have at it.

George Denyer_1
Frequent Advisor

Re: Need script for HP-UX

Other than print_manifest and the like you would probably have to use commands like swapinfo, lanscan/lanadmin, swlist, etc and pipe their output into awk to pick out what you need.
Michal Kapalka (mikap)
Honored Contributor

Re: Need script for HP-UX

hi,

install SysInfo.

this tool collect everithing from your system.

output can be text file or html.

mikap

PS : i'm using it on all systems, to collect all information.
Michal Kapalka (mikap)
Honored Contributor

Re: Need script for HP-UX

hi,

home page of SysInfo.

http://www.magnicomp.com/sysinfo/

mikap
Bill Hassell
Honored Contributor

Re: Need script for HP-UX

> Hi folks,

Small help.

Iam writing script to findout Swap size, dumpsize, NIC duplex,ssh package installed or not with version.

- swapsize is found using the command: swapinfo -tam

- dumpsize -- not clear. Do you mean: what is the size of the last crash dump? Or the amount of freespace in the /var/adm/crash directory? Or the size of the raw dump lvols?

- NIC duplex is found with: lanadmin -x 12 (where 12 is is replaced with each of your LAN card PPA numbers)

- ssh - run the command:

ssh -V



Bill Hassell, sysadmin