Networker

Re: [Networker] Script to check Networker Veriosn on Windows

2004-11-09 16:36:34
Subject: Re: [Networker] Script to check Networker Veriosn on Windows
From: Itzik Meirson <imeirson AT MBI.CO DOT IL>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 9 Nov 2004 23:34:20 +0200
Regardless of the platform you could use:
echo p | nsradmin -s ClientName2bChecked -p 390113 
This command can be issued from any host that has the Networker client
installed and will contact the ClientName2bChecked through the network.
Sample output example would be:
C:\Documents and Settings\itzik>echo p | nsradmin -s localhost -p 390113
NetWorker administration program.
Use the "help" command for help.
nsradmin>                         type: NSRLA;
                        name: itziknb.mbi.co.il;
                     version: "Legato NetWorker 7.1.2.Build.325 ";
                     servers: itziknb, jazz, jazz.mbi.co.il, linux7,
rock,
                              rock.domain;
               administrator:
"group=Administrators,host=itziknb.domain",
                              "group=Administrators,host=localhost",
                              "isroot,host=itziknb", "isroot,host=jazz",
                              "isroot,host=jazz.domain",
                              "isroot,host=linux7", "isroot,host=rock",
                              "isroot,host=rock.domain";
                        arch: Windows XP;
                    CPU type: INTEL_PENTIUM;
                machine type: desktop;
                          OS: Windows XP 5.1;
           NetWorker version: 7.1.2.Build.325;
              client OS type: Windows NT Workstation on Intel;
                        CPUs: 1;
                     MB used: 23335;
                  IP address: 172.10.10.132, 0.0.0.0, 0.0.0.0;
nsradmin>
C:\Documents and Settings\itzik>

Itzik
-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTMAIL.TEMPLE DOT EDU]
On Behalf Of Narkinsky, Brian
Sent: Tuesday, November 09, 2004 19:07
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: [Networker] Script to check Networker Veriosn on Windows

I just whipped up this VB script to check the version of Networker on my
clients.  I can't think of an easy way to check it in Networker so I
thought I'd share
 
 
Usge
 
cscript scriptname.vbs machine [machinename for remote or blank for
local]
 
 
 
'-----------------------------------------------------------------------
-----
--
Set argsUnnamed = WScript.Arguments.Unnamed
 
If Wscript.Arguments.Unnamed.Count >0 then  strcomputer
=WScript.Arguments.Unnamed.Item(0)
 Elseif  Wscript.Arguments.Unnamed.Count=0 then  strcomputer="."
End If
 

     
Const HKEY_CURRENT_USER =  &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
 

Wscript.echo "Networker Version  is "&NetworkerVersion
 
Function NetworkerVersion()
 
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
&strComputer & "\root\default:StdRegProv")
 
 
 
strKeyPath = "SOFTWARE\Legato\NetWorker"
strValueName = "Version"
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
NSREXECDVersion=strValue
 
Set OReg=Nothing 
 
NetworkerVersion=NSREXECDVersion 
 
End Function

--
Note: To sign off this list, send a "signoff networker" command via
email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=


**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  
the 
sender immediately and do not disclose the contents to any one or make copies.

MBI - System Team
**************************************************************************************************

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>