Using NIM to gather system information


 
Thread Tools Search this Thread
Operating Systems AIX Using NIM to gather system information
# 1  
Old 11-03-2010
Using NIM to gather system information

Hi,

Need help if its possible to use NIM server to gather information. Basically, we need to gather firmware version and oslevel for environment wide servers (these servers are connected thru nim). I understand you can use NIM script resource to trigger the script but don't know if possible to get the informations and save in NIM server.

I created a script something like this:
Code:
!/usr/bin/ksh
prtconf | grep -i "Firmware Version" >> /tmp/aixinfo.txt
hostname >> /tmp/aixinfo.txt
oslevel -s >> /tmp/aixinfo.txt
oslevel -r >> /tmp/aixinfo.txt
chmod 755 /tmp/aixinfo.txt

I want to get all these informations and save in NIM server.

Moderator's Comments:
Mod Comment Having that many posts you should be familiar using code tags. You got a PM with a guide how to do that.

Last edited by zaxxon; 11-03-2010 at 05:27 AM..
# 2  
Old 11-03-2010
If the servers you are interested in are set up as NIM clients, then you can probably run these as remote shell commands:
Code:
#!/usr/bin/ksh
for client in host1 host2 host3 .... hostn
rsh $client prtconf | grep -i "Firmware Version" > /tmp/${client}_aixinfo.txt
rsh $client hostname >> /tmp/${client}_aixinfo.txt
rsh $client oslevel -s >> /tmp/${client}_aixinfo.txt
rsh $client oslevel -r >> /tmp/${client}_aixinfo.txt
chmod 755 /tmp/${client}_aixinfo.txt

The output is written to standard output so you will collect it on the NIM server, hence why I tweaked the output file to include the client. There is therefore no need for the chmod to be a remote command as the output is collected locally.

I also took out the append from the prtconf and set is as a create/overwrite so these files don't grow excessivly from multiple running.



I hope that this helps.



Robin
Blackburn/Liverpool
UK
# 3  
Old 11-03-2010
What it is you need?
You want to gather some information from all of your AIX servers?
You currently have NIM installed and working?

If in fact NIM is properly configured, you should have a lot of the information you need already. For example, to see hostnames, use:

Code:
lsnode -i

# 4  
Old 11-04-2010
Our clients have rsh disabled by default. Any other way I can trigger the script and temporarily mount a filesystem in the client so that the output will be redirected to that filesystem which is on NIM Server?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Create a shell script to gather user account information and displays the result to administrator

I want to create a shell script to gather user account information and displays the result to administrator. I have created a script but its showing all the information when i search for username like: amit@mx:~$ ./uinfo.sh amit Username : amit User Info ... (2 Replies)
Discussion started by: amit1986
2 Replies

2. AIX

Problem in communication nim client with nim master

Hello, I have an AIX6.1 machine which is a nim client to my nim master which is also AIX6.1 machine. I had some problem to perform an installation on my client using smit nim . i removed /etc/niminfo file in order to do the initialization again but when i run the command niminit -a name=client... (0 Replies)
Discussion started by: omonoiatis9
0 Replies

3. AIX

NIM NFS file system cannot unmount

Hello, I have a script on my NIM Master that runs with crons and performs mksysb backups of all NIM Clients once a week. There is a problem with one of the clients as it stucks and never finishes the mksysb backups. I tried to unmount the NFS file system created by the NIM in order to perform... (5 Replies)
Discussion started by: omonoiatis9
5 Replies

4. UNIX for Dummies Questions & Answers

How can I use my code to gather information from a file in a completely different directory?

I need my code to compare two different files that are in two completely different directories, How can I do this? So for example, my code will look at file1 which is in my home directory, and compare the files with those from file2 that is in /abc/adf/adr/afc/adf/file2... does that make sense? (1 Reply)
Discussion started by: castrojc
1 Replies

5. AIX

how to gather HMC information

does somebody know how to gather HMC information? It looks like there is some tool can gather HMC configuration to a html file and make them as a xx.tar.gz file? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

6. AIX

For NIM: NFS file system problem

hello, i am trying to export a file system so that i can mount it on NIM server and make mksysb backup of the server on that fs. i get this message: mount: 1831-011 access denied for s_semdev:/dr_s_zeus/mksysb/dr_s_zeus mount: 1831-008 giving up on: s_semdev:/dr_s_zeus/mksysb/dr_s_zeus ... (5 Replies)
Discussion started by: omonoiatis9
5 Replies

7. AIX

Back up a client NIM from nim master

Hello everyone Im trying to backup a nim client from nim master but I got this message COMMAND STATUS Command: failed stdout: yes stderr: no Before command completion, additional instructions may appear below. 0042-001 nim:... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

8. HP-UX

HP-UX system information

Hi, I'm writing a script to display a lot of information which describe a server (OS distrib, release, Hardware platform, CPU, HD, S/N...). For Linux side it is ok as you have almost all the information in /proc/cpuinfo, /proc/meminfo... and you can use dmidecode but for HP-UX I didn't find... (13 Replies)
Discussion started by: biker007fr
13 Replies

9. AIX

migrate NIM server through NIM installation

I try to migrate a NIM server from one server to another. I try to do a mksysb on NIM server restore the NIM server's mksysb to a client through NIM installation shutdown NIM server start newly installed client as NIM server Does anyone do this before? who can give me some suggestion? (1 Reply)
Discussion started by: yanzhang
1 Replies

10. HP-UX

System Information

How do I get the system information on a HP UNIX server. details like CPU speed, number of processors etc. (4 Replies)
Discussion started by: Olamide
4 Replies
Login or Register to Ask a Question