Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storage node configuration

Status
Not open for further replies.

Tonduma

Technical User
Oct 27, 2006
66
ES
Hi,

how can I obtain the storage nodes configuration of Networker with shell commands ?

(I'm newbie in Networker)

Thanks
 
Use nsradmin for this. If you know the name of the storage node it is easy. Just enter the nsradmin prompt by typing "nsradmin" and hit enter. Inside the prompt you set the query by typing ". NSR client" and hit enter. After this, print the client information using "print name: client" and replace "client" with the name of you storage node.

If you want to script it, the below should work although i have not tested it. The client info will be stored in clients.txt. Run it with "scriptname.sh clientname"

---
#!/bin/sh

echo option hidden: On > nsradm.in
echo . NSR client >> nsradm.in
echo p name: $1 >> nsradm.in

nsradmin -i nsradm.in > clients.txt
more clients.txt
rm nsradm.in
---

Hope that helps you some

Cheers!
Maverick
 
The problem is that I don't know the name and number of storage nodes of the backup environment.

What do I need for it ?

Thanks
 
Find out all devices in a similar way:

nsradm.in should read like this:
. type: NSR device
print

The command would be "nsradmin -i nsradm.in > outfile".

Then search the file for the string "rd=". Right after the "=" character you will find the name of the SN host. If there is none, the device is attached at the server.


coamoption
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top