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
TR(4)							   BSD Kernel Interfaces Manual 						     TR(4)

NAME
tr -- TROPIC based shared memory Token-Ring cards device driver SYNOPSIS
tr0 at isa? port 0xa20 iomem 0xd800 irq ? tr* at isa? port ? irq ? tr* at isapnp? tr* at mca? slot ? tr* at pcmcia? function ? DESCRIPTION
The tr device driver supports TROPIC I based shared-memory Token-Ring cards. HARDWARE
Supported cards include the following IBM and 3Com models: IBM Token-Ring Network PC Adapter IBM Token-Ring Network PC Adapter II IBM Token-Ring Network Adapter/A IBM Token-Ring Network 16/4 Adapter IBM Token-Ring Network 16/4 Adapter/A IBM Token-Ring 16/4 Credit Card Adapter IBM Token Ring Auto 16/4 Credit Card Adapter IBM Turbo 16/4 Token Ring PC Card IBM 16/4 ISA Adapter IBM Auto 16/4 Token-Ring ISA Adapter IBM Token Ring 16/4 Credit Card Adapter IBM Token Ring Auto 16/4 Credit Card Adapter IBM Turbo 16/4 Token Ring PC Card 3Com 3C619 TokenLink 3Com 3C319 TokenLink Velocity 3Com 3C389 TokenLink Velocity PC Card SOURCE ROUTING
Setting IFF_LINK0 enables Token-Ring source routing. Setting IFF_LINK1 uses all-routes broadcasts otherwise single-route broadcasts are used. NOTES
The MCA attachment has been only tested on IBM Token Ring 16/4 Adapter/A so far. It doesn't support ifmedia(4) yet, too. SEE ALSO
ifmedia(4), intro(4), isa(4), isapnp(4), mca(4), pcmcia(4), ifconfig(8) HISTORY
The tr driver appeared in NetBSD 1.4. BUGS
The PCMCIA attachment does not work with the cbb(4) CardBus driver. BSD
April 14, 1999 BSD
All times are GMT -4. The time now is 09:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy