Sponsored Content
Top Forums Shell Programming and Scripting shell script to collect information from current and remote unix boxes Post 302594975 by amir07 on Wednesday 1st of February 2012 04:55:08 PM
Old 02-01-2012
Bug shell script to collect information from current and remote unix boxes

I am using AIX 5.3.0.0 ; I need a script to find out each remote AIX boxes
Hostname, Model name and Serial number in following format
Code:
Hostname   Modelname      SerialID 
AIXMC01    IBM,7026-B80   IBM,0110BBA1F
AIXMC02    IBM,7026-H50   IBM,0110BBA56
AIXMC03    IBM,7026-H50   IBM,0110BBARR
AIXMC04    IBM,7026-B80   IBM,0110BBA43

From the following command I can get the info of the modelname and Serial #
(systemid has the info of the serial #)
Code:
>lsattr -Elsys0

systemid        IBM,0110BBA2F      
modelname       IBM,7026-B80

Thank you for you help

Moderator's Comments:
Mod Comment Please use next time code tags for your code and data

Last edited by vbe; 02-02-2012 at 11:13 AM..
 

9 More Discussions You Might Find Interesting

1. Programming

text boxes, radio buttons , check boxes in c++ on unix

Hi ! Please tell me how to get radio buttons, text boxes , check boxes , option buttons , pull down menus in C++ on Unix. I think it would be done using curses.h ..but that's all i know. TIA, Devyani. (3 Replies)
Discussion started by: devy8
3 Replies

2. Solaris

Planning for DR, I have to collect information

Dear All, We are going for Disaster Recovery project, the vendor asked for more details about how much is the daily data changes only. using sar / iostat can any one help me to collect this ?! Note: only I need the changed data size not the daily increasing data. this is to know how much... (1 Reply)
Discussion started by: adel8483
1 Replies

3. Shell Programming and Scripting

How can my unix shell script automatically connect to remote host?

How can my unix shell script automatically connect to remote host? Assume that there is a remote host called "rhost". When I connect to that host i give the command "telnet rhost". It then asks me for my id and password. Once i give it connects there. I want to automate these steps. I want... (8 Replies)
Discussion started by: digdarshan
8 Replies

4. UNIX for Dummies Questions & Answers

Enable a shell to collect data from unix, return to windows

hi I am very new to UNIX. I need to retrieve data from a unix system and store it and display as output on a windows system. Initiation of procedure is through JAVASCRIPT-based buttons on a HTML page. This should cause a set of commands to run which colllect data from a unix based server and... (1 Reply)
Discussion started by: rossalyn_maxter
1 Replies

5. Shell Programming and Scripting

Collect information from switches

Hi All , In my environment we have 12 SAN switches .Culd u pls help me for below queries . would like to telnet to all switches and collect information in daily basis with "switchstatus" command and store the output under /tmp/ folder on systemA . To keep passwords of 12switches in a... (1 Reply)
Discussion started by: chinni-script
1 Replies

6. Shell Programming and Scripting

script to collect all db information

hi all I am looking for shell script ,by which i need to gather all the DB information in Sybase server . Thanks in advance :) (3 Replies)
Discussion started by: mvsramarao
3 Replies

7. UNIX for Dummies Questions & Answers

Shell script to collect inbound connections

Hi Kindly provide me shell script on server to collect inbound connections, using port number on Linux. (4 Replies)
Discussion started by: adminhelp
4 Replies

8. Shell Programming and Scripting

Triggering remote UNIX shell script from Remote desktop

I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like ssh hostname path ksh HC_Report.ksh>out.html ...but it generates the HTML file in remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies

9. SuSE

How to filter SYSLOG data to collect meaningful information only?

Dear users, SUSE 10 sp3 and SUSE 11. I made configuration changes in '/etc/syslog-ng/syslog-ng.conf' to move SYSLOG content to LogRhythm. This is what I changed in the file. Un-comment out the following lines #Enable this and admop IP to send log messages to... (10 Replies)
Discussion started by: JDBA
10 Replies
hpionIBMblade(1)						      OpenHPI							  hpionIBMblade(1)

NAME
hpionIBMblade - An openhpi sample application that shows how two (2) openhpi plugins can be used to display and manage resources of an IBM Blade with Basedboard Management Controller (BMC). SYNOPSIS
hpionIBMblade [ -x ] DESCRIPTION
hpionIBMblade shows how two (2) openhpi plugins can be used to display and manage resources of an IBM Blade with Basedboard Management Controller (BMC). Both the ipmi and snmp_bc plugin have the same IBM Blade target. Resources from both plugins are combined to show a complete view of the IBM Blade. @@ WARNING @@ RESTRICTIONS @@ WARNING @@ RESTRICTIONS @@ WARNING @@ RESTRICTIONS @@ This client application is designed to run **only** inband on an IBM Blade with Basedboard Management Controller (BMC) OPTIONS
-x Display debug messages. SAMPLE CONFIGURATION FILE
handler libipmi { entity_root = "{SYSTEM_CHASSIS,2}" name = "smi" addr = 0 } handler libsnmp_bc { host = "bc.mm.ip.address" version = "3" community = "bc_community" entity_root = "{SYSTEM_CHASSIS,1}" security_name = "myid" passphrase = "mypassword" security_level = "authNoPriv" auth_type = "MD5" } SEE ALSO
AUTHORS
Authors of this man page: Peter D Phan (pdphan@users.sourceforge.net) 2.14.1 2009-11-23 hpionIBMblade(1)
All times are GMT -4. The time now is 04:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy